/*
Theme Name: Anna Portfolio
Description: Кастомная тема для сайта-портфолио модели Анны Меньшиковой с зеленой цветовой палитрой
Version: 1.1
Author: Custom Developer

ИНСТРУКЦИЯ ПО ИСПОЛЬЗОВАНИЮ:
1. Активируйте тему в Внешний вид > Темы
2. Установите плагин Advanced Custom Fields (ACF)
3. Создайте категории в разделе "Категории фото"
4. Добавьте изображения через ACF поля
5. Замените hero-bg.jpg в папке assets/images на фото модели
*/

/* Цветовая палитра - мягкие зеленые оттенки */
:root {
    --primary-green: #6b8e6b;
    /* Мягкий зеленый основной */
    --accent-green: #8db08d;
    /* Светло-зеленый акцент */
    --light-green: #a8c4a8;
    /* Очень светло-зеленый */
    --sage-green: #b8d4b8;
    /* Нежный шалфейный */
    --mint-green: #c8e6c8;
    /* Мятно-зеленый */
    --soft-green: #d8f0d8;
    /* Очень мягкий зеленый */
    --cream: #f8faf8;
    /* Зеленоватый кремовый фон */
    --white: #ffffff;
    /* Белый */
    --dark-text: #4a5a4a;
    /* Мягкий темный текст */
    --light-text: #7a8a7a;
    /* Мягкий светлый текст */
}

/* Reset и базовые стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', Arial, sans-serif !important;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--dark-text);
    background-color: var(--cream);
    font-weight: 400;
}

/* Принудительное применение Montserrat для всех элементов */
body,
p,
div,
span,
a,
li,
td,
th,
input,
textarea,
button {
    font-family: 'Montserrat', Arial, sans-serif !important;
    font-weight: 400;
}

/* Дополнительные селекторы для Montserrat */
.hero-contact,
.hero-contact p,
.hero-contact a,
.social-links,
.social-links a,
.category-overlay,
.category-title,
.breadcrumbs,
.back-button,
.gallery-overlay,
.no-photos {
    font-family: 'Montserrat', Arial, sans-serif !important;
}

/* Типографика - ВСЕ элементы используют Montserrat */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Montserrat', Arial, sans-serif !important;
    font-weight: 500;
    line-height: 1.4;
    margin-bottom: 1rem;
    color: var(--primary-green);
}

h1 {
    font-size: 2.5rem;
    font-weight: 500;
}

h2 {
    font-size: 1.8rem;
    font-weight: 500;
}

h3 {
    font-size: 1.2rem;
    font-weight: 500;
}

a {
    color: var(--accent-green);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--light-green);
    text-decoration: underline;
}

/* Контейнер */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Баннер-секция */
.hero-banner {
    height: 100vh;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.hero-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(107, 142, 107, 0.2);
    z-index: 1;
}

.hero-content {
    text-align: center;
    color: var(--white);
    z-index: 2;
    position: relative;
    max-width: 600px;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-content h1 {
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
    color: var(--white);
    font-weight: 500;
    letter-spacing: -0.02em;
}

.hero-contact {
    margin-top: 2.5rem;
}

/* Убираем отдельные стили для email - теперь все кнопки одинаковые */

/* Стили для социальных сетей - только иконки */
.social-links {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: nowrap;
}

.social-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: var(--sage-green);
    color: var(--white);
    border-radius: 50%;
    transition: all 0.3s ease;
    box-shadow: 0 3px 12px rgba(156, 175, 136, 0.25);
    text-decoration: none;
}

.social-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(156, 175, 136, 0.4);
    text-decoration: none;
    color: var(--white);
}

.social-link i {
    font-size: 1.2rem;
    opacity: 0.95;
}

/* Tooltip стили */
.social-link::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: -45px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: var(--white);
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 400;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 10;
    font-family: 'Montserrat', Arial, sans-serif !important;
}

.social-link::before {
    content: '';
    position: absolute;
    bottom: -35px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-bottom: 5px solid rgba(0, 0, 0, 0.8);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 10;
}

.social-link:hover::after,
.social-link:hover::before {
    opacity: 1;
    visibility: visible;
}

