/* Enhanced Animations and Micro-interactions for KataBump */

/* Animated Gradients for Titles */
.gradient-text-animated {
    background: linear-gradient(-45deg, var(--primary), var(--secondary), var(--accent), var(--primary));
    background-size: 400% 400%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 4s ease-in-out infinite;
    display: inline-block;
}

@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

/* Enhanced Button Interactions */
.btn-primary:hover, .btn-secondary:hover, .btn-pricing:hover {
    animation: buttonPulse 0.6s ease-in-out;
}

@keyframes buttonPulse {
    0% {
        transform: translateY(-2px) scale(1);
        box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.4);
    }
    50% {
        transform: translateY(-2px) scale(1.05);
        box-shadow: 0 0 20px 10px rgba(99, 102, 241, 0.1);
    }
    100% {
        transform: translateY(-2px) scale(1.02);
        box-shadow: 0 0 0 0 rgba(99, 102, 241, 0);
    }
}

/* Card Shimmer Effect */
.feature-card::after, .testimonial-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.1), transparent);
    transition: left 0.6s ease;
    z-index: 1;
}

.feature-card:hover::after, .testimonial-card:hover::after {
    left: 100%;
}

/* Loading Skeleton */
.skeleton {
    background: linear-gradient(90deg, var(--bg-secondary) 25%, var(--bg-hover) 50%, var(--bg-secondary) 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 8px;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

.skeleton-text {
    height: 1rem;
    margin: 0.5rem 0;
}

.skeleton-title {
    height: 2rem;
    margin: 1rem 0;
}

.skeleton-card {
    width: 100%;
    height: 200px;
    margin: 1rem 0;
}

/* Particle Effects */
@keyframes fadeOut {
    0% {
        opacity: 0.8;
        transform: scale(1);
    }
    100% {
        opacity: 0;
        transform: scale(0.3);
    }
}

/* Discord Widget Styles */
.discord-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    transition: all 0.3s ease;
    transform: translateY(100px);
    opacity: 0;
}

.discord-widget.visible {
    transform: translateY(0);
    opacity: 1;
}

.discord-widget-toggle {
    background: var(--gradient-primary);
    border: none;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

.discord-widget-toggle:hover {
    transform: scale(1.1);
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.4);
    }
    50% {
        box-shadow: 0 0 20px 10px rgba(99, 102, 241, 0.1);
    }
}

/* Live Chat Toggle Button */
.live-chat-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 999;
    transition: all 0.3s ease;
    transform: translateY(100px);
    opacity: 0;
}

.live-chat-toggle.visible {
    transform: translateY(0);
    opacity: 1;
}

.live-chat-toggle:hover div {
    transform: scale(1.1);
}

