/**
 * @file: home-page.css
 * @description: Стилі для головної сторінки GOTUIMO
 * @created: 2025-11-05
 */

/* ============================================
   1. HERO BLOCK (Герой-секція)
   ============================================ */

.gotuimo-hero {
    position: relative;
    min-height: 500px; /* ✅ Нормальна висота (була 600px) */
    display: flex;
    align-items: center;
    justify-content: center;
    background: url('/wp-content/uploads/2025/11/hero-bg.png') center center / cover no-repeat;
    overflow: hidden;
    padding: 60px 20px; /* ✅ Нормальний padding */
    /* ✅ Видалено border-radius та margin для full-width */
}

/* Overlay для читабельності тексту (темний градієнт) */
.gotuimo-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(0, 0, 0, 0.4) 0%,
        rgba(0, 0, 0, 0.6) 100%
    );
    z-index: 1;
    /* ✅ Видалено border-radius для full-width */
}

.gotuimo-hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    color: #ffffff;
}

/* Заголовки - білий текст з тінню та контуром */
.gotuimo-hero h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
    color: #ffffff;
    /* Чорний контур (множинні тіні) */
    text-shadow: 
        -2px -2px 0 #000,
        2px -2px 0 #000,
        -2px 2px 0 #000,
        2px 2px 0 #000,
        -1px -1px 0 #000,
        1px -1px 0 #000,
        -1px 1px 0 #000,
        1px 1px 0 #000,
        /* Додаткова тінь для глибини */
        0 4px 12px rgba(0, 0, 0, 0.8),
        0 8px 20px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 0.8s ease-out;
}

.gotuimo-hero h2 {
    font-size: clamp(1rem, 3vw, 1.5rem);
    font-weight: 500;
    margin-bottom: 2rem;
    color: #ffffff;
    /* Чорний контур (тонший для підзаголовка) */
    text-shadow: 
        -1px -1px 0 #000,
        1px -1px 0 #000,
        -1px 1px 0 #000,
        1px 1px 0 #000,
        /* Додаткова тінь */
        0 3px 10px rgba(0, 0, 0, 0.7),
        0 6px 15px rgba(0, 0, 0, 0.4);
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

/* ============================================
   2. SEARCH WRAPPER (Пошук з Autocomplete)
   ============================================ */

.gotuimo-search-wrapper {
    position: relative;
    max-width: 600px;
    margin: 0 auto 2rem;
    animation: fadeInUp 0.8s ease-out 0.4s backwards;
}

.gotuimo-search-form {
    position: relative;
    display: flex;
    align-items: stretch;
    background: #ffffff;
    border-radius: 50px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    overflow: visible;
    transition: box-shadow 0.3s ease;
}

.gotuimo-search-form:focus-within {
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3);
}

/* Input поле */
#gotuimo-hero-search {
    flex: 1;
    padding: 0 24px;
    height: 54px;
    font-size: 1rem;
    border: none;
    outline: none;
    background: transparent;
    color: #333;
    border-radius: 50px 0 0 50px;
    line-height: 54px;
}

#gotuimo-hero-search:focus {
    outline: 2px solid rgba(52, 152, 219, 0.3);
    outline-offset: -2px;
}

#gotuimo-hero-search::placeholder {
    color: #999;
}

/* Кнопка очищення */
#gotuimo-search-clear {
    display: none;
    padding: 10px;
    background: transparent;
    border: none;
    cursor: pointer;
    color: #999;
    font-size: 1.2rem;
    transition: color 0.2s ease;
}

#gotuimo-search-clear:hover {
    color: #333;
}

/* Loader - синій акцент */
#gotuimo-search-loader {
    display: none;
    padding: 10px;
    color: #3498db;
}

.gotuimo-search-loader-spinner {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(52, 152, 219, 0.3);
    border-top-color: #3498db;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Кнопка пошуку - єдиний червоний стиль */
.gotuimo-search-submit {
    padding: 0 32px;
    height: 54px;
    /* ✅ Єдиний стиль: червона кнопка */
    background: #ef4444;
    color: #ffffff;
    border: 2px solid #ef4444;
    border-radius: 0 50px 50px 0;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.2);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.gotuimo-search-submit:hover {
    background: #dc2626;
    border-color: #dc2626;
    box-shadow: 0 6px 25px rgba(239, 68, 68, 0.4);
    transform: translateX(2px);
}

/* ============================================
   HERO RESPONSIVE (Mobile)
   ============================================ */

@media (max-width: 768px) {
    .gotuimo-hero {
        min-height: 450px; /* ✅ Нормальна висота на mobile */
        padding: 50px 15px; /* ✅ Менший padding на mobile */
    }
    
    .gotuimo-hero h1 {
        font-size: clamp(1.75rem, 6vw, 2.5rem); /* ✅ Менший на mobile */
    }
    
    .gotuimo-hero h2 {
        font-size: clamp(0.875rem, 4vw, 1.25rem); /* ✅ Менший на mobile */
        margin-bottom: 1.5rem;
    }
    
    .gotuimo-search-wrapper {
        max-width: 100%; /* ✅ На всю ширину на mobile */
        margin: 0 auto 1.5rem;
    }
    
    #gotuimo-hero-search {
        padding: 0 16px;
        height: 48px;
        font-size: 0.9375rem;
    }
    
    .gotuimo-search-submit {
        padding: 0 20px;
        height: 48px;
        font-size: 0.9375rem;
    }
}

/* ============================================
   3. SEARCH RESULTS (Результати пошуку)
   ============================================ */

#gotuimo-search-results {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    max-height: 500px;
    overflow-y: auto;
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}

.gotuimo-search-results-inner {
    padding: 1rem;
}

/* Секції результатів */
.search-section {
    margin-bottom: 1.5rem;
}

.search-section:last-child {
    margin-bottom: 0;
}

.search-section-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: #3498db;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
    padding: 0 0.5rem;
}

