/* ===== АВТОНОМНЫЕ СТИЛИ ДЛЯ СТРАНИЦЫ ТРИ ОРАКУЛА ===== */

/* Базовые сбросы и типография */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Georgia', 'Times New Roman', serif;
    line-height: 1.7;
    color: #333;
    background-color: #c8e4ed;
    font-size: 16px;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Типография */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: #2c3e50;
}

h1 {
    font-size: 2.8rem;
}

h2 {
    font-size: 2.2rem;
    color: #597d89;
}

h3 {
    font-size: 1.8rem;
}

h4 {
    font-size: 1.4rem;
}

p {
    margin-bottom: 1.5rem;
}

a {
    text-decoration: none;
    color: #597d89;
    transition: color 0.3s ease;
}

a:hover {
    color: #4a6a75;
}

/* Кнопки */
.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: #597d89;
    color: white;
    border: none;
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.btn:hover {
    background-color: #4a6a75;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    color: white;
}

.btn:disabled {
    background-color: #95a5a6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.btn-copy {
    background: #95a5a6;
}

.btn-copy:hover {
    background: #7f8c8d;
}

/* Шапка сайта */
.header {
    background-color: #fff;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 15px;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: #597d89;
}

.nav {
    display: flex;
    gap: 2rem;
}

.nav a {
    font-weight: 600;
    position: relative;
}

.nav a:hover,
.nav a.active {
    color: #4a6a75;
}

.nav a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #597d89;
}

/* Подвал сайта */
.footer {
    background-color: #2c3e50;
    color: #ecf0f1;
    padding: 3rem 0 2rem;
}

.footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-nav {
    display: flex;
    gap: 1.5rem;
}

.footer-nav a {
    color: #bdc3c7;
}

.footer-nav a:hover {
    color: #ecf0f1;
}

/* Хлебные крошки */
.breadcrumbs {
    background-color: #f8f9fa;
    padding: 1rem 0;
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

.breadcrumbs a {
    color: #597d89;
}

.breadcrumbs span {
    color: #666;
}

/* Основной контент страницы */
.universe-page {
    padding-top: 2rem;
    min-height: calc(100vh - 200px);
}

/* Заголовки разделов */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.2rem;
    color: #666;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Секция оракулов */
.oracles-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.oracles-selection {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.oracle-option {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.oracle-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #597d89, #4a6a75);
    border-radius: 4px 4px 0 0;
}

.oracle-option:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.12);
}

.oracle-option.selected {
    border-color: #597d89;
    background: #f8f9fa;
}

.oracle-option i {
    font-size: 3rem;
    color: #597d89;
    margin-bottom: 1.5rem;
}

.oracle-option h3 {
    margin-bottom: 1rem;
    color: #2c3e50;
}

.oracle-option p {
    margin-bottom: 0;
    color: #666;
    font-style: italic;
}

.oracle-result {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.prediction-card {
    background: white;
    padding: 3rem 2.5rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    margin-bottom: 2rem;
    min-height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border-left: 5px solid #597d89;
}

.prediction-card::before {
    content: '"';
    position: absolute;
    top: 1rem;
    left: 1.5rem;
    font-size: 4rem;
    color: #597d89;
    opacity: 0.3;
    font-family: Georgia, serif;
}

.prediction-card::after {
    content: '"';
    position: absolute;
    bottom: 1rem;
    right: 1.5rem;
    font-size: 4rem;
    color: #597d89;
    opacity: 0.3;
    font-family: Georgia, serif;
}

#prediction-text {
    font-size: 1.2rem;
    line-height: 1.7;
    color: #2c3e50;
    margin: 0;
    font-style: italic;
}

.oracle-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

.disclaimer {
    margin-top: 3rem;
    padding: 1.5rem;
    background: rgba(89, 125, 137, 0.1);
    border-radius: 10px;
    font-size: 0.9rem;
    color: #666;
    text-align: center;
}

.loading {
    display: none;
    font-size: 1.5rem;
    color: #597d89;
    margin-bottom: 1rem;
}

.loading i {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.fade-in {
    animation: fadeIn 0.8s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Стили для placeholder изображений */
.placeholder-image {
    width: 100%;
    height: 250px;
    background: #e8ebef;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #597d89;
}

.placeholder-image i {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.placeholder-image span {
    font-size: 1.5rem;
    font-weight: bold;
}

/* Анимации появления при скролле */
.oracle-option,
.prediction-card {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.oracle-option.visible,
.prediction-card.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Адаптивность */
@media (max-width: 1200px) {
    .container {
        width: 95%;
    }
}

@media (max-width: 992px) {
    h1 {
        font-size: 2.4rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .oracles-selection {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav {
        gap: 1.5rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .oracles-selection {
        grid-template-columns: 1fr;
    }
    
    .prediction-card {
        padding: 2rem 1.5rem;
    }
    
    .oracle-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .oracle-option {
        padding: 2rem 1.5rem;
    }
    
    .footer .container {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
    
    .footer-nav {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .container {
        width: 100%;
        padding: 0 20px;
    }
    
    .oracles-section {
        padding: 60px 0;
    }
    
    .prediction-card {
        padding: 1.5rem 1rem;
        min-height: 120px;
    }
    
    #prediction-text {
        font-size: 1.1rem;
    }
    
    .loading {
        font-size: 1.2rem;
    }
    
    .oracle-option {
        padding: 1.5rem 1rem;
    }
    
    .section-header {
        margin-bottom: 3rem;
    }
}

/* Специфические стили для разных оракулов */
.oracle-option[data-oracle="foliant"] {
    border-top: 4px solid #8e44ad;
}

.oracle-option[data-oracle="cat"] {
    border-top: 4px solid #e67e22;
}

.oracle-option[data-oracle="enki"] {
    border-top: 4px solid #c0392b;
}

.oracle-option[data-oracle="foliant"].selected {
    background: linear-gradient(135deg, #f8f9fa 0%, #f3e5f5 100%);
}

.oracle-option[data-oracle="cat"].selected {
    background: linear-gradient(135deg, #f8f9fa 0%, #fff3e0 100%);
}

.oracle-option[data-oracle="enki"].selected {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffebee 100%);
}
/* Дополнительные стили для обновленного HTML */

.oracle-description {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.oracle-description small {
    color: #7f8c8d;
    font-style: italic;
}

.oracle-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.oracles-info {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid #e8ebef;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.info-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px);
}

.info-card i {
    font-size: 2.5rem;
    color: #597d89;
    margin-bottom: 1rem;
}

.info-card h4 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.info-card p {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 0;
}

/* Адаптивность для новых элементов */
@media (max-width: 768px) {
    .oracle-controls {
        gap: 0.8rem;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .info-card {
        padding: 1.5rem;
    }
}