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

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

/* Base */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f5f5f5;
}

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

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

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

/* Header */
.site-header {
    background: #fff;
    border-bottom: 1px solid #e5e5e5;
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 24px 0 16px;
    text-align: center;
}

.site-logo {
    display: block;
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
    letter-spacing: -0.5px;
    margin-bottom: 16px;
}

.site-nav {
    display: flex;
    justify-content: center;
}

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

.nav-menu a {
    font-size: 13px;
    font-weight: 500;
    color: #555;
    letter-spacing: 0.5px;
    transition: color 0.2s;
}

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

/* Main Content */
.main-content {
    padding: 32px 0 48px;
}

.section-title {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #888;
    margin-bottom: 24px;
}

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

/* News Card */
.news-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    transition: box-shadow 0.25s ease;
    border: 1px solid #f0f0f0;
}

.news-card:hover {
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

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

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

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

.news-card-category {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 6px 10px;
    border-radius: 6px;
    backdrop-filter: blur(4px);
}

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

.news-card-title {
    font-size: 17px;
    font-weight: 700;
    line-height: 1.35;
    color: #1a1a1a;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

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

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

.news-card-excerpt {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    margin-top: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card-more {
    display: block;
    margin-top: 16px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    background: #2563eb;
    border-radius: 8px;
    text-align: center;
    text-decoration: none;
    transition: background 0.2s;
}

.news-card-more:hover {
    background: #1d4ed8;
    color: #fff;
}

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

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

.footer-content {
    color: #888;
    font-size: 14px;
}

/* Responsive */
@media (max-width: 1000px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .site-header {
        padding: 16px 0 12px;
    }

    .nav-menu {
        gap: 16px;
    }

    .nav-menu a {
        font-size: 12px;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }

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

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