.search-section-items {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Окремі елементи */
.search-item {
    margin: 0;
    padding: 0;
    transition: background-color 0.2s ease;
}

.search-item:hover,
.search-item-selected {
    background-color: rgba(52, 152, 219, 0.08);
}

.search-item-link {
    display: flex;
    align-items: center;
    padding: 0.75rem;
    text-decoration: none;
    color: #333;
    gap: 1rem;
    border-radius: 8px;
}

/* Зображення елементів */
.search-item-image,
.search-item-avatar {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}

.search-item-avatar {
    border-radius: 50%;
}

.search-item-content {
    flex: 1;
    min-width: 0;
}

.search-item-title {
    display: block;
    font-weight: 600;
    font-size: 0.9375rem;
    color: #333;
    margin-bottom: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-item-meta {
    display: block;
    font-size: 0.8125rem;
    color: #666;
}

.search-item-rating {
    display: inline-block;
    margin-left: 0.5rem;
    font-size: 0.75rem;
    color: #f59e0b;
}

/* Повідомлення */
.gotuimo-search-no-results,
.gotuimo-search-error {
    padding: 2rem;
    text-align: center;
    color: #666;
}

.gotuimo-search-no-results p:first-child,
.gotuimo-search-error p:first-child {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

/* ============================================
   4. QUICK FILTERS (Швидкі фільтри)
   ============================================ */

.gotuimo-quick-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 2rem;
    animation: fadeInUp 0.8s ease-out 0.6s backwards;
}

.gotuimo-filter-btn {
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    border: 2px solid rgba(255, 255, 255, 0.9);
    border-radius: 50px;
    font-size: 0.9375rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.gotuimo-filter-btn:hover {
    background: #ac0707;
    color: #ffffff;
    border-color: #ac0707;
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(172, 7, 7, 0.4);
}

/* ============================================
   5. CTA SECTION (Call To Action)
   ============================================ */

.gotuimo-hero-cta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    animation: fadeInUp 0.8s ease-out 0.8s backwards;
}

/* ✅ ЄДИНИЙ СТИЛЬ КНОПОК ДЛЯ ГОЛОВНОЇ СТОРІНКИ */
.gotuimo-cta-primary,
.gotuimo-cta-secondary {
    padding: 1rem 2.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    /* ✅ Звичайний стан: біла кнопка з червоним текстом */
    background: #ffffff;
    color: #ef4444; /* Червоний колір логотипу */
    border: 2px solid #ef4444;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.2);
}

.gotuimo-cta-primary:hover,
.gotuimo-cta-secondary:hover {
    /* ✅ При наведенні: червона заливка з білим текстом */
    background: #ef4444;
    color: #ffffff;
    border-color: #ef4444;
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(239, 68, 68, 0.4);
}

/* ============================================
   6. ANIMATIONS (Анімації)
   ============================================ */

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

/* ============================================
   7. RESPONSIVE (Адаптивність)
   ============================================ */

/* Tablet */
@media (max-width: 1024px) {
    .gotuimo-hero {
        min-height: 500px;
        padding: 50px 20px;
    }

    .gotuimo-hero h1 {
        font-size: 2.5rem;
    }

    .gotuimo-search-wrapper {
        max-width: 500px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .gotuimo-hero {
        min-height: 400px;
        padding: 40px 15px;
        margin: 10px;
        border-radius: 16px;
    }

    .gotuimo-hero h1 {
        font-size: 2rem;
        margin-bottom: 0.75rem;
    }

    .gotuimo-hero h2 {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .gotuimo-search-wrapper {
        max-width: 100%;
    }

    #gotuimo-hero-search {
        padding: 0 20px;
        height: 48px;
        line-height: 48px;
        font-size: 0.9375rem;
    }

    .gotuimo-search-submit {
        padding: 0 24px;
        height: 48px;
        font-size: 0.9375rem;
    }

    .gotuimo-quick-filters {
        gap: 0.5rem;
    }

    .gotuimo-filter-btn {
        padding: 0.625rem 1.25rem;
        font-size: 0.875rem;
    }

    .gotuimo-cta-primary,
    .gotuimo-cta-secondary {
        padding: 0.875rem 2rem;
        font-size: 0.9375rem;
    }

    .gotuimo-hero-cta {
        flex-direction: column;
        align-items: stretch;
    }

    .gotuimo-cta-primary,
    .gotuimo-cta-secondary {
        width: 100%;
        text-align: center;
    }

    /* Autocomplete на mobile */
    #gotuimo-search-results {
        max-height: 400px;
    }

    .search-item-image,
    .search-item-avatar {
        width: 40px;
        height: 40px;
    }

    .search-item-title {
        font-size: 0.875rem;
    }

    .search-item-meta {
        font-size: 0.75rem;
    }
}

/* Small mobile */
@media (max-width: 480px) {
    .gotuimo-hero {
        min-height: 350px;
        padding: 30px 15px;
        margin: 5px;
        border-radius: 12px;
    }

    .gotuimo-hero h1 {
        font-size: 1.75rem;
    }

    .gotuimo-search-form {
        flex-direction: column;
        border-radius: 20px;
    }

    #gotuimo-hero-search {
        width: 100%;
        height: 44px;
        line-height: 44px;
        padding: 0 16px;
        border-radius: 20px 20px 0 0;
    }

    .gotuimo-search-submit {
        width: 100%;
        height: 44px;
        padding: 0 16px;
        border-radius: 0 0 20px 20px;
    }
}

/* ============================================
   8. ACCESSIBILITY (Доступність)
   ============================================ */

/* Focus states */
.gotuimo-filter-btn:focus,
.gotuimo-cta-primary:focus,
.gotuimo-cta-secondary:focus {
    outline: 3px solid rgba(255, 255, 255, 0.5);
    outline-offset: 2px;
}

.search-item-link:focus {
    outline: 2px solid #3498db;
    outline-offset: -2px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .gotuimo-hero {
        background: #000;
    }

    .gotuimo-hero h1,
    .gotuimo-hero h2 {
        color: #fff;
    }

    .search-item-link:hover,
    .search-item-selected {
        background-color: #000;
        color: #fff;
    }
}

/* ============================================
   2. PROMO BLOCK (Промо-блок)
   ============================================ */
/* ✅ ВИДАЛЕНО: Всі стилі promo блоку перенесені в promo-block.css */
/* Щоб уникнути конфліктів CSS, використовуємо окремий файл */

/* ============================================
   3. TOP RECIPES SLIDER (Слайдер топових рецептів)
   ============================================ */

.gotuimo-top-recipes-slider {
    position: relative;
    padding: 60px 20px;
    margin: 40px 0;
    background: #fff;
    overflow: hidden;
}

/* Header слайдера */
.gotuimo-slider-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
}

.gotuimo-slider-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: #333;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.gotuimo-slider-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: #666;
    line-height: 1.5;
}

/* ⚠️ ВИДАЛЕНО: Slider styles moved to recipe-slider.css */

/* Картка рецепта */
.gotuimo-recipe-card {
    position: relative;
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.gotuimo-recipe-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

/* Зображення рецепта */
.gotuimo-recipe-image {
    position: relative;
    width: 100%;
    height: 240px;
    overflow: hidden;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.gotuimo-recipe-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gotuimo-recipe-card:hover .gotuimo-recipe-image img {
    transform: scale(1.1);
}

/* Бейдж рейтингу */
.gotuimo-recipe-rating-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    display: inline-flex !important;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    color: #333;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 20; /* Поверх tooltip */
    visibility: visible !important;
    opacity: 1 !important;
}

.gotuimo-recipe-rating-badge svg {
    color: #FFC107;
    flex-shrink: 0; /* Не стискати SVG */
}

.gotuimo-recipe-rating-badge span {
    display: inline-block !important;
    color: #333 !important;
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    line-height: 1 !important;
    white-space: nowrap !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Контент картки */
.gotuimo-recipe-content {
    padding: 24px 20px 20px; /* Збільшено відступ зверху */
    flex: 1;
    display: flex;
    flex-direction: column;
}

.gotuimo-recipe-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 12px;
    line-height: 1.4;
    margin-top: 0; /* Прибираємо зайвий margin */
}

.gotuimo-recipe-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.2s ease;
}

.gotuimo-recipe-title a:hover {
    color: #5A822B;
}

/* ⚠️ ВИДАЛЕНО: Author & Stats styles moved to recipe-slider.css */

/* Hover tooltip */
.gotuimo-recipe-tooltip {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    min-height: 120px; /* Зменшено висоту */
    padding: 24px 20px 20px; /* Зменшено padding */
    background: linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.95) 0%,
        rgba(0, 0, 0, 0.85) 50%,
        rgba(0, 0, 0, 0.5) 100%
    );
    color: #ffffff;
    opacity: 0;
    visibility: hidden;
    z-index: 10; /* Під rating badge */
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    box-sizing: border-box; /* Padding в межах ширини */
    overflow: hidden; /* Не виходити за межі */
}

.gotuimo-recipe-image:hover .gotuimo-recipe-tooltip {
    opacity: 1;
    visibility: visible;
}

.gotuimo-recipe-tooltip p {
    margin: 0 0 12px;
    font-size: 0.875rem;
    line-height: 1.5;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3; /* Максимум 3 рядки */
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
    word-wrap: break-word; /* Перенос довгих слів */
    word-break: break-word; /* Додатковий перенос */
    max-width: 100%; /* Не виходити за межі */
}

.gotuimo-tooltip-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.875rem;
    transition: gap 0.2s ease;
}

.gotuimo-tooltip-link:hover {
    gap: 8px;
}

/* Стрілки навігації */
.gotuimo-slider-prev,
.gotuimo-slider-next {
    position: absolute;
    top: 120px; /* Центр зображення (240px / 2) */
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    background: #ffffff;
    border: 2px solid #e0e0e0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    padding: 0;
    margin: 0;
}

