/* Topic Pages - Specific Styles */

/* Topic Hero */
.topic-hero {
    padding: 4rem 5% 3rem;
    text-align: center;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(139, 92, 246, 0.05) 100%);
    border-bottom: 1px solid var(--border);
}

.topic-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.topic-hero .hook {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
}

/* Content Sections */
.topic-section {
    max-width: 900px;
    margin: 0 auto;
    padding: 3rem 5%;
}

.topic-section h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.topic-section p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

/* Common Mistake Section */
.common-mistake {
    background: #fef2f2;
    border-left: 4px solid #ef4444;
    padding: 2rem;
    border-radius: var(--radius);
    margin: 2rem 0;
}

.common-mistake h3 {
    color: #991b1b;
    margin-bottom: 1rem;
}

/* Shortcut Section */
.shortcut {
    background: #f0fdf4;
    border-left: 4px solid var(--accent-green);
    padding: 2rem;
    border-radius: var(--radius);
    margin: 2rem 0;
}

.shortcut h3 {
    color: #065f46;
    margin-bottom: 1rem;
}

/* Formula Display */
.formula-display {
    background: white;
    border: 2px solid var(--accent-primary);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin: 1.5rem 0;
    text-align: center;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--accent-primary);
}

/* Step-by-Step */
.steps {
    margin: 2rem 0;
}

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

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

.step-content {
    flex: 1;
}

.step-content h4 {
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.step-content p {
    margin: 0;
    font-size: 1rem;
}

/* Interactive Widget Container */
.interactive-widget {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin: 2rem 0;
    box-shadow: 0 10px 40px -10px rgba(0,0,0,0.05);
}

.widget-header {
    text-align: center;
    margin-bottom: 2rem;
}

.widget-header h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.widget-input-group {
    margin-bottom: 1.5rem;
}

.widget-input-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-primary);
}

.widget-input-group input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 1rem;
    font-family: 'Courier New', monospace;
}

.widget-output {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    border-radius: var(--radius);
    padding: 1.5rem;
    text-align: center;
}

.widget-output .result-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.widget-output .result-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-primary);
    font-family: var(--font-heading);
}

/* Topic CTA */
.topic-cta {
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    color: white;
    padding: 4rem 5%;
    text-align: center;
    margin-top: 4rem;
}

.topic-cta h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: white;
}

.topic-cta p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.topic-cta .btn-primary {
    background: white;
    color: var(--accent-primary);
    font-size: 1.1rem;
    padding: 1rem 2.5rem;
}

.topic-cta .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

/* Breadcrumb Navigation */
.breadcrumb {
    padding: 1rem 5%;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.breadcrumb a {
    color: var(--accent-primary);
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .topic-hero h1 {
        font-size: 1.8rem;
    }
    
    .topic-hero .hook {
        font-size: 1rem;
    }
    
    .topic-section {
        padding: 2rem 5%;
    }
    
    .topic-section h2 {
        font-size: 1.5rem;
    }
    
    .formula-display {
        font-size: 1.2rem;
        padding: 1rem;
    }
    
    .widget-output .result-value {
        font-size: 2rem;
    }
    
    .topic-cta h2 {
        font-size: 1.8rem;
    }
}
