/* ==========================================
   АДАПТИРОВАННЫЕ СТИЛИ ПОД UI_UX_CONSTITUTION
   ========================================== */

/* CSS Variables согласно конституции */
:root {
    --primary-color: #0ABAB5;      /* Бирюзовый - основной бренд */
    --primary-dark: #0097A7;       /* Темная бирюза */
    --accent-color: #FF6F61;       /* Коралловый */
    --text-primary: #343A40;       /* Основной текст */
    --text-secondary: #6C757D;     /* Вспомогательный текст */
    --bg-light: #F8F9FA;          /* Светлый фон */
    --white: #FFFFFF;             /* Белый */
    --success-color: #28a745;     /* Зеленый */
    --warning-color: #ffc107;     /* Желтый */
    --danger-color: #dc3545;      /* Красный */
    --border-color: #dee2e6;
    --shadow-sm: 0 2px 5px rgba(0,0,0,0.05);
    --shadow-md: 0 5px 15px rgba(0,0,0,0.05);
    --shadow-lg: 0 15px 30px rgba(0,0,0,0.1);
    --border-radius: 1rem;
    --border-radius-sm: 0.5rem;
    --transition: all 0.3s ease;
}

/* Основные стили */
.bible-plan-container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header секция */
.plan-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 3rem 2rem;
    text-align: center;
    border-radius: var(--border-radius);
    margin-bottom: 2rem;
    box-shadow: var(--shadow-md);
}

.plan-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

@media (max-width: 768px) {
    .plan-header h1 {
        font-size: 1.8rem;
    }
    .plan-header {
        padding: 2rem 1.5rem;
    }
}

.plan-header p {
    font-size: 1.2rem;
    opacity: 0.95;
    margin-bottom: 0;
}

/* Verse Block */
.verse-block {
    background: rgba(255,255,255,0.15);
    padding: 1.5rem;
    margin-top: 1.5rem;
    border-radius: var(--border-radius-sm);
    border-left: 4px solid var(--accent-color);
}

.verse-block p {
    font-style: italic;
    margin-bottom: 0.5rem;
}

.verse-ref {
    text-align: right;
    font-weight: 600;
    opacity: 0.9;
}

/* Navigation Tabs */
.nav-tabs {
    display: flex;
    background: var(--bg-light);
    border-bottom: 2px solid var(--border-color);
    overflow-x: auto;
    border-radius: var(--border-radius-sm) var(--border-radius-sm) 0 0;
    margin-top: 2rem;
}

.nav-tab {
    padding: 1rem 1.5rem;
    cursor: pointer;
    border: none;
    background: transparent;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-primary);
    transition: var(--transition);
    white-space: nowrap;
    position: relative;
}

.nav-tab:hover {
    background: rgba(10, 186, 181, 0.1);
    color: var(--primary-color);
}

.nav-tab.active {
    background: white;
    color: var(--primary-color);
    font-weight: 600;
}

.nav-tab.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary-color);
}

/* Content Area */
.content {
    padding: 2.5rem 2rem;
    background: white;
    border-radius: 0 0 var(--border-radius) var(--border-radius);
    box-shadow: var(--shadow-md);
    margin-bottom: 2rem;
}

@media (max-width: 768px) {
    .content {
        padding: 1.5rem 1rem;
    }
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeInUp 0.5s ease;
}

