/* Общий фон и текст */
body {
    margin: 0;
    font-family: "Segoe UI", Arial, sans-serif;
    background: #1a1a1a; /* тёмный фон */
    color: #e0e0e0; /* светло-серый текст */
    text-align: center;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: 20px;
}

#container {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

/* Заголовок */
h1 {
    font-size: 2.2rem;
    margin-bottom: 30px;
    color: #f0f0f0;
    font-weight: 500;
    letter-spacing: 1px;
}

/* Блок с цитатой */
#quote-box {
    max-width: 800px;
    background: #2a2a2a;
    border-radius: 12px;
    padding: 25px 30px;
    margin-bottom: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

#quote {
    font-size: 1.5rem;
    font-style: italic;
    margin: 0 0 15px 0;
    color: #ffffff;
}

#author {
    font-size: 1rem;
    color: #b0b0b0;
    margin: 0;
}

/* Кнопки */
button {
    background: #333;
    color: #e0e0e0;
    border: 1px solid #444;
    border-radius: 8px;
    padding: 10px 18px;
    margin: 8px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.2s ease-in-out;
}

button:hover {
    background: #444;
    border-color: #666;
    transform: translateY(-2px);
}

button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Ряд действий (лайки/дизлайки/поделиться) */
#actions {
    margin: 20px 0;
}


#actions button {
    font-size: 1.1rem;
    /* margin:15px 0px; */
}

/* Авторизация */
#auth {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#auth button {
    width: 250px;
    margin: 8px 0;
    background: #262626;
    border: 1px solid #555;
}

#auth button:hover {
    background: #3a3a3a;
}

#share-menu {
    display: flex;
    gap: 20px;
    margin-top: 15px;
    justify-content: center;
    align-items: center;
}

#share-menu.hidden {
    display: none;
}

#share-menu a {
    text-decoration: none;
}

#share-menu i {
    font-size: 32px;
    color: #ddd; /* серо-гранитные оттенки */
    transition: transform 0.2s, color 0.2s;
    cursor: pointer;
}

#share-menu i:hover {
    transform: scale(1.2);
    color: #fff; /* подсветка белым */
}



/* Адаптивность */
@media (max-width: 600px) {
    #quote-box {
        padding: 20px;
    }

    #quote {
        font-size: 1.2rem;
    }

    h1 {
        font-size: 1.6rem;
    }

    button {
        font-size: 0.9rem;
        padding: 8px 14px;
    }

    #auth button {
        width: 200px;
    }
}

/* === Мобильная адаптация === */
@media (max-width: 768px) {
    h1 {
        font-size: 1.6rem;
    }

    #quote-box {
        padding: 15px;
    }

    #quote {
        font-size: 1.1rem;
    }

    #author {
        font-size: 0.9rem;
    }

    #refresh {
        width: 100%;
    }

    #actions {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }

    #actions button {
        width: 100%;
        font-size: 1.1rem;
    }

    #share-menu {
        gap: 15px;
    }

    #share-menu i {
        font-size: 28px;
    }

    #auth-buttons {
        gap: 10px;
    }

    .btn-auth {
        width: 100%;
        text-align: center;
    }
}

/* === Очень маленькие экраны (телефоны < 480px) === */
@media (max-width: 480px) {
    h1 {
        font-size: 1.3rem;
    }

    #quote {
        font-size: 1rem;
    }

    #author {
        font-size: 0.85rem;
    }

    #actions button {
        padding: 12px;
        font-size: 1rem;
        margin: 8px 0px;
    }

    #share-menu i {
        font-size: 30px;
        margin: 0px 10px;
    }
    
}
/* === Анимации === */

/* Цитата появляется плавно */
.fade-in {
    animation: fadeIn 0.8s ease-in-out;
}

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

/* Меню "Поделиться" появляется увеличением */
.scale-in {
    animation: scaleIn 0.3s ease-out;
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.8); }
    to   { opacity: 1; transform: scale(1); }
}

/* Эффект нажатия кнопки */
button:active,
.btn-auth:active {
    transform: scale(0.95);
    transition: transform 0.1s;
}