.gotuimo-slider-prev svg,
.gotuimo-slider-next svg {
    width: 24px;
    height: 24px;
    stroke: #333;
    stroke-width: 2;
    fill: none;
    display: block;
}

.gotuimo-slider-prev {
    left: 0;
}

.gotuimo-slider-next {
    right: 0;
}

.gotuimo-slider-prev:hover,
.gotuimo-slider-next:hover {
    background: #5A822B;
    border-color: #5A822B;
    transform: translateY(-50%) scale(1.05);
}

.gotuimo-slider-prev:hover svg,
.gotuimo-slider-next:hover svg {
    stroke: #ffffff;
}

.gotuimo-slider-prev:disabled,
.gotuimo-slider-next:disabled,
.gotuimo-slider-prev.disabled,
.gotuimo-slider-next.disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}

/* Pagination dots */
.gotuimo-slider-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 32px;
}

.gotuimo-slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #d0d0d0;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.gotuimo-slider-dot:hover {
    background: #5A822B;
    transform: scale(1.2);
}

.gotuimo-slider-dot.active {
    background: #5A822B;
    width: 32px;
    border-radius: 6px;
}

/* Адаптивність */
@media (max-width: 1024px) {
    .gotuimo-top-recipes-slider {
        padding: 50px 16px;
    }
    
    /* ⚠️ ВИДАЛЕНО: Slider tablet styles moved to recipe-slider.css */
    
    .gotuimo-recipe-image {
        height: 200px;
    }
    
    .gotuimo-slider-prev,
    .gotuimo-slider-next {
        top: 100px; /* Центр зображення на планшеті (200px / 2) */
    }
    
    .gotuimo-recipe-tooltip {
        min-height: 120px; /* Менша висота для планшетів */
        padding: 32px 20px 20px;
    }
}

@media (max-width: 768px) {
    .gotuimo-top-recipes-slider {
        padding: 40px 12px;
        margin: 20px 0;
    }
    
    /* ⚠️ ВИДАЛЕНО: Slider responsive styles moved to recipe-slider.css */
    
    .gotuimo-slider-prev,
    .gotuimo-slider-next {
        width: 40px;
        height: 40px;
    }
    
    .gotuimo-slider-prev svg,
    .gotuimo-slider-next svg {
        width: 18px;
        height: 18px;
    }
    
    .gotuimo-recipe-content {
        padding: 20px 16px 16px;
    }
    
    .gotuimo-recipe-image {
        height: 220px;
    }
    
    .gotuimo-slider-prev,
    .gotuimo-slider-next {
        top: 110px; /* Центр зображення на мобільному (220px / 2) */
    }
    
    /* На мобільних tooltip завжди видимий */
    .gotuimo-recipe-tooltip {
        position: relative;
        opacity: 1;
        visibility: visible;
        background: #f8f9fa;
        color: #333;
        padding: 20px 20px 16px;
        min-height: auto; /* Скидаємо min-height для мобільних */
        display: block; /* Скидаємо flexbox для мобільних */
    }
    
    .gotuimo-tooltip-link {
        color: #5A822B;
    }
}

@media (max-width: 480px) {
    /* ⚠️ ВИДАЛЕНО: Slider mobile styles moved to recipe-slider.css */
    
    .gotuimo-slider-prev,
    .gotuimo-slider-next {
        width: 32px;
        height: 32px;
        background: rgba(255, 255, 255, 0.9);
    }
    
    .gotuimo-slider-prev {
        left: 8px;
    }
    
    .gotuimo-slider-next {
        right: 8px;
    }
    
    .gotuimo-slider-prev svg,
    .gotuimo-slider-next svg {
        width: 14px;
        height: 14px;
    }
    
    .gotuimo-recipe-content {
        padding: 18px 14px 14px;
    }
}

/* Анімації появи */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.gotuimo-recipe-slide {
    animation: slideUp 0.5s ease-out;
    animation-fill-mode: backwards;
}

.gotuimo-recipe-slide:nth-child(1) { animation-delay: 0.1s; }
.gotuimo-recipe-slide:nth-child(2) { animation-delay: 0.2s; }
.gotuimo-recipe-slide:nth-child(3) { animation-delay: 0.3s; }
.gotuimo-recipe-slide:nth-child(4) { animation-delay: 0.4s; }
.gotuimo-recipe-slide:nth-child(5) { animation-delay: 0.5s; }

/* Accessibility */
.gotuimo-recipe-card:focus-within {
    outline: 3px solid #3498db;
    outline-offset: 4px;
}

.gotuimo-slider-prev:focus,
.gotuimo-slider-next:focus,
.gotuimo-slider-dot:focus {
    outline: 3px solid #3498db;
    outline-offset: 4px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .gotuimo-recipe-slide {
        animation: none;
    }
    
    .gotuimo-recipe-card:hover {
        transform: none;
    }
    
    .gotuimo-recipe-card:hover .gotuimo-recipe-image img {
        transform: none;
    }
    
    .gotuimo-recipes-slider {
        transition: none;
    }
    
    .gotuimo-slider-prev:hover,
    .gotuimo-slider-next:hover {
        transform: translateY(-50%);
    }
}

/* Loading state */
.gotuimo-recipes-slider.loading {
    opacity: 0.5;
    pointer-events: none;
}

/* Empty state */
.gotuimo-recipes-slider:empty::after {
    content: 'Рецепти не знайдені';
    display: block;
    text-align: center;
    padding: 60px 20px;
    color: #999;
    font-size: 1.125rem;
}

/* ============================================
   4. ПОПУЛЯРНІ РЕЦЕПТИ (Грид + фільтри)
   ============================================ */

.gotuimo-popular-recipes {
    max-width: 1200px;
    margin: 80px auto;
    padding: 0 20px;
}

/* Заголовок секції */
.gotuimo-section-header {
    text-align: center;
    margin-bottom: 48px;
}

.gotuimo-section-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 12px;
}

.gotuimo-section-subtitle {
    font-size: clamp(1rem, 2vw, 1.125rem);
    color: #666;
    margin: 0;
}

/* Фільтри */
.gotuimo-recipe-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
    padding: 24px;
    background: #f8f9fa;
    border-radius: 16px;
}

.gotuimo-filter-btn {
    padding: 12px 24px;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 50px;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.gotuimo-filter-btn:hover {
    background: #ac0707;
    color: #ffffff;
    border-color: #ac0707;
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(172, 7, 7, 0.4);
}

.gotuimo-filter-btn.active {
    /* ✅ Єдиний стиль: червона активна кнопка */
    background: #ef4444;
    border: 2px solid #ef4444;
    color: white;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.gotuimo-filter-results {
    width: 100%;
    text-align: center;
    margin-top: 8px;
}

.gotuimo-results-count {
    font-size: 0.9375rem;
    color: #666;
    font-weight: 500;
}

/* Грид рецептів */
.gotuimo-recipes-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-bottom: 40px;
    transition: opacity 0.3s ease;
}

.gotuimo-recipes-grid.loading {
    pointer-events: none;
}

/* Карточка рецепта */
.gotuimo-recipe-grid-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.gotuimo-recipe-grid-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    transform: translateY(-4px);
}

