/* static/style.css */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    max-width: 700px;
    margin: 40px auto;
    padding: 20px;
    background: #f5f3ef;
    color: #2c2a28;
}

h1 {
    text-align: center;
    color: #8b5a2b;
    border-bottom: 2px solid #d4c5a9;
    padding-bottom: 10px;
}

.question-box {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

label {
    font-weight: bold;
    display: block;
    margin-bottom: 8px;
}

textarea {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 8px;
    resize: vertical;
    font-family: inherit;
}

.button-group {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

button {
    background: #8b5a2b;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    border-radius: 8px;
    cursor: pointer;
}

button:hover {
    background: #6b421e;
}

.clear-btn {
    background: #9e7e5e;
}

.clear-btn:hover {
    background: #7a6044;
}

.result {
    background: #fff8f0;
    padding: 20px;
    border-radius: 12px;
    border-left: 6px solid #8b5a2b;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    white-space: pre-wrap;
    font-family: inherit;
}

.compass-good {
    color: #2d6a4f;
    font-weight: bold;
    font-size: 1.1em;
}

.compass-bad {
    color: #9d0208;
    font-weight: bold;
    font-size: 1.1em;
}

.compass-neutral {
    color: #6c757d;
    font-weight: bold;
    font-size: 1.1em;
}

.footer {
    text-align: center;
    margin-top: 30px;
    font-size: 12px;
    color: #aaa;
}

.line-symbol {
    font-family: 'Courier New', 'Consolas', monospace;
    font-size: 1.1em;
    letter-spacing: 0;
    white-space: pre;
    font-weight: bold;
}
/* ==========================================================================
   Стили для Личного Кабинета (Адаптивная одноколоночная верстка)
   ========================================================================== */

/* Адаптивный контейнер-оболочка */
.container {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    padding: 15px; 
    box-sizing: border-box;
}

/* Шапка с логотипом и названием */
.header-block {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}
.header-block h1 {
    margin: 0;
    font-size: 1.5rem;
}
.header-block img {
    height: 45px;
    width: auto;
}

/* Ссылки навигации (Выйти / Назад) */
.nav-links a {
    display: inline-block;
    margin-bottom: 10px;
    margin-right: 15px;
}

/* Форма смены пароля */
.form-group {
    margin-bottom: 15px;
}
.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}
.question-box input[type="password"] {
    width: 100%;
    padding: 10px;
    font-size: 16px; /* Защита от авто-зума на iOS */
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}
.question-box button[type="submit"] {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    background-color: #a0522d; /* Коричневый цвет кнопки */
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
}
.question-box button[type="submit"]:hover {
    background-color: #8b4513; /* Эффект при наведении */
}

/* Список истории гаданий */
.history-list {
    padding-left: 20px;
}
.history-list li {
    margin-bottom: 15px;
}

/* Медиа-запросы для мобильных телефонов (ширина экрана менее 480px) */
@media (max-width: 480px) {
    .header-block {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    .header-block h1 {
        font-size: 1.3rem;
    }
    .nav-links a {
        display: block;
        margin-bottom: 8px;
        margin-right: 0;
    }
}
/* ============================================ */
/* АВТОРСКИЕ КОММЕНТАРИИ                        */
/* ============================================ */

.author-comments {
    background: #f8f3e9;
    border-left: 4px solid #b8860b;
    border-radius: 8px;
    padding: 20px 24px;
    margin: 24px 0;
}

.author-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.author-header .author-icon {
    font-size: 28px;
}

.author-header h3 {
    margin: 0;
    color: #4a3520;
    font-size: 20px;
}

.comment-block {
    margin: 16px 0;
    padding: 12px 16px;
    background: #fffcf5;
    border-radius: 6px;
}

.comment-block h4 {
    color: #6b4c2a;
    font-size: 15px;
    margin: 0 0 8px 0;
    font-weight: 600;
}

.comment-block p {
    margin: 0;
    line-height: 1.7;
    color: #2c1810;
    font-size: 15px;
}

.static-block {
    border-left: 3px solid #8b7a6b;
}

.young-block {
    border-left: 3px solid #6b8b6b;
}

.lines-block {
    border-left: 3px solid #b8860b;
}

.line-comment {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin: 10px 0;
    padding: 10px 14px;
    background: #f5f0e8;
    border-radius: 6px;
}

.line-badge {
    background: #b8860b;
    color: white;
    font-weight: 700;
    font-size: 13px;
    padding: 2px 12px;
    border-radius: 20px;
    white-space: nowrap;
    min-width: 80px;
    text-align: center;
}

.line-comment p {
    margin: 0;
    flex: 1;
}

/* ============================================ */
/* TEASER (соблазнительный намёк)              */
/* ============================================ */

.teaser-block {
    background: linear-gradient(135deg, #faf3e8, #f0e6d8);
    border: 2px dashed #b8860b;
    border-radius: 12px;
    padding: 24px 28px;
    margin: 24px 0;
    text-align: center;
}

.teaser-icon {
    font-size: 48px;
    margin-bottom: 12px;
}

.teaser-content h4 {
    color: #4a3520;
    font-size: 20px;
    margin: 0 0 8px 0;
}

.teaser-content p {
    color: #5a4530;
    font-size: 15px;
    line-height: 1.6;
    max-width: 500px;
    margin: 0 auto;
}

.teaser-small {
    font-size: 14px;
    color: #8a7a6a;
    margin-top: 8px;
}

.teaser-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 16px;
    flex-wrap: wrap;
}

.teaser-buttons .btn {
    padding: 10px 28px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s;
}

.btn-primary {
    background: #b8860b;
    color: white;
}

.btn-primary:hover {
    background: #9a7209;
    transform: translateY(-2px);
    color: white;
}

.btn-secondary {
    background: #e8ddd0;
    color: #4a3520;
}

.btn-secondary:hover {
    background: #d5c8b8;
    transform: translateY(-2px);
}