/* ============================================
   Home Page - Snob.ru Style
   Профессиональная верстка в стиле snob.ru
   ============================================ */

/* Основная сетка - точное соответствие snob.ru */
.snob-layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 40px;
    padding: 40px 0;
    max-width: 1200px;
    margin: 0 auto;
}

/* Блок ЛЕНТА - точная копия snob.ru */
.snob-lenta-column {
    background: transparent;
    padding: 0;
    height: fit-content;
    position: sticky;
    top: 20px;
}

.latest-content {
    display: flex;
    flex-direction: column;
}

.latest-content__header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e5e5e5;
}

.latest-content__header__mark {
    width: 3px;
    height: 18px;
    background: #000000;
    border-radius: 0;
    flex-shrink: 0;
}

.latest-content__header__text {
    font-size: 11px;
    font-weight: 600;
    color: #000000;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.latest-content__items {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.latest-content-item {
    display: flex;
    flex-direction: column;
    padding: 16px 0;
    border-bottom: 1px solid #f0f0f0;
    text-decoration: none;
    transition: background-color 0.2s ease;
    cursor: pointer;
}

.latest-content-item:last-child {
    border-bottom: none;
}

.latest-content-item:hover {
    background-color: #fafafa;
    padding-left: 8px;
    padding-right: 8px;
    margin-left: -8px;
    margin-right: -8px;
    border-radius: 4px;
}

.latest-content-item__theme {
    font-size: 10px;
    font-weight: 500;
    text-transform: lowercase;
    letter-spacing: 0.3px;
    margin-bottom: 8px;
    padding: 2px 6px;
    border-radius: 2px;
    display: inline-block;
    width: fit-content;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.latest-content-item__theme-material {
    background-color: transparent;
    color: #666666;
}

.latest-content-item__theme-blogs {
    background-color: transparent;
    color: #666666;
}

.latest-content-item__text {
    font-size: 14px;
    line-height: 1.5;
    color: #000000;
    font-weight: 400;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.latest-content-item:hover .latest-content-item__text {
    color: #000000;
}

/* Блок статей с карточками - точная копия snob.ru */
.snob-articles-column {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.main-page__tgb-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.content-item {
    position: relative;
    display: flex;
    flex-direction: column;
    border-radius: 0;
    overflow: hidden;
    text-decoration: none;
    background: #ffffff;
    transition: opacity 0.2s ease;
    min-height: 420px;
    border: 1px solid #f0f0f0;
}

.content-item:hover {
    opacity: 0.9;
}

.content-item__image {
    width: 100%;
    height: 280px;
    background-image: var(--bg-image);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    flex-shrink: 0;
}

.content-item__image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.15) 100%);
}

.content-item__text {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    background: #ffffff;
}

.content-item__text__wide-card {
    margin-bottom: 12px;
}

.content-item__text__theme {
    font-size: 10px;
    font-weight: 500;
    text-transform: lowercase;
    letter-spacing: 0.3px;
    padding: 0;
    border-radius: 0;
    display: inline-block;
    width: fit-content;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.content-item__text__theme--editorial {
    background-color: transparent;
    color: #666666;
}

.content-item__text__title {
    font-size: 18px;
    font-weight: 500;
    line-height: 1.4;
    color: #000000;
    margin-bottom: 12px;
    flex-grow: 1;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.content-item__text__info {
    font-size: 12px;
    color: #999999;
    margin-top: auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* Дополнительные стили для соответствия snob.ru */
.main-content-snob {
    background: #ffffff;
    min-height: 100vh;
    padding: 0;
}

.main-content-snob .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

@media (max-width: 768px) {
    .main-content-snob .container {
        padding: 0 20px;
    }
}

.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #999999;
    font-size: 14px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* Responsive - адаптация под snob.ru */
@media (max-width: 1024px) {
    .snob-layout {
        grid-template-columns: 280px 1fr;
        gap: 30px;
        padding: 30px 0;
    }

    .main-page__tgb-row {
        gap: 16px;
    }

    .content-item {
        min-height: 380px;
    }

    .content-item__image {
        height: 240px;
    }
}

@media (max-width: 968px) {
    .snob-layout {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 30px 0;
    }

    .snob-lenta-column {
        position: static;
        order: 2;
    }

    .snob-articles-column {
        order: 1;
    }

    .main-page__tgb-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .content-item {
        min-height: 400px;
    }

    .content-item__image {
        height: 280px;
    }
}

@media (max-width: 640px) {
    .snob-layout {
        padding: 20px 0;
        gap: 24px;
    }

    .latest-content__header {
        margin-bottom: 20px;
        padding-bottom: 10px;
    }

    .latest-content-item {
        padding: 14px 0;
    }

    .latest-content-item:hover {
        padding-left: 6px;
        padding-right: 6px;
        margin-left: -6px;
        margin-right: -6px;
    }

    .content-item {
        min-height: 360px;
        border: none;
        border-bottom: 1px solid #f0f0f0;
    }

    .content-item__image {
        height: 220px;
    }

    .content-item__text {
        padding: 16px 0;
    }

    .content-item__text__title {
        font-size: 16px;
        margin-bottom: 10px;
    }

    .content-item__text__info {
        font-size: 11px;
    }

    .main-page__tgb-row {
        gap: 0;
        margin-bottom: 30px;
    }
}

@media (max-width: 480px) {
    .snob-layout {
        padding: 16px 0;
    }

    .latest-content__header__text {
        font-size: 10px;
    }

    .latest-content-item__text {
        font-size: 13px;
    }

    .content-item {
        min-height: 320px;
    }

    .content-item__image {
        height: 200px;
    }

    .content-item__text__title {
        font-size: 15px;
    }
}

