/* Стили для индивидуального раздела - Минималистичный дизайн с пузырями */

/* Основной фон для рассказа о косатке - темный */
.content-section.killer-whale-section {
    background-color: #1a2639; /* Темно-синий фон */
    color: #ffffff; /* БЕЛЫЙ текст вместо #e2e8f0 */
    padding: 25px;
    margin-bottom: 30px;
    border-radius: 8px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
    border: none;
    min-height: 500px; /* Минимальная высота для равномерного распределения пузырей */
}

/* Заголовки для темного фона - БЕЛЫЕ */
.content-section.killer-whale-section h2 {
    color: #ffffff !important;
    font-size: 28px; /* Увеличили с 22px */
    margin-top: 0;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(135, 195, 232, 0.4); /* Более яркая граница */
    font-weight: 600;
}

.content-section.killer-whale-section h3 {
    color: #ffffff !important; /* Светло-голубой */
    font-size:24px; /* Увеличили с 18px */
    margin: 22px 0 12px 0; /* Увеличили отступы */
    font-weight: 600;
}

/* Текст для темного фона - БЕЛЫЙ и УВЕЛИЧЕННЫЙ */
.content-section.killer-whale-section p {
    color: #ffffff !important; /* Явно указываем белый цвет */
    line-height: 1.8;
    font-size: 17px;
    margin-bottom: 18px;
}

/* Карточки для темного фона */
.content-section.killer-whale-section .feature-card {
    background-color: rgba(42, 67, 101, 0.7);
    padding: 22px; /* Увеличили отступы */
    margin: 22px 0; /* Увеличили отступы */
    border-radius: 8px;
    border: 1px solid rgba(135, 195, 232, 0.3);
    transition: all 0.3s ease;
    position: relative;
    z-index: 3; /* Выше пузырей */
}

.content-section.killer-whale-section .feature-card:hover {
    box-shadow: 0 5px 20px rgba(135, 195, 232, 0.25);
    background-color: rgba(58, 77, 112, 0.8);
    border-color: rgba(135, 195, 232, 0.5);
    transform: translateY(-2px); /* Легкий подъем при наведении */
}

/* Изображения */
.image-container {
    text-align: center;
    margin: 28px 0; /* Увеличили отступы */
    position: relative;
    z-index: 3; /* Изображения поверх пузырей */
}

.image-container img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
}


.image-caption {
    font-size: 15px; /* Увеличили с 14px */
    color: #b0c4de; /* Более светлый цвет для подписей */
    margin-top: 10px; /* Увеличили отступ */
    font-style: italic;
    text-align: center;
    font-weight: 300;
}

.center-image {
    max-width: 450px; /* Увеличили максимальную ширину */
    margin: 35px auto; /* Увеличили отступы */
}

/* Таблица для темного фона */
.content-section.killer-whale-section .table-container {
    overflow-x: auto;
    margin: 28px 0; /* Увеличили отступы */
    position: relative;
    z-index: 3;
}

.content-section.killer-whale-section .stamp-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 auto;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
    border-radius: 8px;
    overflow: hidden;
    background-color: #2c3e50;
}

.content-section.killer-whale-section .stamp-table caption {
    caption-side: top;
    font-weight: 600;
    color: #ffffff;
    padding: 18px; /* Увеличили отступы */
    font-size: 17px; /* Увеличили размер */
    background-color: #3a4d70;
    border-bottom: 1px solid rgba(135, 195, 232, 0.4);
}

.content-section.killer-whale-section .stamp-table th,
.content-section.killer-whale-section .stamp-table td {
    padding: 16px 20px; /* Увеличили отступы */
    text-align: left;
    border-bottom: 1px solid rgba(135, 195, 232, 0.3);
    color: #ffffff;
    font-size: 16px; /* Увеличили размер текста в таблице */
}

.content-section.killer-whale-section .stamp-table th {
    background-color: #3a4d70;
    color: white;
    font-weight: 600;
    font-size: 16px; /* Увеличили с 14px */
}