/* Live Chat Enhanced Styles */
.live-chat {
    position: fixed;
    bottom: 100px;
    right: 20px;
    width: 350px;
    height: 500px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: var(--shadow-xl);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    transform: translateY(100%) scale(0.8);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.live-chat.visible {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.live-chat-header {
    padding: 1rem;
    background: var(--gradient-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: 16px 16px 0 0;
}

.live-chat-messages {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
    background: var(--bg-primary);
}

.chat-message {
    margin-bottom: 1rem;
    animation: messageSlideIn 0.3s ease;
    display: flex;
    gap: 0.75rem;
}

@keyframes messageSlideIn {
    from {
        transform: translateX(-20px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.message-avatar {
    flex-shrink: 0;
}

.message-content {
    flex: 1;
}

.message-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}

.message-author {
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--text-primary);
}

.message-time {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.message-text {
    background: var(--bg-card);
    padding: 0.75rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    color: var(--text-primary);
    line-height: 1.4;
}

.support-message .message-text {
    background: var(--bg-secondary);
}

.user-message {
    flex-direction: row-reverse;
}

.user-message .message-text {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.quick-replies {
    margin-top: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.quick-replies button {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
}

.quick-replies button:hover {
    background: var(--bg-hover);
    border-color: var(--primary);
    color: var(--primary);
}

.live-chat-input {
    display: flex;
    padding: 1rem;
    border-top: 1px solid var(--border);
    gap: 0.5rem;
    background: var(--bg-primary);
}

.live-chat-input input {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--bg-card);
    color: var(--text-primary);
    font-size: 0.875rem;
}

.live-chat-input input:focus {
    outline: none;
    border-color: var(--primary);
}

.live-chat-input button {
    background: var(--primary);
    border: none;
    border-radius: 8px;
    color: white;
    padding: 0.75rem;
    cursor: pointer;
    transition: var(--transition);
    min-width: 44px;
}

.live-chat-input button:hover {
    background: var(--primary-dark);
}

.live-chat-footer {
    padding: 0.5rem 1rem;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    text-align: center;
    border-radius: 0 0 16px 16px;
}

@keyframes pulse-green {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.7;
    }
}

/* Status Page Styles */
.status-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    font-size: 0.875rem;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    animation: statusPulse 2s infinite;
}

.status-dot.online {
    background: var(--success);
}

.status-dot.warning {
    background: var(--warning);
}

.status-dot.offline {
    background: var(--error);
}

@keyframes statusPulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* Calculator Styles */
.calculator {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
    margin: 2rem 0;
}

.calculator-slider {
    margin: 1rem 0;
}

.calculator-slider input[type="range"] {
    width: 100%;
    height: 6px;
    background: var(--bg-secondary);
    border-radius: 3px;
    outline: none;
    -webkit-appearance: none;
}

.calculator-slider input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: var(--primary);
    border-radius: 50%;
    cursor: pointer;
}

.calculator-result {
    background: var(--gradient-primary);
    color: white;
    padding: 1rem;
    border-radius: 12px;
    text-align: center;
    margin-top: 1rem;
    font-size: 1.25rem;
    font-weight: 600;
}

/* Micro-interactions for mobile */
@media (hover: none) and (pointer: coarse) {
    .btn-primary:active, .btn-secondary:active, .btn-pricing:active {
        transform: scale(0.98);
        transition: transform 0.1s ease;
    }
    
    .feature-card:active, .pricing-card:active {
        transform: scale(0.98);
    }
    
    .discord-widget {
        bottom: 10px;
        right: 10px;
    }
    
    .live-chat {
        width: calc(100vw - 20px);
        right: 10px;
        bottom: 80px;
    }
}

/* Blog Styles */
.blog-post {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    transition: var(--transition);
    margin-bottom: 2rem;
}

.blog-post:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.blog-post-image {
    width: 100%;
    height: 200px;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
}

.blog-post-content {
    padding: 1.5rem;
}

.blog-post-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.blog-post-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.blog-post-excerpt {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Tutorial Styles */
.tutorial-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.5rem;
    margin: 1rem 0;
    position: relative;
}

.tutorial-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.tutorial-step {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin: 1rem 0;
}

.tutorial-step-number {
    background: var(--primary);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    flex-shrink: 0;
}

/* Showcase Styles */
.showcase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.showcase-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.showcase-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: var(--gradient-primary);
    border-radius: 16px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.showcase-card:hover::before {
    opacity: 1;
}

.showcase-card:hover {
    transform: translateY(-5px);
}

.showcase-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin: 0 auto 1rem;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

/* Partnerships Section Styles */
.partnerships {
    background: var(--bg-primary);
    padding: 5rem 0;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.partner-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.partner-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.1), transparent);
    transition: left 0.6s ease;
    z-index: 1;
}

.partner-card:hover::before {
    left: 100%;
}

.partner-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.partner-card.featured {
    border: 2px solid var(--primary);
    background: linear-gradient(135deg, var(--bg-card), rgba(99, 102, 241, 0.05));
}

.partner-card.featured::after {
    content: '⭐';
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.2rem;
    z-index: 2;
}

.partner-logo {
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
}

.partner-card:hover .partner-logo {
    transform: scale(1.1);
}

.partner-card h3 {
    color: var(--text-primary);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.partner-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.partner-badge {
    background: var(--gradient-primary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    display: inline-block;
    animation: pulse 2s infinite;
}

.partner-type {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    display: inline-block;
}

/* Technology Stack Styles */
.tech-stack {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
}

.tech-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: all 0.3s ease;
    min-width: 100px;
}

.tech-item:hover {
    transform: translateY(-3px);
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}

.tech-item i {
    font-size: 2rem;
    transition: transform 0.3s ease;
}

.tech-item:hover i {
    transform: scale(1.2);
}

.tech-item span {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.875rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .partnerships {
        padding: 3rem 0;
    }
    
    .partners-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin: 2rem 0;
    }
    
    .partner-card {
        padding: 1.5rem;
    }
    
    .tech-stack {
        gap: 1rem;
    }
    
    .tech-item {
        min-width: 80px;
        padding: 0.75rem;
    }
    
    .tech-item i {
        font-size: 1.5rem;
    }
}

/* Enhanced Getting Started Section Styles */
.support-header {
    text-align: center;
    margin-bottom: 4rem;
}

.support-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin: 1rem 0 2rem;
    line-height: 1.6;
}

