@import url('../fonts/cormorant-garamond/cormorant-garamond.css');

/* horo-actions — круглые кнопки действий на странице гороскопа */

.horo-actions {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 16px;
    margin: 10px 0;
}

/* Mobile: card container, evenly distributed */
@media (max-width: 767px) {
    .horo-actions {
        padding: 12px 8px 0;
        margin: 6px 0 16px;
        justify-content: space-evenly;
        gap: 0;
    }
}

.horo-actions__btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    color: #2c7a5c;
    font-size: 12px;
    line-height: 1.2;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
}

.horo-actions__btn:hover,
.horo-actions__btn:focus {
    color: #1f5a43;
    outline: none;
}

.horo-actions__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: #e8f5ee;
    font-size: 18px;
    transition: background-color 0.15s ease;
}

.horo-actions__btn:hover .horo-actions__icon {
    background-color: #d0ebdb;
}

.horo-actions__label {
    font-size: 11px;
    text-align: center;
    max-width: 80px;
}

/* Mobile: larger icons + uppercase labels */
@media (max-width: 767px) {
    .horo-actions__btn {
        flex: 1;
    }

    .horo-actions__icon {
        width: 56px;
        height: 56px;
        font-size: 22px;
    }

    .horo-actions__label {
        font-size: 11px;
        text-transform: uppercase;
        font-weight: 600;
        letter-spacing: 0.02em;
        max-width: 100px;
        text-align: center;
    }
}

/* --- Кнопка «Поделиться» — приглушённо-синий --- */
.horo-actions__btn.js-horo-share {
    color: #4f6fa3;
}

.horo-actions__btn.js-horo-share .horo-actions__icon {
    color: #4f6fa3;
}

.horo-actions__btn.js-horo-share:hover,
.horo-actions__btn.js-horo-share:focus {
    color: #3d5a87;
}

.horo-actions__btn.js-horo-share:hover .horo-actions__icon,
.horo-actions__btn.js-horo-share:focus .horo-actions__icon {
    color: #3d5a87;
}

/* --- Кнопка «В избранное» — тёплый оливковый --- */
.horo-actions__btn.js-horo-favorite {
    color: #6b7a45;
}

.horo-actions__btn.js-horo-favorite .horo-actions__icon {
    color: #6b7a45;
}

.horo-actions__btn.js-horo-favorite:hover,
.horo-actions__btn.js-horo-favorite:focus {
    color: #566338;
}

.horo-actions__btn.js-horo-favorite:hover .horo-actions__icon,
.horo-actions__btn.js-horo-favorite:focus .horo-actions__icon {
    color: #566338;
}

/* Анимация копирования ссылки */
.horo-actions__btn--copied .horo-actions__icon {
    background-color: #2c7a5c;
    color: #fff;
}

/* ==========================================================================
   horo-user-info — блок «аватар + дата + город» на странице гороскопа
   ========================================================================== */

/* Карточка: аватар слева, данные справа */
.horo-user-info__card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: #f5f7f6;
    border-radius: 16px;
    padding: 20px;
}

/* Аватар */
.horo-user-info__avatar {
    flex-shrink: 0;
}

.horo-user-info__avatar .img-circle {
    width: 80px;
    height: 80px;
    border: none;
}

.horo-user-info__avatar-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    color: #2c7a5c;
    font-size: 32px;
}

.horo-user-info__avatar-icon--male {
    color: #3b6cb5;
}

.horo-user-info__avatar-icon--female {
    color: #d4467a;
}

.horo-user-info__avatar-icon--custom {
    font-size: 36px;
}

/* Детали: дата, место рождения, место проживания */
.horo-user-info__details {
    text-align: left;
}

.horo-user-info__datetime {
    font-size: 15px;
    font-weight: 700;
    color: #333;
    margin-bottom: 4px;
}

.horo-user-info__place {
    font-size: 15px;
    color: #2c7a5c;
    margin-top: 2px;
}

.horo-user-info__place i {
    width: 18px;
    text-align: center;
    margin-right: 4px;
}

/* Табличный layout: лейблы слева, значения справа */
.horo-user-info__table {
    border-collapse: collapse;
    border: 0;
}

.horo-user-info__table td {
    border: 0;
    padding: 1px 4px 1px 0;
    vertical-align: top;
}

/* Лейблы полей (Дата рождения, Место рождения и т.д.) — Cormorant Garamond */
.horo-user-info__label {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 15px;
    font-style: italic;
    font-weight: 600;
    color: #999;
    white-space: nowrap;
}

.horo-user-info__value {
    font-size: 15px;
    color: #333;
}

/* ==========================================================================
   horo-user-info-detailed — layout с лейблами (solar, lunar)
   ========================================================================== */

.horo-user-info-detailed__section {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 0;
}

.horo-user-info-detailed__section + .horo-user-info-detailed__section {
    border-top: 1px solid #e8e8e8;
}

.horo-user-info-detailed__icon {
    flex-shrink: 0;
    width: 24px;
    text-align: center;
    font-size: 22px;
    color: #aaa;
    padding-top: 6px;
}

/* Тёплые цвета иконок (палитра планет) */
.horo-user-info-detailed__icon--calendar {
    color: #d4941a; /* золотисто-янтарный — как Солнце */
}

.horo-user-info-detailed__icon--birthplace {
    color: #c75b39; /* тёплый терракотовый — как Марс */
}

.horo-user-info-detailed__icon--living {
    color: #8b7434; /* тёплый оливково-бронзовый — как Сатурн */
}

