/* ==========================================
   DEMO PAGE SPECIFIC STYLES
   ========================================== */

/* Demo Types Section */
.demo-types-section {
    padding: 80px 20px;
}

.demo-types-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.demo-type-card {
    background: var(--bg-dark-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2.5rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.demo-type-card.featured {
    border-color: var(--primary-teal);
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.05) 0%, var(--bg-dark-card) 100%);
}

.demo-type-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-teal);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.demo-type-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-teal);
    box-shadow: var(--shadow-glow);
}

.demo-type-card:hover::before {
    transform: scaleX(1);
}

.demo-type-badge {
    display: inline-block;
    background: var(--gradient-teal);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.demo-type-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    display: block;
}

.demo-type-card h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.demo-type-card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.demo-features {
    list-style: none;
    margin-bottom: 2rem;
    padding: 0;
}

.demo-features li {
    color: var(--text-secondary);
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.demo-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-teal);
    font-weight: bold;
}

/* Sandbox Section */
.sandbox-section {
    padding: 80px 20px;
    background: var(--bg-lighter);
}

.sandbox-wrapper {
    margin-top: 3rem;
}

.sandbox-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.sandbox-tab {
    flex: 1;
    min-width: 200px;
    background: var(--bg-dark-card);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-secondary);
}

.sandbox-tab:hover {
    border-color: var(--primary-teal);
    transform: translateY(-2px);
}

.sandbox-tab.active {
    border-color: var(--primary-teal);
    background: rgba(16, 185, 129, 0.1);
    color: var(--text-primary);
}

.tab-icon {
    font-size: 2rem;
}

.sandbox-tab strong {
    display: block;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.sandbox-tab p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin: 0;
}

.sandbox-content {
    position: relative;
}

.sandbox-panel {
    display: none;
}

.sandbox-panel.active {
    display: block;
}

.sandbox-demo {
    background: var(--bg-dark-card);
    border: 2px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    position: relative;
    min-height: 500px;
}

/* Demo Placeholder */
.demo-placeholder {
    background: #f5f5f5;
    border-radius: 12px;
    overflow: hidden;
    min-height: 450px;
}

.placeholder-header {
    background: white;
    padding: 1rem;
    border-bottom: 1px solid #e0e0e0;
}

.placeholder-nav {
    display: flex;
    gap: 1rem;
}

.nav-item {
    padding: 0.5rem 1rem;
    background: #f5f5f5;
    border-radius: 6px;
    font-size: 0.875rem;
    color: #666;
}

.nav-item.active {
    background: var(--gradient-teal);
    color: white;
}

.placeholder-content {
    display: flex;
    min-height: 400px;
}

.placeholder-sidebar {
    width: 200px;
    background: white;
    padding: 1rem;
    border-right: 1px solid #e0e0e0;
}

.sidebar-item {
    height: 40px;
    background: #f5f5f5;
    border-radius: 6px;
    margin-bottom: 0.5rem;
}

.sidebar-item.active {
    background: rgba(16, 185, 129, 0.2);
}

.placeholder-main {
    flex: 1;
    padding: 2rem;
    background: #fafafa;
}

.placeholder-main.full {
    width: 100%;
}

.placeholder-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.placeholder-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.card-icon {
    font-size: 2rem;
}

.card-text {
    flex: 1;
}

.text-line {
    height: 12px;
    background: #e0e0e0;
    border-radius: 4px;
    margin-bottom: 0.5rem;
}

.text-line.short {
    width: 60%;
}

.course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

.course-card {
    background: white;
    border-radius: 12px;
    height: 200px;
}

.settings-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.setting-row {
    background: white;
    border-radius: 8px;
    height: 60px;
}

/* Demo Overlay */
.demo-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 10, 10, 0.95);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    gap: 1rem;
}

