/*
 Theme Name:   GP Blocks Child
 Theme URI:    https://samtigis.com
 Description:  GeneratePress Child Theme with News Style Hardcoded Layout.
 Author:       Samtigis
 Author URI:   https://samtigis.com
 Template:     generatepress
 Version:      1.1.0
 Text Domain:  gp-blocks-child
*/

:root {
    /* News Style Design Tokens */
    --news-primary: #1a1a1a;
    --news-accent: #e53e3e;
    /* News Red */
    --news-surface: #ffffff;
    --news-surface-alt: #f7fafc;
    --news-text-main: #2d3748;
    --news-text-muted: #718096;
    --news-border-color: #edf2f7;

    /* Layout Tokens */
    --container-width-standard: 1200px;
    --container-width-wide: 1440px;
    --container-width-compact: 800px;
    --gap-sm: 10px;
    --gap-md: 20px;
    --gap-lg: 30px;

    /* Shadows */
    --news-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --news-transition: all 0.2s ease-in-out;
}

/* News Container Variations */
.news-container.style-standard {
    max-width: var(--container-width-standard);
}

.news-container.style-wide {
    max-width: var(--container-width-wide);
}

.news-container.style-compact {
    max-width: var(--container-width-compact);
}

.news-container {
    margin: 0 auto;
    padding: 0 var(--gap-md);
    width: 100%;
}

/* Model: Grid Focus */
.news-grid-focus {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

/* Model: Modern Minimal */
.news-grid-modern {
    grid-template-columns: 1fr;
    max-width: 900px;
    margin: 0 auto;
}

.news-grid-modern .news-card {
    display: flex;
    gap: 30px;
    border: none;
    background: transparent;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--news-border-color);
}

.news-grid-modern .news-card-image {
    width: 250px;
    padding-top: 150px;
    flex-shrink: 0;
}

@media (max-width: 600px) {
    .news-grid-modern .news-card {
        flex-direction: column;
    }

    .news-grid-modern .news-card-image {
        width: 100%;
    }
}


/* Grid System */
.news-grid {
    display: grid;
    gap: var(--gap-lg);
}

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

@media (max-width: 768px) {
    .news-grid-hero {
        grid-template-columns: 1fr;
    }
}

/* Post Cards */
.news-card {
    position: relative;
    overflow: hidden;
    background: var(--news-surface);
    border: 1px solid var(--news-border-color);
    transition: var(--news-transition);
}

.news-card:hover {
    box-shadow: var(--news-shadow);
    border-color: var(--news-accent);
}

.news-card-image {
    position: relative;
    padding-top: 56.25%;
    /* 16:9 */
    background-color: #eee;
    overflow: hidden;
}

.news-card-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--news-transition);
}

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

.news-card-content {
    padding: var(--gap-md);
}

/* Featured Badge */
.news-badge {
    display: inline-block;
    padding: 2px 8px;
    background: var(--news-accent);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 2px;
    margin-bottom: 10px;
}

/* Typography */
.news-title {
    font-family: inherit;
    font-weight: 800;
    line-height: 1.25;
    margin: 0 0 10px;
    color: var(--news-primary);
}

.news-card-large .news-title {
    font-size: 2rem;
}

.news-card-small .news-title {
    font-size: 1.1rem;
}

.news-meta {
    font-size: 0.8rem;
    color: var(--news-text-muted);
}

/* Overlay Style */
.news-card-overlay {
    background: var(--news-primary);
    color: #fff;
}

.news-card-overlay .news-card-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.8) 100%);
}

.news-card-overlay .news-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 2;
}

.news-card-overlay .news-title {
    color: #fff;
}

/* Exclusive Sidebar Components */
.sidebar-block {
    background: #fff;
    padding: var(--gap-lg);
    border-radius: 12px;
    border: 1px solid var(--news-border-color);
    margin-bottom: var(--gap-lg);
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}

.sidebar-title {
    font-family: inherit;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
    margin-bottom: var(--gap-md);
    color: var(--mb-accent, var(--news-accent));
    border-bottom: 2px solid var(--mb-accent, var(--news-accent));
    display: inline-block;
    padding-bottom: 4px;
}

.mini-post-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.mini-post-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding-bottom: 15px;
    border-bottom: 1px dashed var(--news-border-color);
    text-decoration: none !important;
}

.mini-post-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.mini-post-item img {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}

.mini-post-data {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mini-cat {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--mb-accent, var(--news-accent));
}

.mini-title {
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.3;
    margin: 0;
    color: var(--news-primary);
}

.cat-pill {
    display: inline-flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: #f1f5f9;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--news-text-main);
    width: 100%;
    margin-bottom: 8px;
    transition: var(--news-transition);
    text-decoration: none !important;
}

.cat-pill:hover {
    background: var(--mb-accent, var(--news-accent));
    color: #fff;
}

.cat-pill .count {
    font-size: 0.75rem;
    opacity: 0.6;
}

/* Exclusive Grid System */
.mb-grid-system {
    display: grid;
    gap: 40px;
}

.mb-col-1 { grid-template-columns: 1fr; }
.mb-col-2 { grid-template-columns: 3fr 1fr; }
.mb-col-3 { grid-template-columns: 1fr 3fr 1fr; }

@media (max-width: 1024px) {
    .mb-col-2, .mb-col-3 {
        grid-template-columns: 1fr;
    }
    
    .exclusive-sidebar-left {
        order: 2;
    }
    .exclusive-main-content {
        order: 1;
    }
    .exclusive-sidebar-right {
        order: 3;
    }
}