.time-estimate {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--bg-success);
    color: var(--success);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.875rem;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.detailed-steps {
    max-width: 900px;
    margin: 0 auto;
}

.detailed-step {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    margin-bottom: 2rem;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

.detailed-step:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
    transform: translateY(-2px);
}

.detailed-step::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 2px 0 0 2px;
}

.step-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem;
    background: linear-gradient(135deg, var(--bg-primary), var(--bg-secondary));
    border-bottom: 1px solid var(--border);
}

.step-number {
    background: var(--gradient-primary);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    flex-shrink: 0;
    box-shadow: var(--shadow-md);
}

.step-title h3 {
    color: var(--text-primary);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.step-duration {
    color: var(--text-muted);
    font-size: 0.875rem;
    font-weight: 500;
    background: var(--bg-card);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    border: 1px solid var(--border);
}

.step-content {
    padding: 2rem;
}

.step-description p {
    color: var(--text-secondary);
    font-size: 1.125rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.step-features {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--bg-secondary);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    border: 1px solid var(--border);
}

.feature-item i {
    color: var(--success);
    font-size: 0.875rem;
}

.feature-item span {
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.875rem;
}

.code-requirements {
    margin: 2rem 0;
}

.requirement-tab input[type="radio"] {
    display: none;
}

.requirement-tab label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 12px 12px 0 0;
    cursor: pointer;
    font-weight: 600;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    margin-right: 0.5rem;
}

.requirement-tab input[type="radio"]:checked + label {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.requirement-tab label:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.requirement-tab input[type="radio"]:checked + label:hover {
    background: var(--primary-dark);
    color: white;
}

.tab-content {
    display: none;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 0 12px 12px 12px;
    padding: 1.5rem;
    margin-top: -1px;
}

.requirement-tab input[type="radio"]:checked + label + .tab-content {
    display: block;
}

.requirements-list {
    margin-bottom: 2rem;
}

.req-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
}

.req-item:last-child {
    border-bottom: none;
}

.req-item i {
    color: var(--primary);
    font-size: 1rem;
    width: 20px;
    text-align: center;
}

.req-item span {
    color: var(--text-primary);
    line-height: 1.5;
}

.req-item strong {
    color: var(--primary);
}

.code-example {
    background: var(--bg-secondary);
    border-radius: 12px;
    overflow: hidden;
}

.code-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border);
}

.code-header span {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.875rem;
}

.copy-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.copy-btn:hover {
    background: var(--primary-dark);
}

.code-example pre {
    margin: 0;
    padding: 1.5rem;
    background: transparent;
    color: var(--text-primary);
    font-family: 'Fira Code', 'Monaco', 'Cascadia Code', 'Roboto Mono', monospace;
    font-size: 0.875rem;
    line-height: 1.6;
    overflow-x: auto;
}

.upload-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.method-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.method-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.1), transparent);
    transition: left 0.6s ease;
}

.method-card:hover::before {
    left: 100%;
}

.method-card:hover {
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.method-icon {
    background: var(--primary);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.25rem;
}

.method-card h4 {
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.method-card p {
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.5;
}

.config-features {
    margin: 2rem 0;
}

.config-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 12px;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.config-item:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-sm);
}

