/* =======================================
   custom-home.css — главная страница Parader
   ======================================= */

/* ----- Основной контейнер подложка ----- */
.custom-homepage {
    margin-top: -3px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 20px;
    box-shadow: 8px 10px 5px rgba(0, 0, 0, 0.69);
    border-radius: 0px 0px 10px 15px;
    border: 1px solid #ccc;
    position: relative;
    z-index: 10;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

/* ----- Основной КОНТЕНТ  ----- */
.custom-homepage-content {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    background: transparent;
}

/* ===== Архивы (рубрики) — как главная ===== */
.category .custom-homepage,
.archive .custom-homepage {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border-radius: 0px 0px 10px 15px;
    box-shadow: 8px 10px 5px rgba(0, 0, 0, 0.69);
    margin-top: -3px;
    position: relative;
    z-index: 10;
}

.category .site-header,
.archive .site-header {
    max-width: 1200px;
    margin: 0 auto;
    border-radius: 20px 20px 5px 5px;
}

/* ----- Верхняя строка: два столбца ----- */
.top-row {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

/* ----- Большой блок ----- */
.big-block {
    position: relative;
    min-height: 400px;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 12px;
    overflow: hidden;
    will-change: transform;
}

.big-block::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.0);
    z-index: 1;
}

/* ----- Общие стили для подложек (текст при наведении) ----- */
.big-block .text-wrapper,
.small-block .text-wrapper,
.horiz-item .text-wrapper {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(229, 209, 225, 0.39);
    z-index: 2;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.big-block .text-wrapper {
    padding: 12px 20px;
}
.small-block .text-wrapper,
.horiz-item .text-wrapper {
    padding: 8px 12px;
}

.big-block:hover .text-wrapper,
.small-block:hover .text-wrapper,
.horiz-item:hover .text-wrapper {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.big-block .text-wrapper a,
.small-block .text-wrapper a,
.horiz-item .text-wrapper a {
    pointer-events: auto !important;
    display: block;
    color: #000;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
}

.big-block .text-wrapper h2 {
    margin: 0 0 4px;
    font-size: 20px;
}
.big-block .text-wrapper h2 a {
    font-size: 20px;
    color: #000;
    text-decoration: none;
}

.big-block .text-wrapper .date,
.small-block .text-wrapper .date,
.horiz-item .text-wrapper .date {
    display: block;
    font-size: 11px;
    color: #444;
    margin-top: 4px;
}

/* ----- Правая колонка ----- */
.right-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* ----- Маленькие блоки (правые и нижние) ----- */
.small-block {
    position: relative;
    height: 170px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 12px;
    overflow: hidden;
}
.small-block::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.0);
    z-index: 1;
}

/* ----- Нижняя строка (4 блока) ----- */
.bottom-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 0;
    margin-bottom: 30px;
}

/* ----- Баннерная полоса ----- */
.banner-strip {
    background: linear-gradient(135deg, #1e2a3a 0%, #4a69bd 100%);
    padding: 10px 0;
    text-align: center;
    margin: 10px 0;
    border-radius: 8px;
}

/* ----- Рубрика News & Beauty (и остальные горизонтальные) ----- */
.news-beauty h2 {
    font-size: 28px;
    margin: 40px 0 20px;
    border-left: 5px solid #e74c3c;
    padding-left: 15px;
    font-weight: 600 !important;
    text-shadow: 3px 3px 5px rgba(0, 0, 0, 0.6);
    transition: text-shadow 0.2s ease;
}
.news-beauty h2:hover {
    text-shadow: 4px 4px 6px rgba(0, 0, 0, 0.8);
}

.horizontal-strip {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

.horiz-item {
    position: relative;
    min-height: 160px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 12px;
    overflow: hidden;
}
.horiz-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.horiz-item .text-wrapper h3 {
    margin: 0 0 4px;
    font-size: 13px;
    font-weight: 600;
}
.horiz-item .text-wrapper h3 a {
    font-size: 13px;
    color: #000;
    text-decoration: none;
}

/* ----- Ссылки в тексте статей ----- */
.content-main a,
.card .content-main a,
.card.card .content-main a {
    color: #0066cc !important;
    text-decoration: underline !important;
}
.content-main a:hover,
.card .content-main a:hover,
.card.card .content-main a:hover {
    color: #004499 !important;
    text-decoration: underline !important;
}

/* ----- Тени и подъём при наведении ----- */
.custom-homepage .big-block,
.custom-homepage .small-block,
.custom-homepage .horiz-item {
    box-shadow: 6px 6px 12px rgba(0, 0, 0, 0.65);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.custom-homepage .big-block:hover,
.custom-homepage .small-block:hover,
.custom-homepage .horiz-item:hover {
    box-shadow: 10px 10px 18px rgba(0, 0, 0, 0.85);
    transform: translateY(-5px);
}

/* ========================================
   АДАПТИВ ДЛЯ ПЛАНШЕТОВ И ТЕЛЕФОНОВ
   ======================================== */
@media (max-width: 1024px) and (min-width: 769px) {
    .bottom-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .top-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .bottom-row {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .custom-homepage {
        padding: 10px !important;
        max-width: 100% !important;
        width: 100% !important;
        margin: -3px 0 0 0 !important;
        border-radius: 0 !important;
        background: rgba(255, 255, 255, 0.95) !important;
        backdrop-filter: blur(4px) !important;
        -webkit-backdrop-filter: blur(4px) !important;
        box-shadow: none !important;
        border: none !important;
    }
    
    .custom-homepage-content {
        padding: 0 5px !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    
    .category .custom-homepage,
    .archive .custom-homepage {
        margin-top: -3px !important;
        border-radius: 0 !important;
        padding: 10px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-shadow: none !important;
        border: none !important;
    }
    
    .site-header {
        margin-bottom: 0 !important;
        min-height: auto !important;
        height: auto !important;
        padding-bottom: 10px !important;
    }
    
    .custom-homepage,
    .single-post-wrapper,
    .page-wrapper {
        margin-top: 0 !important;
    }
}

@media (max-width: 480px) {
    .bottom-row {
        grid-template-columns: 1fr;
    }
}

/* Скрываем мобильную карусель на десктопах */
.mobile-news-ticker {
    display: none;
}

@media (max-width: 768px) {
    .news-ticker-wrapper {
        display: none;
    }
    .mobile-news-ticker {
        display: block;
    }
}