.horo-user-info-detailed__body {
    min-width: 0;
}

.horo-user-info-detailed__label {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 15px;
    font-style: italic;
    font-weight: 600;
    color: #999;
    margin-bottom: 2px;
}

.horo-user-info-detailed__value {
    font-size: 15px;
    font-weight: 700;
    color: #333;
}

/* Gender badge — общий компонент (используется в detailed и pull-left) */
.horo-gender-badge {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 12px;
    margin-left: 8px;
    vertical-align: middle;
}

.horo-gender-badge--male {
    background-color: #e8f0fa;
    color: #3b6cb5;
}

.horo-gender-badge--female {
    background-color: #fce8ef;
    color: #d4467a;
}

/* Mobile: адаптация для старых вьюшек (personal, etc.) */
@media (max-width: 767px) {
    .horo-user-info {
        text-align: center;
    }

    .horo-user-info--no-avatar {
        text-align: left;
    }

    .horo-user-info .pull-left {
        float: none !important;
    }

    .horo-user-info .mr_10 {
        margin-right: 0 !important;
    }

    /* Центрируем иконку-аватар на мобилке */
    .horo-user-info .horo-user-info__avatar-icon {
        width: 48px;
        height: 48px;
        font-size: 32px;
        margin-left: auto;
        margin-right: auto;
    }

    .horo-user-info .horo-user-info__avatar-icon--custom {
        font-size: 36px;
    }

    .horo-user-info > .clearfix {
        display: none;
    }

    /* Скрываем текстовые метки («Дата рождения», «место рождения» и т.д.) */
    .horo-user-info__label {
        display: none;
    }

    /* <br/> не нужен в pull-left layout — .f__thin уже display:block */
    .horo-user-info > .pull-left p br {
        display: none;
    }

    /* Увеличенный аватар (старые вьюшки) */
    .horo-user-info > .pull-left .img-circle {
        width: 80px;
        height: 80px;
    }

    /* Значения — каждое с новой строки, размер как у контента */
    .horo-user-info .f__thin,
    .horo-user-info .horo-user-info__value {
        display: block;
        font-size: 15px;
        font-weight: 400;
        color: #333;
        margin-top: 0;
    }

    /* Карточка на мобильном — всегда left-aligned */
    .horo-user-info__card {
        text-align: left;
    }

}

/* Лейблы в alert-блоках (Дата Соляра, место Соляра и т.д.) */
.horo-alert-label {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-style: italic;
    font-weight: 600;
    color: #999;
}

/* horo-footer — блок "Это было полезно?" внизу страницы */

.horo-footer {
    padding: 24px 16px;
    text-align: center;
    margin: 30px 0 20px;
}

.horo-footer__title {
    color: #2c7a5c;
    font-size: 16px;
    font-style: italic;
    margin: 0 0 16px;
}

.horo-footer__cards {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.horo-footer__card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    flex: 1;
    max-width: 160px;
    background: #fff;
    border: 1px solid #d6e8dd;
    border-radius: 12px;
    padding: 10px 10px;
    cursor: pointer;
    color: #2c7a5c;
    transition: box-shadow 0.15s ease, border-color 0.15s ease;
    -webkit-tap-highlight-color: transparent;
}

.horo-footer__card:hover,
.horo-footer__card:focus {
    border-color: #2c7a5c;
    box-shadow: 0 2px 8px rgba(44, 122, 92, 0.15);
    outline: none;
}

.horo-footer__card-icon {
    font-size: 17px;
    line-height: 1;
}

.horo-footer__card-label {
    font-size: 12px;
    text-align: center;
}

@media (max-width: 767px) {
    .horo-footer__cards {
        gap: 8px;
    }

    .horo-footer__card {
        max-width: none;
        padding: 8px 6px;
    }
}

/* ==========================================================================
   PDF CTA — оранжевый акцент для кнопки PDF (верхняя и нижняя)
   ========================================================================== */

/* --- Верхняя круглая кнопка (.horo-actions) --- */
.horo-actions__btn.js-pdf-save .horo-actions__icon {
    background-color: #e67e22;
    color: #fff;
    animation: pdf-pulse 2.5s ease-in-out infinite;
}

.horo-actions__btn.js-pdf-save:hover .horo-actions__icon,
.horo-actions__btn.js-pdf-save:focus .horo-actions__icon {
    background-color: #cf6d17;
}

.horo-actions__btn.js-pdf-save {
    color: #e67e22;
}

.horo-actions__btn.js-pdf-save:hover,
.horo-actions__btn.js-pdf-save:focus {
    color: #cf6d17;
}

/* --- Нижняя карточка (.horo-footer) --- */
.horo-footer__card.js-pdf-save {
    background: #e67e22;
    border-color: #e67e22;
    color: #fff;
    animation: pdf-pulse-card 2.5s ease-in-out infinite;
}

.horo-footer__card.js-pdf-save:hover,
.horo-footer__card.js-pdf-save:focus {
    background: #cf6d17;
    border-color: #cf6d17;
    color: #fff;
    box-shadow: 0 4px 12px rgba(230, 126, 34, 0.35);
}

/* --- Pulse-анимации --- */
@keyframes pdf-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(230, 126, 34, 0.45); }
    50% { box-shadow: 0 0 0 8px rgba(230, 126, 34, 0); }
}

@keyframes pdf-pulse-card {
    0%, 100% { box-shadow: 0 0 0 0 rgba(230, 126, 34, 0.35); }
    50% { box-shadow: 0 0 0 6px rgba(230, 126, 34, 0); }
}