/* Анимированная иконка скролла */
.scroll-indicator {
    position: fixed;
    top: 250px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    z-index: 1000;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.scroll-mouse {
    width: 24px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 12px;
    position: relative;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.scroll-wheel {
    width: 4px;
    height: 8px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 2px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollAnimation 2s infinite;
}

.scroll-text {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.8rem;
    font-weight: 400;
    text-align: center;
    font-family: 'Montserrat', Arial, sans-serif !important;
    letter-spacing: 0.5px;
    animation: fadeInOut 2s infinite;
    margin-top: 5px;
    opacity: 1;
}

/* Анимации для скролла */
@keyframes scrollAnimation {
    0% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }

    50% {
        opacity: 0.5;
        transform: translateX(-50%) translateY(8px);
    }

    100% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

@keyframes fadeInOut {

    0%,
    100% {
        opacity: 0.6;
    }

    50% {
        opacity: 1;
    }
}

/* Единый светло-зеленый цвет для всех социальных сетей */
.social-link.instagram,
.social-link.telegram,
.social-link.email {
    background: var(--sage-green);
}

.social-link.instagram:hover,
.social-link.telegram:hover,
.social-link.email:hover {
    background: var(--light-green);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(156, 175, 136, 0.4);
    filter: brightness(1.1);
}

/* Сетка категорий */
.categories-section {
    padding: 100px 0;
    background: var(--white);
    position: relative;
}

.categories-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--mint-green), transparent);
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
    color: var(--primary-green);
    font-size: 2.5rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--accent-green);
    border-radius: 2px;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 3rem;
}

.category-item {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(107, 142, 107, 0.15);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    aspect-ratio: 1;
    background: var(--cream);
}

.category-item:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(107, 142, 107, 0.25);
}

.category-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    border-radius: 20px;
}

.category-item:hover img {
    transform: scale(1.08);
}

.category-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(107, 142, 107, 0.9));
    color: var(--white);
    padding: 30px 20px 20px;
    text-align: center;
    border-radius: 0 0 20px 20px;
}

.category-title {
    font-size: 1.1rem;
    font-weight: 500;
    margin: 0;
    font-family: 'Montserrat', Arial, sans-serif !important;
    letter-spacing: 0.3px;
    color: #fff;
}

/* Адаптивность */
@media (max-width: 1024px) {
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .hero-content {
        max-width: 500px;
        padding: 1.5rem;
    }

    .hero-content h1 {
        font-size: 3rem;
    }

    .section-title {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content {
        max-width: 90%;
        padding: 1.5rem;
    }

    .category-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .hero-banner {
        height: 80vh;
        background-attachment: scroll;
    }

    .social-links {
        flex-direction: row;
        gap: 0.8rem;
        justify-content: center;
    }

    .social-link {
        width: 45px;
        height: 45px;
    }

    .section-title {
        font-size: 2rem;
        margin-bottom: 3rem;
    }

    .categories-section {
        padding: 60px 0;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2rem;
    }

    .container {
        padding: 0 15px;
    }

    /* Убеждаемся, что иконки остаются горизонтально даже на очень маленьких экранах */
    .social-links {
        flex-direction: row !important;
        gap: 0.6rem;
        justify-content: center;
        flex-wrap: nowrap;
    }

    .social-link {
        width: 40px;
        height: 40px;
        flex-shrink: 0;
    }

    .social-link i {
        font-size: 1.1rem;
    }
}

/* Футер */
.site-footer {
    background: var(--primary-green);
    color: var(--white);
    padding: 60px 0 30px;
    margin-top: 100px;
    position: relative;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--mint-green), transparent);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-name h3 {
    font-size: 1.8rem;
    font-weight: 500;
    margin: 0;
    color: var(--white);
    font-family: 'Montserrat', Arial, sans-serif !important;
}

.footer-contact h4 {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 20px;
    color: var(--white);
    font-family: 'Montserrat', Arial, sans-serif !important;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 400;
    transition: all 0.3s ease;
    font-family: 'Montserrat', Arial, sans-serif !important;
}

.contact-item:hover {
    color: var(--white);
    text-decoration: none;
    transform: translateX(5px);
}

.contact-item i {
    font-size: 1rem;
    opacity: 0.8;
    width: 16px;
    text-align: center;
}

.footer-copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-copyright p {
    margin: 0;
    opacity: 0.8;
    font-size: 0.9rem;
    font-weight: 300;
    font-family: 'Montserrat', Arial, sans-serif !important;
}

/* Адаптивность футера */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .footer-name h3 {
        font-size: 1.5rem;
    }

    .contact-item:hover {
        transform: none;
    }
}

/* Дополнительные стили для улучшения UX */
.category-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--accent-green);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
    border-radius: 20px;
}

.category-item:hover::before {
    opacity: 0.1;
}

/* Анимации загрузки */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.category-item {
    animation: fadeInUp 0.6s ease forwards;
}

.category-item:nth-child(1) {
    animation-delay: 0.1s;
}

.category-item:nth-child(2) {
    animation-delay: 0.2s;
}

.category-item:nth-child(3) {
    animation-delay: 0.3s;
}

.category-item:nth-child(4) {
    animation-delay: 0.4s;
}

.category-item:nth-child(5) {
    animation-delay: 0.5s;
}

.category-item:nth-child(6) {
    animation-delay: 0.6s;
}