.config-icon {
    background: var(--primary);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.config-info h4 {
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.config-info p {
    color: var(--text-secondary);
    line-height: 1.5;
    font-size: 0.95rem;
}

.step-action {
    margin-top: 2rem;
}

.btn-step-primary,
.btn-step-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.btn-step-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-step-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-step-secondary {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.btn-step-secondary:hover {
    background: var(--bg-hover);
    border-color: var(--primary);
    color: var(--primary);
}

.action-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.step-help {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-top: 1rem;
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: 8px;
    border: 1px solid var(--border);
}

.step-help i {
    color: var(--primary);
}

.step-help a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.step-help a:hover {
    text-decoration: underline;
}

.success-section {
    background: linear-gradient(135deg, var(--bg-success), rgba(34, 197, 94, 0.1));
    border: 1px solid rgba(34, 197, 94, 0.2);
    border-radius: 20px;
    padding: 3rem 2rem;
    text-align: center;
    margin: 3rem 0;
}

.success-icon {
    background: var(--success);
    color: white;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    font-size: 2rem;
    animation: successPulse 2s infinite;
}

@keyframes successPulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4);
    }
    50% {
        box-shadow: 0 0 0 20px rgba(34, 197, 94, 0.1);
    }
}

.success-section h3 {
    color: var(--text-primary);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.success-section p {
    color: var(--text-secondary);
    font-size: 1.125rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.next-steps h4 {
    color: var(--text-primary);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.next-steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.next-step {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.next-step:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-sm);
}

.next-step i {
    color: var(--primary);
    font-size: 1.25rem;
    width: 24px;
    text-align: center;
}

.next-step span {
    color: var(--text-primary);
    font-weight: 500;
}

.help-section {
    margin: 4rem 0;
}

.help-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.help-content h3 {
    color: var(--text-primary);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.help-content > p {
    color: var(--text-secondary);
    font-size: 1.125rem;
    line-height: 1.6;
    margin-bottom: 3rem;
}

.help-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.help-option {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
    text-decoration: none;
    transition: all 0.3s ease;
    text-align: left;
}

.help-option:hover {
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.help-icon {
    background: var(--gradient-primary);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.help-info h4 {
    color: var(--text-primary);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.help-info p {
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 0.75rem;
}

.help-time {
    background: var(--bg-success);
    color: var(--success);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.getting-started-faq {
    margin: 4rem 0;
}

.getting-started-faq h3 {
    color: var(--text-primary);
    font-size: 1.75rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 2rem;
}

.faq-grid {
    display: grid;
    gap: 1rem;
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-sm);
}

.faq-item summary {
    cursor: pointer;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 1rem;
    padding-bottom: 1rem;
    list-style: none;
    position: relative;
    outline: none;
}

.faq-item summary::after {
    content: '+';
    position: absolute;
    right: 0;
    top: 0;
    font-size: 1.5rem;
    color: var(--primary);
    transition: transform 0.3s ease;
}

.faq-item[open] summary::after {
    transform: rotate(45deg);
}

.faq-item p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .detailed-step {
        margin-bottom: 1.5rem;
    }

    .step-header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
        padding: 1.5rem;
    }

    .step-content {
        padding: 1.5rem;
    }

    .step-features {
        justify-content: center;
    }

    .upload-methods {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .action-buttons {
        flex-direction: column;
    }

    .help-options {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .next-steps-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .success-section {
        padding: 2rem 1.5rem;
    }

    .success-section h3 {
        font-size: 1.5rem;
    }
}

/* Open Source Bots Section Styles */
.opensource-bots {
    background: var(--bg-primary);
    padding: 5rem 0;
}

.opensource-header {
    text-align: center;
    margin-bottom: 4rem;
}

.opensource-header h2 {
    color: var(--text-primary);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.opensource-header p {
    color: var(--text-secondary);
    font-size: 1.125rem;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

.bots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.bot-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2rem;
    position: relative;
    transition: all 0.3s ease;
    overflow: hidden;
}

.bot-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.1), transparent);
    transition: left 0.6s ease;
}

.bot-card:hover::before {
    left: 100%;
}

.bot-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary);
}

.bot-card.featured {
    border: 2px solid var(--primary);
    background: linear-gradient(135deg, var(--bg-card), rgba(99, 102, 241, 0.05));
    position: relative;
}

.bot-card.featured::after {
    content: '⭐';
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
    z-index: 2;
    animation: pulse 2s infinite;
}

.bot-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--bg-secondary);
    color: var(--text-primary);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.875rem;
    font-weight: 600;
    border: 1px solid var(--border);
    margin-bottom: 1.5rem;
}

