/* === 1. Специфика Главной страницы === */
.main-title {
    display: flex;
    align-items: center;
    justify-content: center;
}

.title-icon {
    display:inline-block;
    font-size: 1.4em;
    margin-left: 10px;
    transform: translateY(-2px);
}

.index-page .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    /*justify-content: center; */ /* На главной шар должен быть по центру */
    min-height: 100vh; /*  Поднимает контейнер выше от нижнего края */
    padding-top: 40px;
    gap: 20px;
}

/* === 2. Магический Шар (Главная) === */
.magic-ball {
    width: 280px; 
    height: 280px;
    background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.15), #4a3a8a);
    border-radius: 50%; 
    /*position: relative;*/
    display: flex; 
    align-items: center; 
    justify-content: center;
    text-align: center;
    padding: 20px;
    box-shadow: 0 0 60px rgba(0,0,0,0.5);
    margin-bottom: 30px; 
    animation: pulse 3s infinite alternate; /* Анимация в base.css */
}

.answer-text {
    padding: 20px; 
    font-size: 1.1em; 
    line-height: 1.5; 
    text-shadow: 1px 1px 5px rgba(0,0,0,0.5);
    color: white;
}

/* === 3. Поле ввода и Группа === */
.input-group {
    display: flex; 
    gap: 10px; 
    width: 90%; 
    max-width: 600px; 
    margin-bottom: 25px auto;
    align-items: stretch;
    /*justify-content: center;*/
    /*z-index: 10;*/
}

input[type="text"] {
    flex: 1;
    height: 50px; 
    padding: 0 25px; 
    border-radius: 25px;
    /*border: 1px solid rgba(255,255,255,0.3);*/
    border: 2px solid #6c5ce7; 
    background: rgba(0,0,0,0.6) !important;
    color: white !important;
    font-size: 1.1rem; 
    outline: none; 
    backdrop-filter: blur(10px); 
    /*transition: 0.3s;*/
}

/*input[type="text"]:focus {
    border-color: #7d5fff;
    box-shadow: 0 0 15px rgba(125, 95, 255, 0.4);
}*/

/* === 4. Дополнительные кнопки (микрофон и т.д.) === */
.primary-btn, .voice-btn {
    background: rgba(0, 0, 0, 0.7);
    color: white;
    /*border: 1px solid rgba(255, 255, 255, 0.2); */
    border: 2px solid #6c5ce7;
    border-radius: 25px;
    /*width: 50px;*/
    height: 50px; /* выравниваем высоту с импут */
    cursor: pointer;
    padding: 0 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
    font-weight: bold;
}

.voice-btn {
    padding: 0 15px; /* микрафон чуть ниже */
}

/* Эффекты наведения для всех кнопок ввода */
.primary-btn:hover, .voice-btn:hover, input[type="text"]:focus {
    border-color: #9a80ff;
    background: rgba(108, 92, 231, 0.2);
    box-shadow: 0 0 15px rgba(108, 92, 231, 0.4);
}

/* === Заголовок: Магический Шар === */
h1 {
    font-family: 'Cinzel', serif !important;
    margin: 0;
    padding-top: 48px;               /* подъём от верха */
    font-family: 'Cinzel', serif;    /* ← ключевая строка */
    font-size: 2.6rem;              /* ~42px */
    font-weight: 700;
    color: #e0d6ff;                /*утрово-фиолетовый */
    text-shadow: 
        0 0 14px rgba(125, 95, 255, 0.7),
        0 0 30px rgba(125, 95, 255, 0.3);
    letter-spacing: 2px;
    position: relative;
}

/* Линия разлома под заголовком */
h1::after {
    content: "";
    position: absolute;
    top: calc(100% + 16px);
    left: 50%;
    width: 120px;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(125, 95, 255, 0.7), transparent);
    transform: translateX(-50%);
    opacity: 0.8;
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

/* Виджет часов в стиле Glassmorphism */
.glass-widget {
    position: fixed;
    bottom: 18%;
    left: 50%;
    transform: translateX(-50%);
    padding: 12px 30px;
    background: none;/*rgba(20, 20, 40, 0.4);*/
    backdrop-filter: none;/*blur(12px);*/
    -webkit-backdrop-filter: none;/*blur(12px);*/ /* Для поддержки Safari */
    border: none;/*1px solid rgba(125, 95, 255, 0.2);*/
    /*border-radius: 20px;*/
    color: white;
    text-align: center;
    z-index: 900;
    box-shadow: none;/*0 8px 32px rgba(0, 0, 0, 0.3);*/
    pointer-events: none;
    animation: fadInClock 2s ease-in-out;
    /*transition: transform 0.3s ease;*/
}

#current-time {
    font-size: 4.5rem;
    font-weight: 200;
    color: #fff;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
                 /*0 0 40px rgba(125, 95, 225, 0.3);*/
    letter-spacing: 8px;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    /*line-height: 1.2;*/
}

#current-date {
    font-size: 1.1rem;
    opacity: 0.8;
    letter-spacing: 2px;
    /*text-transform: capitalize;*/
    margin-top: 5px;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}
@keyframes fadInClock {
    from { opacity: 0; transform: translateX(-50%) translateY(20px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}