/*
 Theme Name: Read Next 2
 Theme URI: https://example.com/read-next-2
 Description: Dark accent theme for custom development
 Version: 1.0
 Author: Developer
 */

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Base */
body {
    font-family: 'Helvetica Neue', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.5;
    color: #222;
    background: #fafafa;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
}

/* Container */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-top {
    background: #fff;
    border-bottom: 1px solid #e0e0e0;
}

.header-top-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 40px;
}

.header-bottom {
    background: #1a1a1a;
    border-top: 2px solid #e53935;
}

.site-logo {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a1a;
    letter-spacing: -0.3px;
}

.header-search {
    display: flex;
    align-items: center;
    opacity: 0.5;
    cursor: default;
}

.site-nav {
    display: flex;
    align-items: center;
    height: 44px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 28px;
}

.nav-menu a {
    font-size: 14px;
    font-weight: 500;
    color: #999;
    transition: color 0.2s;
}

.nav-menu a:hover {
    color: #e53935;
}

/* Main Content */
.main-content {
    padding: 40px 0 60px;
}

.section-title {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #e53935;
    margin-bottom: 28px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e53935;
    display: inline-block;
}

/* News Grid */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.news-grid__post {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

/* News Card */
.news-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    display: flex;
    flex-direction: column;
    transition: border-color 0.2s;
}

.news-card:hover {
    border-color: #1a1a1a;
}

.news-card-image {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: #f5f5f5;
}

.news-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.news-card:hover .news-card-image img {
    transform: scale(1.03);
}

.news-card-category {
    position: absolute;
    top: 0;
    left: 0;
    background: #e53935;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 8px 14px;
}

.news-card-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.news-card-title {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
    color: #1a1a1a;
    margin-bottom: 16px;
}

.news-card-title:hover {
    color: #e53935;
}

.news-card-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #888;
    margin-top: auto;
}

.news-card-date {
    display: flex;
    align-items: center;
    gap: 4px;
}

.news-card-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 20px;
    font-size: 13px;
    font-weight: 600;
    color: #e53935;
    transition: color 0.2s;
}

.news-card-more:hover {
    color: #c62828;
}

.news-card-more svg {
    width: 14px;
    height: 14px;
    transition: transform 0.2s;
}

.news-card-more:hover svg {
    transform: translateX(3px);
}

.masonory-container {
    margin-top: 24px;
}

/* Footer */
.site-footer {
    background: #1a1a1a;
    padding: 40px 0;
    text-align: center;
}

.footer-content {
    color: #666;
    font-size: 13px;
}

/* Responsive */
@media (max-width: 900px) {
    .news-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

@media (max-width: 640px) {
    .header-top-inner {
        height: auto;
        padding: 12px 0;
    }

    .header-bottom {
        padding: 12px 0;
    }

    .nav-menu {
        gap: 20px;
    }

    .news-card-content {
        padding: 20px;
    }

    .news-card-title {
        font-size: 18px;
    }
}