.bot-badge.featured {
    background: var(--gradient-primary);
    color: white;
    border-color: var(--primary);
    animation: glow 2s infinite;
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 5px rgba(99, 102, 241, 0.3);
    }
    50% {
        box-shadow: 0 0 20px rgba(99, 102, 241, 0.6);
    }
}

.bot-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.bot-icon {
    background: var(--gradient-primary);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    flex-shrink: 0;
    box-shadow: var(--shadow-md);
}

.bot-info h3 {
    color: var(--text-primary);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.bot-version {
    color: var(--text-muted);
    font-size: 0.875rem;
    font-weight: 500;
}

.bot-description {
    margin-bottom: 2rem;
}

.bot-description p {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 1rem;
}

.bot-features {
    margin-bottom: 2rem;
}

.feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border);
}

.feature:last-child {
    border-bottom: none;
}

.feature i {
    color: var(--success);
    font-size: 0.875rem;
    width: 16px;
    text-align: center;
}

.feature span {
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.95rem;
}

.bot-stats {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.stat {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--bg-secondary);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    border: 1px solid var(--border);
    font-size: 0.875rem;
}

.stat i {
    color: var(--primary);
}

.stat span {
    color: var(--text-primary);
    font-weight: 600;
}

.bot-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-bot-primary,
.btn-bot-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    flex: 1;
    justify-content: center;
    min-width: 150px;
}

.btn-bot-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-bot-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-bot-secondary {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.btn-bot-secondary:hover {
    background: var(--bg-hover);
    border-color: var(--primary);
    color: var(--primary);
}

/* Usage Section */
.usage-section {
    background: var(--bg-secondary);
    border-radius: 20px;
    padding: 3rem 2rem;
    margin-bottom: 3rem;
    border: 1px solid var(--border);
}

.usage-section h3 {
    color: var(--text-primary);
    font-size: 1.75rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 2rem;
}

.usage-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.usage-step {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.usage-step:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.usage-icon {
    background: var(--gradient-primary);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
    box-shadow: var(--shadow-md);
}

.usage-content h4 {
    color: var(--text-primary);
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.usage-content p {
    color: var(--text-secondary);
    line-height: 1.5;
    font-size: 0.95rem;
}

/* Community Section */
.community-section {
    background: linear-gradient(135deg, var(--bg-card), rgba(99, 102, 241, 0.05));
    border-radius: 20px;
    padding: 3rem 2rem;
    text-align: center;
    border: 1px solid var(--border);
}

.community-content h3 {
    color: var(--text-primary);
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.community-content p {
    color: var(--text-secondary);
    font-size: 1.125rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.community-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-community {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.btn-community {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-community:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-community.secondary {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.btn-community.secondary:hover {
    background: var(--bg-hover);
    border-color: var(--primary);
    color: var(--primary);
}

/* Mobile Responsiveness for Bots Section */
@media (max-width: 768px) {
    .opensource-bots {
        padding: 3rem 0;
    }

    .opensource-header h2 {
        font-size: 2rem;
    }

    .bots-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-bottom: 3rem;
    }

    .bot-card {
        padding: 1.5rem;
    }

    .bot-header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .bot-actions {
        flex-direction: column;
    }

    .usage-steps {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .usage-step {
        padding: 1.5rem;
    }

    .community-actions {
        flex-direction: column;
        align-items: center;
    }

    .community-section {
        padding: 2rem 1.5rem;
    }
}