/* Andrews-Curtis Conjecture Interactive Page Styles */

body {
    font-family: 'Inter', sans-serif;
    background-color: #F8F7F4;
    color: #3D3B30;
    font-size: 0.9rem;
    line-height: 1.5;
}

.tab-btn {
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

.tab-btn.active {
    color: #C0842B;
    border-bottom-color: #C0842B;
}

.content-section {
    display: none;
}

.content-section.active {
    display: block;
}

.card {
    background-color: #FFFFFF;
    border: 1px solid #E5E2D9;
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.07), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.hierarchy-btn, .example-btn {
    transition: all 0.3s ease;
    border: 1px solid #D1CFC7;
}

.hierarchy-btn.active, .example-btn.active {
    background-color: #C0842B;
    color: #FFFFFF;
    border-color: #C0842B;
}

.chart-container {
    position: relative; 
    width: 100%; 
    max-width: 600px; 
    margin-left: auto; 
    margin-right: auto; 
    height: 300px;
    max-height: 400px;
}

@media (min-width: 768px) {
    .chart-container { 
        height: 350px; 
    }
}

.flow-step {
    border: 2px solid #E5E2D9;
    background-color: #FFF;
    padding: 0.75rem;
    border-radius: 0.5rem;
    text-align: center;
    font-size: 0.85rem;
}

.arrow {
    font-size: 2rem;
    color: #C0842B;
    align-self: center;
}

.example-desc {
    display: none;
}

.example-desc.active {
    display: block;
}

code {
    background-color: #f0ebe0;
    padding: 0.125rem 0.375rem;
    border-radius: 0.25rem;
    font-family: monospace;
    font-size: 0.8em;
}

/* AC Specific Header Styles */
.ac-header {
    text-align: center;
    margin-bottom: 2rem;
}

.ac-title {
    font-size: 2rem;
    font-weight: bold;
    color: #3D3B30;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.ac-subtitle {
    font-size: 1rem;
    color: #6B685E;
    margin-bottom: 0.5rem;
}

@media (min-width: 768px) {
    .ac-title {
        font-size: 2.25rem;
    }
    .ac-subtitle {
        font-size: 1.1rem;
    }
}

/* AC Navigation */
.ac-nav {
    margin-bottom: 2rem;
    border-bottom: 1px solid #e5e7eb;
}

.ac-nav .max-w-5xl {
    max-width: 120rem;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

/* Main Content Areas */
.ac-main {
    min-height: 100vh;
}

.ac-container {
    max-width: 120rem;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 640px) {
    .ac-container {
        padding: 0 1.5rem;
    }
}

@media (min-width: 1024px) {
    .ac-container {
        padding: 0 2rem;
    }
}

/* Section specific styles */
.section-intro {
    text-align: center;
    font-size: 0.95rem;
    color: #6b7280;
    margin-bottom: 2rem;
    line-height: 1.5;
}

/* Grid Layout */
.ac-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: start;
}

@media (min-width: 768px) {
    .ac-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .ac-grid-3 {
        grid-template-columns: repeat(3, 1fr);
    }
}

.ac-full-width {
    grid-column: 1 / -1;
    margin-top: 2rem;
}

/* Card Headers */
.card-header {
    font-size: 1.25rem;
    font-weight: bold;
    margin-bottom: 0.75rem;
    color: #C0842B;
}

/* Interactive Elements */
.interactive-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.interactive-content {
    background-color: #f9fafb;
    padding: 1rem;
    border-radius: 0.5rem;
    border: 1px solid #e5e7eb;
    font-size: 0.85rem;
}

/* Hierarchy Display */
#hierarchy-descriptions .hidden {
    display: none;
}

#hierarchy-descriptions > div:not(.hidden) {
    display: block;
}

/* Example Display */
.example-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.example-content {
    background-color: #f9fafb;
    padding: 1rem;
    border-radius: 0.5rem;
    border: 1px solid #e5e7eb;
    font-size: 0.85rem;
}

/* Oracle Details Toggle */
#oracle-step {
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#oracle-step:hover {
    background-color: #fef3c7;
}

#oracle-details.hidden {
    display: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .tab-btn {
        padding: 1rem 0.5rem;
        font-size: 0.875rem;
    }
    
    .interactive-buttons,
    .example-buttons {
        gap: 0.5rem;
    }
    
    .hierarchy-btn,
    .example-btn {
        padding: 0.75rem;
        font-size: 0.875rem;
    }
}