/* Зображення рецепта */
.gotuimo-recipe-grid-image {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.gotuimo-recipe-grid-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gotuimo-recipe-grid-card:hover .gotuimo-recipe-grid-image img {
    transform: scale(1.05);
}

/* Позначки (badges) */
.gotuimo-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.gotuimo-badge-new {
    background: linear-gradient(135deg, #5A822B 0%, #6A9534 100%);
    color: white;
}

.gotuimo-badge-day {
    background: linear-gradient(135deg, #FFB800 0%, #FF8C00 100%);
    color: white;
    top: 48px; /* Якщо є дві позначки */
}

/* Кнопка "Улюблене" */
.gotuimo-favorite-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 2;
}

/* Ховаємо SVG, використовуємо Unicode символ */
.gotuimo-favorite-btn svg {
    display: none !important;
}

/* Unicode серце ♥ */
.gotuimo-favorite-btn::before {
    content: '♥';
    font-size: 20px;
    color: #ac0707;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.gotuimo-favorite-btn:hover {
    background: white;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Hover - збільшуємо */
.gotuimo-favorite-btn:hover::before {
    transform: scale(1.2);
}

/* Active (обране) - червоний фон, біле сердечко */
.gotuimo-favorite-btn.active {
    background: #ac0707 !important; /* ✅ Червоний фон - перебиваємо hover */
    border: 2px solid #ac0707 !important;
}

.gotuimo-favorite-btn.active::before {
    color: white !important; /* ✅ Біле сердечко */
    transform: scale(1.1);
}

/* ✅ Коли НЕ active - завжди білий фон + червоне серце */
.gotuimo-favorite-btn:not(.active) {
    background: rgba(255, 255, 255, 0.9) !important;
    border: none !important;
}

.gotuimo-favorite-btn:not(.active)::before {
    color: #ac0707 !important;
}

/* Контент карточки */
.gotuimo-recipe-grid-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.gotuimo-recipe-grid-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 12px 0;
    line-height: 1.4;
}

.gotuimo-recipe-grid-title a {
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.3s ease;
}

.gotuimo-recipe-grid-title a:hover {
    color: #3498db;
}

.gotuimo-recipe-grid-description {
    font-size: 0.9375rem;
    color: #666;
    line-height: 1.6;
    margin: 0 0 16px 0;
    flex-grow: 1;
}

/* Мета-дані */
.gotuimo-recipe-grid-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 20px;
    padding-top: 16px;
    border-top: 1px solid #f0f0f0;
}

.gotuimo-recipe-grid-meta > span {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.875rem;
    color: #666;
}

.gotuimo-meta-rating {
    color: #FFB800 !important;
    font-weight: 600;
}

.gotuimo-meta-rating svg {
    color: #FFB800;
}

.gotuimo-meta-comments svg,
.gotuimo-meta-time svg {
    color: #999;
}

/* Кнопка "Детальніше" */
.gotuimo-recipe-grid-btn {
    display: inline-block;
    padding: 12px 24px;
    /* ✅ Єдиний стиль: біла кнопка → червона при hover */
    background: #ffffff;
    color: #ef4444;
    border: 2px solid #ef4444;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9375rem;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.2);
}

.gotuimo-recipe-grid-btn:hover {
    background: #ef4444;
    color: #ffffff;
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4);
    transform: translateY(-2px);
}

/* Loader/Spinner */
.gotuimo-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
}

.gotuimo-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid #f0f0f0;
    border-top-color: #3498db;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Empty state / Error */
.gotuimo-no-results,
.gotuimo-error {
    text-align: center;
    padding: 80px 20px;
    color: #999;
    font-size: 1.125rem;
}

.gotuimo-error {
    color: #ac0707;
}

/* ============================================
   АДАПТИВНІСТЬ (Responsive)
   ============================================ */

/* Tablet (768px - 1024px) */
@media (max-width: 1024px) {
    .gotuimo-popular-recipes {
        margin: 60px auto;
    }
    
    .gotuimo-recipes-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
    
    .gotuimo-recipe-grid-title {
        font-size: 1.125rem;
    }
    
    .gotuimo-filter-btn {
        padding: 10px 20px;
        font-size: 0.875rem;
    }
}

/* Mobile (< 768px) */
@media (max-width: 768px) {
    .gotuimo-popular-recipes {
        margin: 40px auto;
        padding: 0 16px;
    }
    
    .gotuimo-section-header {
        margin-bottom: 32px;
    }
    
    .gotuimo-recipe-filters {
        padding: 16px;
        gap: 8px;
    }
    
    .gotuimo-filter-btn {
        padding: 8px 16px;
        font-size: 0.8125rem;
    }
    
    .gotuimo-recipes-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .gotuimo-recipe-grid-content {
        padding: 20px;
    }
    
    .gotuimo-badge {
        top: 8px;
        left: 8px;
        padding: 4px 10px;
        font-size: 0.6875rem;
    }
    
    .gotuimo-badge-day {
        top: 36px;
    }
    
    .gotuimo-favorite-btn {
        width: 36px;
        height: 36px;
        top: 8px;
        right: 8px;
    }
    
    .gotuimo-favorite-btn::before {
        font-size: 16px;
    }
}

/* Small Mobile (< 480px) */
@media (max-width: 480px) {
    .gotuimo-section-title {
        font-size: 1.5rem;
    }
    
    .gotuimo-recipe-grid-meta {
        gap: 12px;
    }
    
    .gotuimo-recipe-grid-meta > span {
        font-size: 0.8125rem;
    }
    
    .gotuimo-recipe-grid-btn {
        padding: 10px 20px;
        font-size: 0.875rem;
    }
}

/* ============================================
   🎭 TOP AUTHORS BLOCK (Блок 5)
   ============================================ */

.gotuimo-top-authors {
    max-width: 1280px;
    margin: 60px auto;
    padding: 0 20px;
}

/* Grid карток авторів */
.gotuimo-authors-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

/* Картка автора */
.gotuimo-author-card {
    background: white;
    border-radius: 16px;
    padding: 32px 24px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.gotuimo-author-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
    border-color: #ac0707;
}

/* Аватар */
.gotuimo-author-avatar {
    margin-bottom: 20px;
}

.gotuimo-author-avatar a {
    display: block;
    border-radius: 50%;
    overflow: hidden;
    width: 120px;
    height: 120px;
    border: 4px solid #f5f5f5;
    transition: all 0.3s ease;
}

.gotuimo-author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
}

.gotuimo-author-card:hover .gotuimo-author-avatar a {
    border-color: #ac0707;
}

.gotuimo-author-card:hover .gotuimo-author-avatar img {
    transform: scale(1.05);
}

/* Інформація про автора */
.gotuimo-author-info {
    width: 100%;
}

.gotuimo-author-name {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 12px;
    color: #1a1a1a;
}

.gotuimo-author-name a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.gotuimo-author-name a:hover {
    color: #ac0707;
}

/* Біографія */
.gotuimo-author-bio {
    font-size: 0.875rem;
    color: #666;
    line-height: 1.5;
    margin: 0 0 16px;
    min-height: 40px;
}

/* Статистика */
.gotuimo-author-stats {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 20px;
    padding: 12px 0;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.gotuimo-author-stats .gotuimo-stat {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.875rem;
    color: #666;
}

.gotuimo-author-stats .gotuimo-stat svg {
    width: 16px;
    height: 16px;
    color: #ac0707;
}

.gotuimo-author-stats .gotuimo-stat span {
    font-weight: 600;
    color: #1a1a1a;
}

/* Кнопка */
.gotuimo-author-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    /* ✅ Єдиний стиль: біла кнопка → червона при hover */
    background: #ffffff;
    color: #ef4444;
    border: 2px solid #ef4444;
    text-decoration: none;
    border-radius: 50px; /* ✅ Овал */
    font-size: 0.9375rem;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-top: auto;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.2);
}

.gotuimo-author-btn svg {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

.gotuimo-author-btn:hover {
    background: #ef4444;
    color: #ffffff;
    transform: translateY(-2px) translateX(4px);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4);
}

.gotuimo-author-btn:hover svg {
    transform: translateX(4px);
}

/* ============================================
   📱 RESPONSIVE - TOP AUTHORS
   ============================================ */

/* Tablet (768px - 1024px) */
@media (max-width: 1024px) {
    .gotuimo-top-authors {
        margin: 50px auto;
    }
    
    .gotuimo-authors-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
    
    .gotuimo-author-card {
        padding: 28px 20px;
    }
}