.content-section.killer-whale-section .stamp-table tr:nth-child(even) {
    background-color: rgba(58, 77, 112, 0.4);
}

.content-section.killer-whale-section .stamp-table tr:hover {
    background-color: rgba(135, 195, 232, 0.15);
}

.content-section.killer-whale-section .stamp-table tr:last-child td {
    border-bottom: none;
}

/* Описание марки для темного фона */
.content-section.killer-whale-section .stamp-description {
    background-color: rgba(42, 67, 101, 0.7);
    padding: 22px; /* Увеличили отступы */
    border-radius: 8px;
    font-size: 16px; /* Увеличили с 15px */
    line-height: 1.7;
    color: #ffffff;
    margin: 22px 0; /* Увеличили отступы */
    border: 1px solid rgba(135, 195, 232, 0.4);
    position: relative;
    z-index: 3;
}

/* Заключение для темного фона */
.content-section.killer-whale-section .conclusion {
    background-color: rgba(42, 67, 101, 0.7);
    border: 1px solid rgba(135, 195, 232, 0.4);
    position: relative;
    z-index: 3;
    padding: 20px;
    border-radius: 8px;
    margin-top: 25px;
}

/* Ссылки для темного фона */
.links-container {
    display: flex;
    flex-direction: column;
    gap: 14px; /* Увеличили промежуток */
    padding: 25px 0; /* Увеличили отступы */
}

.magister-link {
    display: flex;
    align-items: center;
    padding: 14px 20px; /* Увеличили отступы */
    background-color: #2c3e50;
    border-radius: 8px;
    text-decoration: none;
    color: #87c3e8;
    border: 1px solid rgba(135, 195, 232, 0.4);
    transition: all 0.3s ease;
    position: relative;
    z-index: 3;
    font-size: 16px; /* Увеличили размер текста ссылок */
}

.magister-link:hover {
    background-color: rgba(135, 195, 232, 0.15);
    color: #ffffff;
    text-decoration: none;
    border-color: #87c3e8;
    transform: translateX(5px); /* Легкое смещение при наведении */
}

.magister-link::before {
    content: "→";
    margin-right: 12px; /* Увеличили отступ */
    color: #87c3e8;
    font-weight: bold;
    font-size: 18px;
}

/* Стили для пузырей - ТЕПЕРЬ ПОД КОНТЕНТОМ, но ВИДНЫ ВЕЗДЕ */
.bubble {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 1; /* Под контентом, но над фоном */
    opacity: 0.08; /* Чуть прозрачнее */
    background: radial-gradient(circle at 30% 30%, rgba(230, 245, 255, 0.6), rgba(150, 200, 240, 0.2));
    filter: blur(0.5px); /* Легкое размытие для мягкости */
}

/* Адаптивность */
@media (max-width: 768px) {
    .content-section.killer-whale-section {
        padding: 20px;
        margin-bottom: 25px;
    }
    
    .content-section.killer-whale-section h2 {
        font-size: 22px;
    }
    
    .content-section.killer-whale-section h3 {
        font-size: 18px;
    }
    
    .content-section.killer-whale-section p {
        font-size: 16px;
        line-height: 1.7;
    }
    
    .content-section.killer-whale-section .stamp-table th,
    .content-section.killer-whale-section .stamp-table td {
        padding: 14px 16px;
        font-size: 15px;
    }
    
    .center-image {
        max-width: 100%;
    }
    
    .content-section.killer-whale-section .feature-card {
        padding: 18px;
    }
    
    .magister-link {
        padding: 12px 16px;
        font-size: 15px;
    }
}

/* Заголовок главной страницы */
#maintext h1 {
    color: #2c3e50;
    text-align: center;
    margin: 30px 0;
    font-size: 28px;
    font-weight: 600;
    padding-bottom: 15px;
    border-bottom: 2px solid #e2e8f0;
}

