/* =========================================
   LIKBEZ PAGE STYLES
   ========================================= */

/* Скрываем нативный скролл */
html {
    scrollbar-width: none;
}
html::-webkit-scrollbar {
    display: none;
}

/* --- HEADER SECTION --- */
.likbez-header {
    /* Унифицированный отступ сверху (как в About Us) */
    padding: 150px 50px 80px 50px;
    text-align: center;
}

.likbez-header h1 {
    font-size: 3.5rem; /* Golden Standard: Desktop H1 */
    font-weight: 800;
    margin-bottom: 15px;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.likbez-header p {
    font-size: 1.1rem; /* Golden Standard: Body text */
    color: #b0b0b0;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.7;
}

/* --- FEED GRID --- */
.likbez-feed {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 50px 100px 50px;
    display: grid;
    grid-template-columns: repeat(3, 1fr); 
    gap: 40px;
}

/* --- POST CARD --- */
.likbez-post {
    display: flex;
    flex-direction: column;
    height: 100%;
    
    text-decoration: none;
    color: inherit;
    background-color: #2a2a2a; /* Сохраняем темный фон карточек */
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px; /* Golden Standard: Radius */
    
    overflow: hidden;
    position: relative;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.likbez-post:hover {
    transform: translateY(-5px);
    border-color: #666;
}

/* Media (Image/Video) */
.post-media {
    position: relative;
    width: 100%;
    background-color: #212121;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.post-media img,
.post-media video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

/* Затемнение картинки при наведении */
.post-media::after {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0);
    transition: background-color 0.4s ease;
}

.likbez-post:hover .post-media::after {
    background-color: rgba(0, 0, 0, 0.5);
}

/* Content */
.post-content {
    padding: 30px;
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Растягиваем контент */
}

.post-meta {
    font-size: 0.85rem;
    color: #a0a0a0;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.post-title {
    font-size: 1.5rem; /* Аккуратный размер для карточек */
    font-weight: 700;
    margin: 0 0 15px 0;
    color: #ffffff;
    line-height: 1.3;
}

.post-excerpt {
    font-size: 1rem;
    color: #b0b0b0;
    line-height: 1.7;
    margin-bottom: 25px;
}

/* Read More Button (Sticky Bottom) */
.post-read-more {
    margin-top: auto; /* Прижимаем к низу */
    align-self: center;
    
    padding: 12px 30px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px; /* Golden Standard: Pill */
    
    color: #fff;
    font-weight: 600;
    text-align: center;
    z-index: 2;
    transition: all 0.3s ease;
}

.likbez-post:hover .post-read-more {
    background: rgba(255, 255, 255, 0.2);
    border-color: #ffffff;
    transform: translateY(-3px);
}

/* --- BACKGROUNDS --- */
.page-background {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: -1;
    background-size: cover;
    background-position: center;
}

.page-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.7); 
}

/* --- SCROLLBAR --- */
.custom-scrollbar-track {
    position: fixed;
    top: 50px; bottom: 50px; right: 10px;
    width: 15px;
    z-index: 999;
}

.custom-scrollbar-thumb {
    position: absolute;
    left: 50%; transform: translateX(-50%);
    width: 9px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 5px;
    cursor: grab;
}

body.is-dragging,
body.is-dragging .custom-scrollbar-thumb {
    cursor: grabbing;
    user-select: none;
}

/* --- ADAPTIVE --- */
@media (max-width: 1024px) {
    .likbez-feed {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .likbez-header {
        padding: 120px 20px 60px 20px;
    }

    .likbez-header h1 { font-size: 2rem; } /* Golden Standard: Mobile H1 */
    .likbez-header p { font-size: 1rem; }

    .likbez-feed {
        grid-template-columns: 1fr;
        padding: 0 20px 80px 20px;
        gap: 30px;
    }
    
    .post-content { padding: 25px; }
    
    /* Убираем затемнение картинки на мобильных */
    .post-media::after { display: none; }
    .likbez-post:hover { transform: none; border-color: #444; }
}