/* Mobile (< 768px) */
@media (max-width: 768px) {
    .gotuimo-top-authors {
        margin: 40px auto;
        padding: 0 16px;
    }
    
    .gotuimo-authors-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .gotuimo-author-card {
        padding: 24px 20px;
    }
    
    .gotuimo-author-avatar a {
        width: 100px;
        height: 100px;
    }
    
    .gotuimo-author-name {
        font-size: 1.125rem;
    }
    
    .gotuimo-author-bio {
        font-size: 0.8125rem;
        min-height: auto;
    }
    
    .gotuimo-author-stats {
        gap: 12px;
    }
    
    .gotuimo-author-btn {
        padding: 10px 20px;
        font-size: 0.875rem;
    }
}

/* Small Mobile (< 480px) */
@media (max-width: 480px) {
    .gotuimo-author-card {
        padding: 20px 16px;
    }
    
    .gotuimo-author-avatar a {
        width: 80px;
        height: 80px;
    }
    
    .gotuimo-author-stats {
        flex-direction: column;
        gap: 8px;
        align-items: center;
    }
}

/* ========================================================================
   БЛОК 7: ОСТАННІ ЗАПИСИ БЛОГУ (Blog Posts)
   ======================================================================== */

/* === Контейнер секції === */
.gotuimo-blog-section {
    padding: 4rem 0;
    background: #fff;
}

/* === Заголовок секції === */
.gotuimo-blog-header {
    text-align: center; /* ✅ Центрування заголовка */
    margin-bottom: 2.5rem;
}

.gotuimo-blog-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
}

/* === Footer з кнопкою (після карток) === */
.gotuimo-blog-footer {
    margin-top: 2.5rem;
    text-align: center; /* ✅ Кнопка по центру */
}

.gotuimo-blog-view-all-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 12px 32px;
    /* ✅ Єдиний стиль: біла кнопка → червона при hover */
    background: #ffffff;
    color: #ef4444;
    border: 2px solid #ef4444;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.2);
}

.gotuimo-blog-view-all-btn:hover {
    background: #ef4444;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4);
}

.gotuimo-blog-view-all-btn .arrow {
    transition: transform 0.3s ease;
}

.gotuimo-blog-view-all-btn:hover .arrow {
    transform: translateX(4px);
}