/* Обычные секции (оставьте как есть для других разделов) */
.content-section {
    background-color: white;
    padding: 25px;
    margin-bottom: 30px;
    border-radius: 8px;
    box-shadow: 0 3px 12px rgba(58, 77, 112, 0.08);
    position: relative;
    overflow: hidden;
    border: none;
}

.content-section h2 {
    color: #2c3e50;
    font-size: 22px;
    margin-top: 0;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e2e8f0;
    font-weight: 600;
}

.feature-card {
    background-color: #f8fafc;
    padding: 20px;
    margin: 20px 0;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

/* Убедимся, что контент всегда над пузырями */
.feature-card, .stamp-description, .conclusion, .image-container, 
.table-container, .links-container, .magister-link {
    position: relative;
    z-index: 3; /* Выше пузырей */
}

/* Более светлые и мягкие пузыри для темного фона */
.content-section.killer-whale-section .bubble {
    opacity: 0.07; /* Еще прозрачнее для лучшей читаемости */
    background: radial-gradient(circle at 30% 30%, rgba(240, 250, 255, 0.7), rgba(170, 210, 240, 0.3));
    box-shadow: 
        inset 0 0 20px rgba(255, 255, 255, 0.7),
        0 0 25px rgba(220, 240, 255, 0.4);
    filter: blur(0.8px); /* Более сильное размытие */
}

/* Улучшаем читаемость - добавляем легкий фон для длинных параграфов */
.content-section.killer-whale-section p {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1); /* Легкая тень для текста */
}

/* Стили для академического оформления ссылок */

.references-container {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 25px 0;
}

.reference-item {
    background-color: #f8fafc;
    padding: 18px 22px;
    border-radius: 6px;
    border-right: 1px solid #e2e8f0;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
    position: relative;
    z-index: 3;
}

.reference-item:hover {
    background-color: #f0f7ff;
    box-shadow: 0 4px 12px rgba(58, 77, 112, 0.1);
    border-left-color: #2c3e50;
}

.reference-text {
    color: #2c3e50;
    font-size: 15px;
    line-height: 1.6;
    margin: 0;
    font-family: 'Times New Roman', Times, serif;
}

.reference-author {
    font-weight: 600;
    color: #3a4d70;
}

.reference-link {
    color: #3a4d70;
    text-decoration: none;
    border-bottom: 1px dashed #87c3e8;
    word-break: break-all;
}

.reference-link:hover {
    color: #2c3e50;
    border-bottom: 1px solid #3a4d70;
    text-decoration: none;
}

/* Для темной секции с косаткой */
.content-section.killer-whale-section .references-container {
    padding: 20px 0;
}

.content-section.killer-whale-section .reference-item {
    background-color: rgba(42, 67, 101, 0.7);
    border-left: 4px solid #87c3e8;
    border-right: 1px solid rgba(135, 195, 232, 0.3);
    border-top: 1px solid rgba(135, 195, 232, 0.3);
    border-bottom: 1px solid rgba(135, 195, 232, 0.3);
}

.content-section.killer-whale-section .reference-item:hover {
    background-color: rgba(58, 77, 112, 0.8);
    border-left-color: #ffffff;
}

.content-section.killer-whale-section .reference-text {
    color: #ffffff;
}

.content-section.killer-whale-section .reference-author {
    color: #87c3e8;
}

.content-section.killer-whale-section .reference-link {
    color: #b0c4de;
    border-bottom: 1px dashed rgba(135, 195, 232, 0.5);
}

.content-section.killer-whale-section .reference-link:hover {
    color: #ffffff;
    border-bottom: 1px solid #87c3e8;
}

/* Адаптивность для ссылок */
@media (max-width: 768px) {
    .reference-item {
        padding: 16px 18px;
    }
    
    .reference-text {
        font-size: 14px;
        line-height: 1.5;
    }
    
    .reference-link {
        font-size: 13px;
    }
}