@keyframes fadeInUp {
    from { 
        opacity: 0; 
        transform: translateY(20px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

/* Stage (Этап) */
.stage {
    margin-bottom: 2.5rem;
    padding: 2rem;
    background: var(--bg-light);
    border-radius: var(--border-radius);
    border-left: 5px solid var(--primary-color);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.stage:hover {
    box-shadow: var(--shadow-md);
}

.stage-header {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
}

.stage-header:hover {
    transform: translateX(5px);
}

.stage-number {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.3em;
    margin-right: 1rem;
    flex-shrink: 0;
    box-shadow: var(--shadow-sm);
}

.stage h3 {
    color: var(--text-primary);
    font-size: 1.5rem;
    flex-grow: 1;
    margin: 0;
    font-weight: 700;
}

.expand-icon {
    font-size: 1.5em;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.stage.collapsed .expand-icon {
    transform: rotate(-90deg);
}

.stage-content {
    margin-left: 65px;
    max-height: 5000px;
    overflow: hidden;
    transition: max-height 0.5s ease;
}

.stage.collapsed .stage-content {
    max-height: 0;
}

@media (max-width: 768px) {
    .stage-content {
        margin-left: 0;
    }
    .stage {
        padding: 1.5rem 1rem;
    }
}

/* Book List */
.book-list {
    background: white;
    padding: 1.5rem;
    border-radius: var(--border-radius-sm);
    margin: 1rem 0;
}

.book-item {
    padding: 1.25rem;
    margin: 1rem 0;
    background: var(--bg-light);
    border-radius: var(--border-radius-sm);
    transition: var(--transition);
    border-left: 3px solid var(--primary-color);
}

.book-item:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-sm);
}

.book-name {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.book-description {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
    line-height: 1.6;
}

/* Rationale Box */
.rationale {
    background: #fff9e6;
    padding: 1.25rem;
    border-radius: var(--border-radius-sm);
    margin: 1rem 0;
    border-left: 4px solid var(--warning-color);
}

.rationale-title {
    font-weight: 600;
    color: var(--warning-color);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    font-size: 1.05rem;
}

.rationale-title::before {
    content: "💡";
    margin-right: 0.5rem;
    font-size: 1.2em;
}

/* Scripture Quote */
.scripture-quote {
    background: #e8f4f8;
    padding: 1.25rem;
    border-radius: var(--border-radius-sm);
    margin: 1rem 0;
    border-left: 4px solid var(--primary-color);
    font-style: italic;
}

.scripture-ref {
    text-align: right;
    font-weight: 600;
    color: var(--primary-color);
    margin-top: 0.75rem;
}

/* Method Card */
.method-card {
    background: white;
    padding: 2rem;
    margin: 1.5rem 0;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.method-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.method-title {
    color: var(--primary-color);
    font-size: 1.3em;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    font-weight: 700;
}

.method-title::before {
    content: "📖";
    margin-right: 0.75rem;
    font-size: 1.2em;
}

/* Steps List */
.steps-list {
    list-style: none;
    counter-reset: step-counter;
    padding: 0;
}

.steps-list li {
    counter-increment: step-counter;
    margin: 1.25rem 0;
    padding-left: 50px;
    position: relative;
}

.steps-list li::before {
    content: counter(step-counter);
    position: absolute;
    left: 0;
    top: 0;
    background: var(--primary-color);
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9em;
}

/* Tip Box */
.tip-box {
    background: #d4edda;
    padding: 1.25rem;
    border-radius: var(--border-radius-sm);
    margin: 1rem 0;
    border-left: 4px solid var(--success-color);
    line-height: 1.6;
}

.tip-box::before {
    content: "✓ ";
    font-weight: 700;
    color: var(--success-color);
    font-size: 1.1em;
}

/* Warning Box */
.warning-box {
    background: #f8d7da;
    padding: 1.25rem;
    border-radius: var(--border-radius-sm);
    margin: 1rem 0;
    border-left: 4px solid var(--accent-color);
    line-height: 1.6;
}

.warning-box::before {
    content: "⚠ ";
    font-weight: 700;
    color: var(--accent-color);
    font-size: 1.1em;
}

/* Timeline */
.timeline {
    position: relative;
    padding-left: 50px;
    margin: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--primary-color);
}

.timeline-item {
    position: relative;
    margin: 1.5rem 0;
    padding: 1.25rem;
    background: white;
    border-radius: var(--border-radius-sm);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.timeline-item:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-md);
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -38px;
    top: 20px;
    width: 16px;
    height: 16px;
    background: var(--primary-color);
    border-radius: 50%;
    border: 4px solid white;
    box-shadow: 0 0 0 2px var(--primary-color);
}

@media (max-width: 768px) {
    .timeline {
        padding-left: 35px;
    }
    .timeline::before {
        left: 12px;
    }
    .timeline-item::before {
        left: -26px;
        width: 12px;
        height: 12px;
    }
}

/* Practice Grid */
.practice-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.practice-card {
    background: white;
    padding: 1.75rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border-top: 4px solid var(--primary-color);
}

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

.practice-icon {
    font-size: 2.5em;
    margin-bottom: 1rem;
}

.practice-title {
    color: var(--text-primary);
    font-size: 1.2em;
    margin-bottom: 0.75rem;
    font-weight: 700;
}

/* Section Divider */
.section-divider {
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    margin: 2.5rem 0;
}

/* Utility Classes */
.highlight {
    background: #fff9e6;
    padding: 2px 6px;
    border-radius: 3px;
}

.emphasis {
    color: var(--accent-color);
    font-weight: 700;
}

/* Intro Section Styling */
.intro-section {
    background: linear-gradient(135deg, #f5f7fa 0%, #e8f4f8 100%);
    padding: 2.5rem 2rem;
    border-radius: var(--border-radius);
    margin-bottom: 2rem;
}

.intro-section .stage {
    background: white;
    border-left: 5px solid #667eea;
}

.intro-section .stage-number {
    background: #667eea;
}

.intro-notice {
    text-align: center;
    margin: 2rem 0;
    padding: 1.5rem;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
}

/* Responsive Tables */
table {
    width: 100%;
    margin: 1rem 0;
    border-collapse: collapse;
}

table th,
table td {
    padding: 0.75rem;
    text-align: left;
    border: 1px solid var(--border-color);
}

table th {
    background: var(--bg-light);
    font-weight: 600;
}

table tr:nth-child(even) {
    background: #f9f9f9;
}

@media (max-width: 768px) {
    table {
        font-size: 0.9rem;
    }
    table th,
    table td {
        padding: 0.5rem;
    }
}

/* Scrollbar Styling */
.nav-tabs::-webkit-scrollbar {
    height: 4px;
}

.nav-tabs::-webkit-scrollbar-track {
    background: var(--bg-light);
}

.nav-tabs::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}