/* ❌ СТАРИЙ .gotuimo-blog-view-all (більше не використовується) */
.gotuimo-blog-view-all {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.gotuimo-blog-view-all:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.gotuimo-blog-view-all .arrow {
    font-size: 1.2em;
    transition: transform 0.3s ease;
}

.gotuimo-blog-view-all:hover .arrow {
    transform: translateX(4px);
}

/* === Грид блог-карток === */
.gotuimo-blog-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

/* Колонки */
.gotuimo-blog-columns-1 {
    grid-template-columns: 1fr;
}

.gotuimo-blog-columns-2 {
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
}

.gotuimo-blog-columns-3 {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

/* === Картка блог-поста === */
.gotuimo-blog-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.gotuimo-blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

/* === Зображення === */
.gotuimo-blog-card__image {
    position: relative;
    width: 100%;
    padding-top: 60%; /* Aspect ratio 5:3 */
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* === Badges === */
.gotuimo-blog-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.gotuimo-blog-badge-rating {
    background: linear-gradient(135deg, #FFB800 0%, #FF8C00 100%);
    color: white;
}

.gotuimo-blog-badge-new {
    background: linear-gradient(135deg, #5A822B 0%, #6A9534 100%);
    color: white;
}

.gotuimo-blog-card__image a {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
}

.gotuimo-blog-card__image img {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.gotuimo-blog-card:hover .gotuimo-blog-card__image img {
    transform: scale(1.08);
}

/* === Контент картки === */
.gotuimo-blog-card__content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    flex: 1;
}

/* === Категорії === */
.gotuimo-blog-card__categories {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}

/* === Контейнер категорій === */
.gotuimo-blog-card__categories {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.gotuimo-blog-category {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-decoration: none;
    color: #fff;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap; /* ✅ Не переносити текст */
}

.gotuimo-blog-category:hover {
    transform: scale(1.05);
    filter: brightness(1.1);
}

/* === Заголовок картки === */
.gotuimo-blog-card__title {
    margin: 0;
    font-size: 1.25rem;
    line-height: 1.4;
    font-weight: 700;
}

.gotuimo-blog-card__title a {
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.3s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.gotuimo-blog-card__title a:hover {
    color: #667eea;
}

/* === Мета інформація === */
.gotuimo-blog-card__meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.875rem;
    color: #6c757d;
    flex-wrap: wrap;
}

.gotuimo-blog-meta-author,
.gotuimo-blog-meta-date {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.gotuimo-blog-card__meta .icon {
    flex-shrink: 0;
    opacity: 0.7;
}

.gotuimo-blog-meta-author a {
    color: #6c757d;
    text-decoration: none;
    transition: color 0.2s ease;
}

.gotuimo-blog-meta-author a:hover {
    color: #667eea;
}

/* === Excerpt (короткий опис) === */
.gotuimo-blog-card__excerpt {
    font-size: 0.9375rem;
    line-height: 1.6;
    color: #495057;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-top: auto;
}

/* === Кнопка "Читати далі" === */
.gotuimo-blog-card__link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    /* ✅ Єдиний стиль: червоний колір */
    color: #ef4444;
    font-weight: 600;
    text-decoration: none;
    font-size: 0.9375rem;
    transition: all 0.3s ease;
    margin-top: auto;
    padding-top: 1rem;
}

.gotuimo-blog-card__link .arrow {
    font-size: 1.2em;
    transition: transform 0.3s ease;
}

.gotuimo-blog-card__link:hover {
    color: #dc2626;
    gap: 0.75rem;
}

.gotuimo-blog-card__link:hover .arrow {
    transform: translateX(4px);
}

/* === Пустий стан === */
.gotuimo-blog-empty {
    text-align: center;
    padding: 4rem 2rem;
    color: #6c757d;
    font-size: 1.125rem;
}

/* ========================================================================
   АДАПТИВНИЙ ДИЗАЙН - БЛОГ
   ======================================================================== */

/* === Планшети === */
@media (max-width: 992px) {
    .gotuimo-blog-section {
        padding: 3rem 0;
    }
    
    .gotuimo-blog-header {
        margin-bottom: 2rem;
    }
    
    .gotuimo-blog-grid {
        gap: 1.5rem;
    }
    
    .gotuimo-blog-columns-3 {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

/* === Мобільні пристрої === */
@media (max-width: 768px) {
    .gotuimo-blog-section {
        padding: 2rem 0;
    }
    
    .gotuimo-blog-header {
        margin-bottom: 1.5rem;
    }
    
    .gotuimo-blog-footer {
        margin-top: 2rem;
    }
    
    .gotuimo-blog-view-all-btn {
        width: 100%;
        justify-content: center;
        max-width: 300px; /* Обмежуємо ширину */
    }
    
    .gotuimo-blog-grid {
        gap: 1.25rem;
        grid-template-columns: 1fr;
    }
    
    .gotuimo-blog-columns-2,
    .gotuimo-blog-columns-3 {
        grid-template-columns: 1fr;
    }
    
    .gotuimo-blog-card__content {
        padding: 1.25rem;
    }
    
    .gotuimo-blog-card__title {
        font-size: 1.125rem;
    }
}

/* === Малі мобільні === */
@media (max-width: 480px) {
    .gotuimo-blog-section {
        padding: 1.5rem 0;
    }
    
    .gotuimo-blog-title {
        font-size: 1.5rem;
    }
    
    .gotuimo-blog-card__image {
        padding-top: 65%; /* Трохи вищий на малих екранах */
    }
    
    .gotuimo-blog-card__content {
        padding: 1rem;
        gap: 0.75rem;
    }
    
    .gotuimo-blog-card__meta {
        font-size: 0.8125rem;
        gap: 0.75rem;
    }
    
    .gotuimo-blog-card__excerpt {
        font-size: 0.875rem;
        -webkit-line-clamp: 2;
    }
}

/* === Accessibility та підтримка темної теми === */
@media (prefers-reduced-motion: reduce) {
    .gotuimo-blog-card,
    .gotuimo-blog-card__image img,
    .gotuimo-blog-category,
    .gotuimo-blog-view-all {
        transition: none;
    }
}

/* Прибрав dark mode щоб відповідало іншим блокам */

/* ========================================================================
   БЛОК 8: АКТУАЛЬНІ КОНКУРСИ/АКЦІЇ (Contests Banner)
   ======================================================================== */

/* === Контейнер секції === */
.gotuimo-contests-section {
    padding: 4rem 0;
    background: #fff;
}

/* === Заголовок секції === */
.gotuimo-contests-section .gotuimo-section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.gotuimo-contests-section .gotuimo-section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2d3748;
    margin: 0;
}

/* === Контейнер банера === */
.gotuimo-contest-banner {
    position: relative;
    min-height: 400px;
    border-radius: 24px;
    overflow: hidden;
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gotuimo-contest-banner:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.2);
}

/* === Overlay градієнт === */
.gotuimo-contest-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

/* === Контент банера === */
.gotuimo-contest-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 3rem 2rem;
    text-align: center;
    color: #ffffff;
}

/* === Badge "Активний конкурс" === */
.gotuimo-contest-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.gotuimo-contest-badge svg {
    width: 20px;
    height: 20px;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* === Заголовок конкурсу === */
.gotuimo-contest-title {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.2;
    margin: 0 0 1rem 0;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* === Опис конкурсу === */
.gotuimo-contest-excerpt {
    font-size: 1.25rem;
    line-height: 1.6;
    margin: 0 0 2rem 0;
    opacity: 0.95;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

/* === Таймер зворотного відліку === */
.gotuimo-contest-timer {
    margin: 2rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.gotuimo-timer-label {
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.9;
}

.gotuimo-timer-units {
    display: flex;
    gap: 1.5rem;
}

.gotuimo-timer-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 80px;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.gotuimo-timer-value {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.gotuimo-timer-text {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.8;
}

/* === CTA кнопка === */
.gotuimo-contest-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2.5rem;
    background: #ffffff;
    color: #2d3748;
    font-size: 1.125rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    margin-top: 1rem;
}

.gotuimo-contest-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    background: rgba(255, 255, 255, 0.95);
}

.gotuimo-contest-cta svg {
    transition: transform 0.3s ease;
}

.gotuimo-contest-cta:hover svg {
    transform: translateX(4px);
}

/* === АДАПТИВНИЙ ДИЗАЙН - КОНКУРСИ === */

/* Tablets (768px - 1023px) */
@media (max-width: 1023px) {
    .gotuimo-contests-section {
        padding: 3rem 0;
    }
    
    .gotuimo-contests-section .gotuimo-section-title {
        font-size: 2rem;
    }
    
    .gotuimo-contest-banner {
        min-height: 350px;
    }
    
    .gotuimo-contest-content {
        padding: 2.5rem 1.5rem;
    }
    
    .gotuimo-contest-title {
        font-size: 2.25rem;
    }
    
    .gotuimo-contest-excerpt {
        font-size: 1.125rem;
    }
    
    .gotuimo-timer-unit {
        min-width: 70px;
        padding: 0.875rem;
    }
    
    .gotuimo-timer-value {
        font-size: 2rem;
    }
}

/* Mobiles (до 767px) */
@media (max-width: 767px) {
    .gotuimo-contests-section {
        padding: 2rem 0;
    }
    
    .gotuimo-contests-section .gotuimo-section-header {
        margin-bottom: 2rem;
    }
    
    .gotuimo-contests-section .gotuimo-section-title {
        font-size: 1.75rem;
    }
    
    .gotuimo-contest-banner {
        min-height: 500px;
        margin: 0 -20px;
        border-radius: 0;
    }
    
    .gotuimo-contest-content {
        padding: 2rem 1.5rem;
    }
    
    .gotuimo-contest-badge {
        font-size: 0.75rem;
        padding: 0.5rem 1rem;
        gap: 0.375rem;
    }
    
    .gotuimo-contest-badge svg {
        width: 16px;
        height: 16px;
    }
    
    .gotuimo-contest-title {
        font-size: 1.875rem;
        margin-bottom: 0.75rem;
    }
    
    .gotuimo-contest-excerpt {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .gotuimo-timer-label {
        font-size: 0.875rem;
    }
    
    .gotuimo-timer-units {
        gap: 0.75rem;
    }
    
    .gotuimo-timer-unit {
        min-width: 60px;
        padding: 0.75rem 0.5rem;
    }
    
    .gotuimo-timer-value {
        font-size: 1.5rem;
    }
    
    .gotuimo-timer-text {
        font-size: 0.75rem;
    }
    
    .gotuimo-contest-cta {
        font-size: 1rem;
        padding: 0.875rem 2rem;
        gap: 0.5rem;
    }
}

/* Small mobiles (до 374px) */
@media (max-width: 374px) {
    .gotuimo-contest-title {
        font-size: 1.5rem;
    }
    
    .gotuimo-contest-excerpt {
        font-size: 0.9375rem;
    }
    
    .gotuimo-timer-units {
        gap: 0.5rem;
    }
    
    .gotuimo-timer-unit {
        min-width: 50px;
        padding: 0.625rem 0.375rem;
    }
    
    .gotuimo-timer-value {
        font-size: 1.25rem;
    }
    
    .gotuimo-contest-cta {
        padding: 0.75rem 1.5rem;
        font-size: 0.9375rem;
    }
}

/* === Accessibility === */
@media (prefers-reduced-motion: reduce) {
    .gotuimo-contest-banner,
    .gotuimo-contest-cta,
    .gotuimo-contest-cta svg,
    .gotuimo-contest-badge svg {
        transition: none;
        animation: none;
    }
}

/* Focus states для accessibility */
.gotuimo-contest-cta:focus {
    outline: 2px solid #ffffff;
    outline-offset: 4px;
}

/* ========================================================================
   БЛОК 9: FAQ (Часті питання)
   ======================================================================== */

/* === Контейнер секції === */
.gotuimo-faq-section {
    padding: 4rem 0;
    background: #fff;
}

/* === Заголовок === */
.gotuimo-faq-header {
    text-align: center;
    margin-bottom: 3rem;
}

.gotuimo-faq-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
    line-height: 1.2;
}

/* === Пошук === */
.gotuimo-faq-search {
    position: relative;
    max-width: 600px;
    margin: 0 auto 3rem;
}

.gotuimo-faq-search-input {
    width: 100%;
    padding: 1rem 3rem 1rem 1.25rem;
    font-size: 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    background: #fff;
    transition: all 0.3s ease;
}

.gotuimo-faq-search-input:focus {
    outline: none;
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.gotuimo-faq-search-icon {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #6b7280;
    pointer-events: none;
}

/* === Accordion === */
.gotuimo-faq-accordion {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* === FAQ Item === */
.gotuimo-faq-item {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #fff;
    overflow: hidden;
    transition: all 0.3s ease;
}

.gotuimo-faq-item:hover {
    border-color: #10b981;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.1);
}

.gotuimo-faq-item.active {
    border-color: #10b981;
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.15);
}

/* === Питання (Button) === */
.gotuimo-faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.5rem;
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: left;
    transition: all 0.3s ease;
}

.gotuimo-faq-question:hover {
    background: #f9fafb;
}

.gotuimo-faq-question-text {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1a1a1a;
    line-height: 1.5;
    flex: 1;
}

/* === Іконки +/- === */
.gotuimo-faq-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    color: #10b981;
    transition: all 0.3s ease;
}

.gotuimo-faq-icon-plus {
    display: block;
}

.gotuimo-faq-icon-minus {
    display: none;
}

.gotuimo-faq-item.active .gotuimo-faq-icon-plus {
    display: none;
}

.gotuimo-faq-item.active .gotuimo-faq-icon-minus {
    display: block;
}

.gotuimo-faq-question[aria-expanded="true"] .gotuimo-faq-icon {
    transform: rotate(180deg);
}

/* === Активне питання (червоний фон, білий текст) === */
.gotuimo-faq-item.active .gotuimo-faq-question {
    background: #ef4444;
}

.gotuimo-faq-item.active .gotuimo-faq-question-text {
    color: #ffffff;
}

.gotuimo-faq-item.active .gotuimo-faq-icon svg {
    stroke: #ffffff;
}

/* === Відповідь === */
.gotuimo-faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.gotuimo-faq-item.active .gotuimo-faq-answer {
    max-height: 2000px; /* Достатньо велике значення для будь-якого контенту */
}

.gotuimo-faq-answer-content {
    padding: 1.5rem 1.5rem 1.5rem;
    font-size: 1rem;
    line-height: 1.75;
    color: #4b5563;
}

.gotuimo-faq-answer-content p {
    margin: 0 0 1rem;
}

.gotuimo-faq-answer-content p:last-child {
    margin-bottom: 0;
}

.gotuimo-faq-answer-content a {
    color: #10b981;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.gotuimo-faq-answer-content a:hover {
    color: #059669;
}

.gotuimo-faq-answer-content ul,
.gotuimo-faq-answer-content ol {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.gotuimo-faq-answer-content li {
    margin-bottom: 0.5rem;
}

.gotuimo-faq-answer-content strong {
    font-weight: 600;
    color: #1a1a1a;
}

/* === Animations === */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.gotuimo-faq-item.active .gotuimo-faq-answer-content {
    animation: fadeIn 0.4s ease;
}

/* === АДАПТИВНИЙ ДИЗАЙН - FAQ === */

/* Tablets (768px - 1023px) */
@media (max-width: 1023px) {
    .gotuimo-faq-section {
        padding: 3rem 0;
    }
    
    .gotuimo-faq-title {
        font-size: 2rem;
    }
    
    .gotuimo-faq-header {
        margin-bottom: 2.5rem;
    }
    
    .gotuimo-faq-search {
        margin-bottom: 2.5rem;
    }
}

/* Mobiles (до 767px) */
@media (max-width: 767px) {
    .gotuimo-faq-section {
        padding: 2.5rem 0;
    }
    
    .gotuimo-faq-title {
        font-size: 1.75rem;
    }
    
    .gotuimo-faq-header {
        margin-bottom: 2rem;
    }
    
    .gotuimo-faq-search {
        margin-bottom: 2rem;
    }
    
    .gotuimo-faq-search-input {
        padding: 0.875rem 2.75rem 0.875rem 1rem;
        font-size: 0.9375rem;
    }
    
    .gotuimo-faq-accordion {
        gap: 0.75rem;
    }
    
    .gotuimo-faq-question {
        padding: 1.25rem;
        gap: 0.75rem;
    }
    
    .gotuimo-faq-question-text {
        font-size: 1rem;
    }
    
    .gotuimo-faq-icon {
        width: 20px;
        height: 20px;
    }
    
    .gotuimo-faq-answer-content {
        padding: 0 1.25rem 1.25rem;
        font-size: 0.9375rem;
    }
}

/* Small mobiles (до 374px) */
@media (max-width: 374px) {
    .gotuimo-faq-title {
        font-size: 1.5rem;
    }
    
    .gotuimo-faq-question {
        padding: 1rem;
    }
    
    .gotuimo-faq-question-text {
        font-size: 0.9375rem;
    }
    
    .gotuimo-faq-answer-content {
        padding: 0 1rem 1rem;
        font-size: 0.875rem;
    }
}

/* === Accessibility === */
@media (prefers-reduced-motion: reduce) {
    .gotuimo-faq-item,
    .gotuimo-faq-question,
    .gotuimo-faq-answer,
    .gotuimo-faq-icon {
        transition: none;
        animation: none;
    }
}

/* Focus states для accessibility */
.gotuimo-faq-question:focus {
    outline: 2px solid #10b981;
    outline-offset: 2px;
}

.gotuimo-faq-search-input:focus {
    outline: none;
}

/* ========================================
   === БЛОК 10: МІЙ ХОЛОДИЛЬНИК ===
   ======================================== */

/* === Main Container === */
.gotuimo-fridge-section {
    padding: 4rem 0;
    background: #fff;
}

.gotuimo-fridge-empty {
    text-align: center;
    padding: 3rem 1.5rem;
    color: #6b7280;
}

/* === Header === */
.gotuimo-fridge-header {
    text-align: center;
    margin-bottom: 3rem;
}

.gotuimo-fridge-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 0.75rem;
}

.gotuimo-fridge-subtitle {
    font-size: 1.125rem;
    color: #6b7280;
    margin: 0;
}

/* Screen reader text (accessibility) */
.screen-reader-text {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    white-space: nowrap;
}

/* === Ingredient Selector === */
.gotuimo-fridge-selector {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.gotuimo-fridge-search-wrapper {
    flex: 1;
    position: relative;
    overflow: visible;
}

.gotuimo-fridge-input {
    width: 100%;
    min-height: 54px;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.75rem;
    background: #fff;
    transition: all 0.2s ease;
}

.gotuimo-fridge-input:focus {
    outline: none;
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

/* Select2 custom styles */
.select2-container {
    width: 100% !important;
    overflow: visible !important;
}

.select2-container--default .select2-selection--multiple {
    border: 1px solid #ddd !important;
    border-radius: 6px !important;
    padding: 5px 8px !important;
    min-height: 42px !important;
    display: flex !important;
    align-items: center !important;
    overflow: visible !important;
}

.select2-container--default.select2-container--focus .select2-selection--multiple {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1) !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__rendered {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: visible !important;
    width: 100% !important;
}

.select2-container--default .select2-selection--multiple .select2-search--inline {
    display: flex !important;
    align-items: center !important;
    margin: 0 !important;
}

.select2-container--default .select2-selection--multiple .select2-search--inline .select2-search__field {
    margin: 0 !important;
    padding: 3px 0 !important;
    height: 32px !important;
    line-height: 32px !important;
    min-width: 150px !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice {
    position: relative !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 2px !important;
    margin: 4px 12px 4px 4px !important;
    padding: 0px 6px !important;
    background: #FEE2E2 !important;
    color: #DC2626 !important;
    border: none !important;
    border-radius: 10px !important;
    height: auto !important;
    min-height: 28px !important;
    line-height: 1.4 !important;
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
    font-weight: 500 !important;
    font-size: 14px !important;
    overflow: visible !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
    position: absolute !important;
    top: -6px !important;
    right: -6px !important;
    width: 16px !important;
    height: 16px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: white !important;
    color: #DC2626 !important;
    border: 1.5px solid #DC2626 !important;
    border-radius: 50% !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    line-height: 1 !important;
    padding: 0 !important;
    margin: 0 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    z-index: 100 !important;
    box-shadow: 0 1px 3px rgba(220, 38, 38, 0.2) !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove:hover {
    background: #DC2626 !important;
    color: white !important;
    border-color: #DC2626 !important;
    transform: scale(1.15) !important;
    box-shadow: 0 2px 4px rgba(220, 38, 38, 0.3) !important;
}

/* Dropdown - ЗАВЖДИ ЗВЕРХУ */
.select2-dropdown {
    z-index: 9999 !important; /* Найвищий пріоритет */
}

.select2-container--default .select2-results__option {
    padding: 0.75rem 1rem !important;
    font-size: 1rem !important;
}

.select2-container--default .select2-results__option--highlighted {
    background-color: #fef2f2 !important;
    color: #991b1b !important;
}

.select2-container--default .select2-results__option--selected {
    background-color: #fee2e2 !important;
    color: #991b1b !important;
}

/* === Actions === */
.gotuimo-fridge-actions {
    display: flex;
    gap: 1rem;
}

.gotuimo-fridge-search-btn,
.gotuimo-fridge-clear-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.gotuimo-fridge-search-btn {
    background: #ef4444;
    color: #fff;
    flex: 1;
}

.gotuimo-fridge-search-btn:hover {
    background: #dc2626;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.gotuimo-fridge-search-btn:active {
    transform: translateY(0);
}

.gotuimo-fridge-clear-btn {
    background: #f3f4f6;
    color: #6b7280;
}

.gotuimo-fridge-clear-btn:hover {
    background: #e5e7eb;
    color: #374151;
}

.gotuimo-fridge-search-icon,
.gotuimo-fridge-clear-icon {
    width: 20px;
    height: 20px;
}

/* === Selected Ingredients Display === */
.gotuimo-fridge-selected {
    background: #f9fafb;
    border: 2px dashed #e5e7eb;
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.gotuimo-fridge-selected-header {
    margin-bottom: 1rem;
}

.gotuimo-fridge-selected-label {
    font-size: 1rem;
    color: #6b7280;
}

.gotuimo-fridge-selected-label strong {
    color: #1f2937;
    font-weight: 600;
}

.gotuimo-fridge-selected-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.gotuimo-fridge-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 0.5rem;
    font-size: 0.9375rem;
    color: #991b1b;
}

.gotuimo-fridge-badge-text {
    font-weight: 500;
}

.gotuimo-fridge-badge-remove {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0;
    background: transparent;
    border: none;
    cursor: pointer;
    color: #ef4444;
    transition: color 0.2s ease;
}

.gotuimo-fridge-badge-remove:hover {
    color: #dc2626;
}

.gotuimo-fridge-badge-remove svg {
    width: 14px;
    height: 14px;
}

/* === Loading State === */
.gotuimo-fridge-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    gap: 1rem;
}

.gotuimo-fridge-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid #f3f4f6;
    border-top-color: #ef4444;
    border-radius: 50%;
    animation: gotuimo-fridge-spin 0.8s linear infinite;
}

@keyframes gotuimo-fridge-spin {
    to {
        transform: rotate(360deg);
    }
}

.gotuimo-fridge-loading p {
    font-size: 1.125rem;
    color: #6b7280;
    margin: 0;
}

/* === Results Header === */
.gotuimo-fridge-results-header {
    margin-bottom: 2rem;
}

.gotuimo-fridge-results-title {
    font-size: 1.75rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
}

.gotuimo-fridge-results-title span {
    color: #ef4444;
}

/* === Results Grid === */
.gotuimo-fridge-results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

/* === Recipe Card === */
.gotuimo-fridge-recipe-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
    animation: gotuimo-fridge-fade-in 0.5s ease-out forwards;
    opacity: 0;
}

@keyframes gotuimo-fridge-fade-in {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.gotuimo-fridge-recipe-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
    border-color: #ef4444;
}

.gotuimo-fridge-recipe-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* === Recipe Image === */
.gotuimo-fridge-recipe-image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #f3f4f6;
}

.gotuimo-fridge-recipe-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gotuimo-fridge-recipe-card:hover .gotuimo-fridge-recipe-image {
    transform: scale(1.05);
}

.gotuimo-fridge-recipe-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.3), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gotuimo-fridge-recipe-card:hover .gotuimo-fridge-recipe-overlay {
    opacity: 1;
}

/* === Recipe Content === */
.gotuimo-fridge-recipe-content {
    padding: 1.25rem;
}

.gotuimo-fridge-recipe-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 1rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* === Match Badge === */
.gotuimo-fridge-recipe-meta {
    margin-bottom: 0.75rem;
}

.gotuimo-fridge-match-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
}

.gotuimo-fridge-match-perfect {
    background: #d1fae5;
    color: #065f46;
}

.gotuimo-fridge-match-good {
    background: #fef3c7;
    color: #92400e;
}

.gotuimo-fridge-match-partial {
    background: #fee2e2;
    color: #991b1b;
}

.gotuimo-fridge-match-icon {
    width: 20px;
    height: 20px;
}

.gotuimo-fridge-match-perfect .gotuimo-fridge-match-icon {
    stroke: #10b981;
}

.gotuimo-fridge-match-good .gotuimo-fridge-match-icon {
    fill: #f59e0b;
}

/* === Missing Ingredients === */
.gotuimo-fridge-missing {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.75rem;
    background: #fef2f2;
    border-left: 3px solid #ef4444;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    color: #991b1b;
}

.gotuimo-fridge-missing svg {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    margin-top: 0.125rem;
    stroke: #ef4444;
}

/* === Empty Results === */
.gotuimo-fridge-empty-results {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    text-align: center;
}

.gotuimo-fridge-empty-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 1.5rem;
    stroke: #d1d5db;
}

.gotuimo-fridge-empty-results p {
    font-size: 1.125rem;
    color: #6b7280;
    margin: 0 0 0.5rem;
}

.gotuimo-fridge-empty-hint {
    font-size: 0.9375rem;
    color: #9ca3af;
}

/* === Responsive Design === */

/* Tablets (768px - 1023px) */
@media (max-width: 1023px) {
    .gotuimo-fridge-title {
        font-size: 2rem;
    }

    .gotuimo-fridge-results-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 1.25rem;
    }
}

/* Mobile (до 767px) */
@media (max-width: 767px) {
    .gotuimo-fridge-section {
        padding: 3rem 0;
    }

    .gotuimo-fridge-header {
        margin-bottom: 2rem;
    }

    .gotuimo-fridge-title {
        font-size: 1.75rem;
    }

    .gotuimo-fridge-subtitle {
        font-size: 1rem;
    }

    .gotuimo-fridge-selector {
        gap: 0.75rem;
    }
    
    /* Select2 на мобільних */
    .select2-container--default .select2-search--inline .select2-search__field {
        min-width: 200px !important;
    }

    .gotuimo-fridge-actions {
        flex-direction: column;
    }

    .gotuimo-fridge-search-btn,
    .gotuimo-fridge-clear-btn {
        width: 100%;
    }

    .gotuimo-fridge-selected {
        padding: 1rem;
    }

    .gotuimo-fridge-results-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .gotuimo-fridge-results-title {
        font-size: 1.5rem;
    }
}

/* Small mobiles (до 374px) */
@media (max-width: 374px) {
    .gotuimo-fridge-title {
        font-size: 1.5rem;
    }

    .gotuimo-fridge-search-btn,
    .gotuimo-fridge-clear-btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.9375rem;
    }

    .gotuimo-fridge-badge {
        font-size: 0.875rem;
        padding: 0.375rem 0.625rem;
    }
}

/* === Accessibility === */
@media (prefers-reduced-motion: reduce) {
    .gotuimo-fridge-recipe-card,
    .gotuimo-fridge-recipe-image,
    .gotuimo-fridge-recipe-overlay,
    .gotuimo-fridge-search-btn,
    .gotuimo-fridge-spinner {
        transition: none;
        animation: none;
    }
}

/* Focus states */
.gotuimo-fridge-search-btn:focus,
.gotuimo-fridge-clear-btn:focus,
.gotuimo-fridge-badge-remove:focus {
    outline: 2px solid #ef4444;
    outline-offset: 2px;
}

/* ========================================================================
   ВАЖЛИВО: Захист іконок категорій від перебиття
   ======================================================================== */

/* ✅ НЕ застосовувати будь-які загальні стилі до іконок категорій */
.gotuimo-categories-nav .category-card__icon,
.gotuimo-categories-nav .filter-icon {
    /* Ці іконки мають власні стилі в categories-nav.css */
    /* НЕ застосовувати жодні загальні правила */
}

