/* ========================================
   ORAKUL.SU — Космический Glassmorphism
   Белые полупрозрачные дивы + графитовый шрифт
   ======================================== */

:root {
    --glass-bg: rgba(255, 255, 255, 0.18);
    --glass-border: rgba(255, 255, 255, 0.35);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    --glass-blur: 24px;
    --cosmic-purple: #7c3aed;
    --cosmic-blue: #3b82f6;
    --cosmic-pink: #ec4899;
    --cosmic-cyan: #06b6d4;
    --graphite: #2d3436;
    --graphite-light: #636e72;
    --graphite-dark: #1e272e;
    --white-glow: rgba(255, 255, 255, 0.9);
    --nebula-glow: rgba(124, 58, 237, 0.4);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    background: linear-gradient(135deg, #000000 0%, #0a0a0f 50%, #05050a 100%);
    color: var(--graphite-dark);
    min-height: 100vh;
    overflow-x: hidden;
}

/* ========================================
   Космический фон
   ======================================== */
.cosmos-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background: linear-gradient(135deg, #000000 0%, #0a0a0f 50%, #05050a 100%);
}

.stars {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(1px 1px at 10px 20px, rgba(255,255,255,0.9), transparent),
        radial-gradient(1px 1px at 50px 80px, rgba(255,255,255,0.7), transparent),
        radial-gradient(2px 2px at 120px 40px, rgba(255,255,255,0.8), transparent);
    background-size: 350px 200px;
    animation: twinkle 8s ease-in-out infinite;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

.nebula {
    position: absolute;
    width: 800px;
    height: 800px;
    background: radial-gradient(ellipse at center, rgba(124,58,237,0.2) 0%, transparent 70%);
    top: -300px;
    right: -300px;
    filter: blur(80px);
    animation: nebulaFloat 30s ease-in-out infinite;
}

@keyframes nebulaFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-100px, 100px) scale(1.2); }
}

/* ========================================
   ORAKUL.SU — Контейнер Оракула
   ======================================== */
.oracle-container {
    position: relative;
    z-index: 10;
    max-width: 900px;
    margin: 0 auto;
    padding: 3rem 2rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Центрирование контейнера */
.oracle-container {
    margin-left: auto;
    margin-right: auto;
}

.oracle-title {
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: 0.3em;
    text-align: center;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--graphite-dark) 0%, var(--graphite-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.3));
}

.oracle-subtitle {
    font-size: 0.95rem;
    font-weight: 400;
    letter-spacing: 0.15em;
    text-align: center;
    color: var(--graphite-light);
    margin-bottom: 2rem;
    opacity: 0.8;
}

.oracle-description {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
    width: 100%;
    box-shadow: var(--glass-shadow);
}

.description-text {
    color: var(--graphite-dark);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.description-text:last-child {
    margin-bottom: 0;
}

.description-text strong {
    color: var(--graphite-dark);
    font-weight: 700;
}

/* ========================================
   Форма вопроса
   ======================================== */
.question-form {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2rem;
    width: 100%;
    margin-bottom: 2rem;
    box-shadow: var(--glass-shadow);
}

.question-label {
    display: block;
    color: var(--graphite-dark);
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.question-input {
    width: 100%;
    padding: 1.25rem;
    font-size: 1rem;
    font-family: 'Montserrat', sans-serif;
    background: rgba(255, 255, 255, 0.7);
    border: 1.5px solid rgba(255, 255, 255, 0.4);
    border-radius: 12px;
    color: var(--graphite-dark);
    resize: vertical;
    transition: all 0.3s ease;
}

.question-input::placeholder {
    color: var(--graphite-light);
    opacity: 0.7;
}

.question-input:focus {
    outline: none;
    border-color: var(--cosmic-purple);
    box-shadow: 0 0 25px rgba(124, 58, 237, 0.3);
    background: rgba(255, 255, 255, 0.85);
}

/* ========================================
   Кнопка "Спросить Оракула"
   ======================================== */
.ask-button {
    margin-top: 1.5rem;
    width: 100%;
    padding: 1.25rem 2rem;
    font-size: 1.1rem;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
    background: linear-gradient(135deg, var(--cosmic-purple) 0%, var(--cosmic-blue) 100%);
    color: white;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 25px rgba(124, 58, 237, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.ask-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 40px rgba(124, 58, 237, 0.6);
}

.ask-button:active {
    transform: translateY(-1px);
}

.ask-button .button-loader {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.loader-spinner {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ========================================
   Ответ Оракула
   ======================================== */
.oracle-response {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2rem;
    width: 100%;
    margin-bottom: 2rem;
    box-shadow: var(--glass-shadow);
    animation: fadeIn 0.5s ease;
    display: none;
}

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

.response-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.response-header h2 {
    color: var(--graphite-dark);
    font-size: 1.5rem;
    font-weight: 700;
}

.close-button {
    background: none;
    border: none;
    font-size: 2.5rem;
    color: var(--graphite-light);
    cursor: pointer;
    transition: color 0.3s ease;
    line-height: 1;
}

.close-button:hover {
    color: var(--cosmic-pink);
}

.response-content {
    color: var(--graphite-dark);
    font-size: 1.05rem;
    line-height: 1.9;
}

.response-content h3 {
    color: var(--cosmic-purple);
    margin: 1.5rem 0 1rem;
}

.response-content p {
    margin-bottom: 1rem;
}

/* ========================================
   Особенности (features)
   ======================================== */
.oracle-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    width: 100%;
    margin-bottom: 2rem;
}

.feature {
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.feature:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 35px rgba(124, 58, 237, 0.3);
    border-color: rgba(255, 255, 255, 0.4);
}

.feature-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 1rem;
}

.feature h3 {
    color: var(--graphite-dark);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.feature p {
    color: var(--graphite-light);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* ========================================
   Footer
   ======================================== */
.oracle-footer {
    text-align: center;
    padding: 2rem;
    margin-top: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.oracle-footer p {
    color: var(--graphite-light);
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.footer-note {
    opacity: 0.7;
}

/* ========================================
   Адаптивность
   ======================================== */
@media (max-width: 768px) {
    .oracle-title {
        font-size: 2.5rem;
    }

    .oracle-container {
        padding: 1.5rem 1rem;
    }

    .oracle-description,
    .question-form {
        padding: 1.5rem;
    }
}