.btn-launch {
    padding: 1rem 2.5rem;
    background: var(--gradient-teal);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

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

.demo-overlay p {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* Sandbox Features */
.sandbox-features {
    background: var(--bg-dark-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
}

.sandbox-features h4 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 1.125rem;
}

.sandbox-features ul {
    list-style: none;
    padding: 0;
}

.sandbox-features li {
    color: var(--text-secondary);
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.sandbox-features li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary-teal);
}

.sandbox-note {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid var(--primary-teal);
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 2rem;
}

.sandbox-note p {
    color: var(--text-secondary);
    margin: 0;
}

/* Video Section */
.video-section {
    padding: 80px 20px;
}

.video-wrapper {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    margin-top: 3rem;
}

.video-player {
    background: var(--bg-dark-card);
    border: 2px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
}

.video-placeholder {
    aspect-ratio: 16/9;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.video-placeholder:hover {
    background: linear-gradient(135deg, #2d2d2d 0%, #1a1a1a 100%);
}

.play-button {
    width: 80px;
    height: 80px;
    background: var(--gradient-teal);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    margin-bottom: 1rem;
}

.video-placeholder p {
    color: var(--text-primary);
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

.video-placeholder span {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.video-chapters {
    background: var(--bg-dark-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
}

.video-chapters h4 {
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.chapter-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.chapter-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-lighter);
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
}

.chapter-item:hover {
    background: rgba(16, 185, 129, 0.1);
    transform: translateX(5px);
}

.chapter-time {
    color: var(--primary-teal);
    font-weight: 600;
    min-width: 50px;
}

.chapter-title {
    color: var(--text-secondary);
}

/* Screenshots Section */
.screenshots-section {
    padding: 80px 20px;
    background: var(--bg-lighter);
}

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

.screenshot-card {
    background: var(--bg-dark-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    transition: var(--transition);
}

.screenshot-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-teal);
}

.screenshot-placeholder {
    aspect-ratio: 16/9;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.screenshot-placeholder span {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.screenshot-placeholder p {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.screenshot-card h4 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 1.125rem;
}

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

/* FAQ Section */
.demo-faq-section {
    padding: 80px 20px;
}

.faq-list {
    max-width: 900px;
    margin: 3rem auto 0;
}

.faq-item {
    background: var(--bg-dark-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    margin-bottom: 1rem;
    overflow: hidden;
    transition: var(--transition);
}

.faq-item:hover {
    border-color: var(--primary-teal);
}

.faq-question {
    width: 100%;
    padding: 1.5rem;
    background: none;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    color: var(--text-primary);
    font-size: 1.125rem;
    font-weight: 500;
    text-align: left;
    transition: var(--transition);
}

.faq-question:hover {
    color: var(--primary-teal);
}

.faq-icon {
    font-size: 1.5rem;
    color: var(--primary-teal);
    transition: transform 0.3s ease;
    min-width: 30px;
    text-align: center;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer-content {
    padding: 0 1.5rem 1.5rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* CTA Section */
.cta {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, transparent 100%);
    padding: 80px 20px;
}

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

.cta-content h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.cta-content p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .video-wrapper {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .demo-types-grid {
        grid-template-columns: 1fr;
    }
    
    .sandbox-tabs {
        flex-direction: column;
    }
    
    .placeholder-content {
        flex-direction: column;
    }
    
    .placeholder-sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #e0e0e0;
    }
    
    .screenshots-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .cta-buttons .btn-primary,
    .cta-buttons .btn-secondary {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .demo-types-grid {
        grid-template-columns: 1fr;
    }
    
    .sandbox-tab {
        min-width: 150px;
    }
    
    .sandbox-demo {
        min-height: 350px;
    }
    
    .demo-placeholder {
        min-height: 300px;
    }
    
    .faq-grid {
        grid-template-columns: 1fr;
    }
    
    .placeholder-cards {
        grid-template-columns: 1fr;
    }
    
    .course-grid {
        grid-template-columns: 1fr;
    }
    
    .page-title {
        font-size: 28px;
    }
}