/* Demo Page Styles */

/* Demo Header */
.demo-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    margin-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.demo-badge {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 10px rgba(245, 158, 11, 0.3);
}

/* Language Toggle */
.language-toggle {
    display: flex;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.25rem;
    border-radius: 8px;
}

.lang-btn {
    padding: 0.5rem 1rem;
    border-radius: 6px;
    text-decoration: none;
    color: #94a3b8;
    font-weight: 500;
    transition: all 0.2s ease;
}

.lang-btn:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

.lang-btn.active {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

/* Demo Title */
.demo-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: #3e2723;
}

/* Demo Video Container */
.demo-video-container {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 0 auto 2.5rem auto;
    padding-bottom: 56.25%;
    /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.demo-video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 12px;
}

/* Book Selection */
.demo-book-selection {
    margin-bottom: 2rem;
}

.demo-books-container {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.demo-book-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    border-radius: 12px;
    background: rgba(0, 102, 204, 0.1);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.demo-book-card:hover {
    background: rgba(0, 102, 204, 0.2);
    transform: translateY(-4px);
    border-color: #0066CC;
}

.demo-book-card.selected {
    background: rgba(0, 102, 204, 0.15);
    border-color: #0066CC;
    box-shadow: 0 4px 20px rgba(0, 102, 204, 0.2);
}

.demo-book-cover {
    width: 120px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.demo-book-card:hover .demo-book-cover {
    transform: scale(1.05);
}

.demo-book-label {
    margin-top: 0.75rem;
    font-size: 0.875rem;
    color: #5d4037;
    font-weight: 500;
}

.demo-book-card.selected .demo-book-label {
    color: #0066CC;
}

/* CTA Section */
.demo-cta-section {
    margin-top: 3rem;
    padding: 2rem;
    text-align: center;
    background: rgba(204, 102, 0, 0.1);
    border-radius: 16px;
    border: 1px solid rgba(204, 102, 0, 0.2);
}

.demo-cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
    font-weight: 600;
    color: white;
    background: #CC6600;
    border: none;
    border-radius: 50px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(204, 102, 0, 0.3);
}

.demo-cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(204, 102, 0, 0.4);
    background: #b35900;
}

.demo-cta-button i {
    font-size: 1.25rem;
}

/* Demo Rate Limit Message */
.demo-limit-message {
    text-align: center;
    padding: 1.5rem;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 12px;
    margin: 1rem 0;
}

.demo-limit-message p {
    color: #fbbf24;
    margin: 0;
    font-weight: 500;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .demo-header {
        flex-direction: column;
        gap: 1rem;
    }

    .demo-title {
        font-size: 1.5rem;
    }

    .demo-books-container {
        gap: 1rem;
    }

    .demo-book-cover {
        width: 100px;
    }

    .demo-cta-button {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
}