/*
Theme Name: NBC News Theme
Theme URI: https://nbc.samael.my.id
Author: NBC Theme Developer
Author URI: https://nbc.samael.my.id
Description: A professional WordPress theme inspired by NBC News design with clean, modern layout and responsive design
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: nbc
Tags: news, magazine, responsive, featured-images, custom-menu, threaded-comments
*/

/* CSS Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --nbc-black: #000000;
    --nbc-white: #ffffff;
    --nbc-red: #d52b1e;
    --nbc-navy: #0b1f3a;
    --nbc-gray: #f5f5f5;
    --nbc-dark-gray: #333333;
    --nbc-light-gray: #e5e5e5;
    --nbc-text-gray: #666666;
    --nbc-border: #dcdcdc;
}

body {
    font-family: 'FoundersGroteskText', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--nbc-dark-gray);
    background-color: var(--nbc-white);
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--nbc-dark-gray);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--nbc-red);
}

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

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'FoundersGroteskText', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 0.5em;
    color: var(--nbc-black);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

/* Header Styles */
.site-header {
    background: linear-gradient(180deg, #0a1a33 0%, var(--nbc-navy) 100%);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 2px solid var(--nbc-red);
}

.header-top {
    background-color: var(--nbc-black);
    padding: 10px 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
}

.nbc-header-container {
    max-width: 1280px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
    gap: 18px;
}

.site-branding {
    display: flex;
    align-items: center;
}

.site-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 800;
    color: var(--nbc-white);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nbc-logo-mark {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #ffcc00 0%, #ff6a00 35%, #e6007a 65%, #3b82f6 100%);
    display: inline-block;
}

.nbc-logo-text {
    line-height: 1;
}

.site-logo svg {
    height: 40px;
    width: auto;
}

/* Navigation */
.main-navigation {
    display: flex;
    align-items: center;
}

.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 18px;
    align-items: center;
}

.nbc-nav {
    position: relative;
}

.main-navigation a {
    color: var(--nbc-white);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 10px 0;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.main-navigation a:hover,
.main-navigation .current-menu-item a {
    color: var(--nbc-white);
    border-bottom-color: var(--nbc-red);
}

.nbc-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nbc-watch {
    color: var(--nbc-white);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    padding: 10px 0;
}

.nbc-icon-btn {
    background: transparent;
    border: 0;
    color: var(--nbc-white);
    padding: 8px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.nbc-icon-btn:hover {
    color: rgba(255, 255, 255, 0.85);
}

/* Breaking News Bar */
.breaking-news-bar {
    background-color: var(--nbc-red);
    color: var(--nbc-white);
    padding: 10px 0;
    text-align: center;
    font-weight: 600;
    font-size: 14px;
}

/* Featured Section */
.featured-section {
    background-color: var(--nbc-gray);
    padding: 40px 0;
    margin-bottom: 40px;
}

/* NBC-like Homepage */
.nbc-home {
    padding: 26px 0 10px;
}

.nbc-home-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 32px;
    align-items: start;
}

.nbc-lead {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
    gap: 28px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--nbc-border);
    margin-bottom: 18px;
}

.nbc-kicker {
    color: var(--nbc-red);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.nbc-lead-title {
    font-size: 40px;
    line-height: 1.08;
    letter-spacing: -0.4px;
    margin-bottom: 12px;
}

.nbc-lead-title a {
    color: var(--nbc-black);
}

.nbc-lead-title a:hover {
    color: var(--nbc-black);
    text-decoration: underline;
    text-decoration-color: rgba(0,0,0,0.35);
}

.nbc-lead-dek {
    font-size: 14px;
    line-height: 1.5;
    color: var(--nbc-text-gray);
    margin-bottom: 12px;
}

.nbc-meta {
    font-size: 12px;
    color: var(--nbc-text-gray);
}

.nbc-lead-media img {
    width: 100%;
    height: auto;
    border-radius: 2px;
}

.nbc-media-placeholder {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: var(--nbc-light-gray);
}

.nbc-secondary {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 26px;
    margin-bottom: 18px;
}

.nbc-strip {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 18px;
    padding: 16px 0 22px;
    border-top: 1px solid var(--nbc-border);
    border-bottom: 1px solid var(--nbc-border);
    margin-bottom: 22px;
}

.nbc-card-media img {
    width: 100%;
    height: auto;
    border-radius: 2px;
    margin-bottom: 10px;
}

.nbc-card-title {
    font-size: 18px;
    line-height: 1.2;
    margin: 0 0 10px;
}

.nbc-card-title a {
    color: var(--nbc-black);
}

.nbc-card-title a:hover {
    color: var(--nbc-black);
    text-decoration: underline;
    text-decoration-color: rgba(0,0,0,0.35);
}

.nbc-card-dek {
    font-size: 13px;
    line-height: 1.5;
    color: var(--nbc-text-gray);
    margin: 0 0 10px;
}

.nbc-card--strip {
    display: grid;
    grid-template-columns: 86px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
}

.nbc-card-thumb img {
    width: 86px;
    height: 64px;
    object-fit: cover;
    border-radius: 2px;
}

.nbc-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 4px solid var(--nbc-black);
    padding-top: 12px;
    margin-bottom: 18px;
}

.nbc-section-title {
    font-size: 16px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin: 0;
}

.nbc-more-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.nbc-home-rail {
    border-left: 1px solid var(--nbc-border);
    padding-left: 22px;
}

.nbc-rail-module {
    padding-bottom: 22px;
    margin-bottom: 22px;
    border-bottom: 1px solid var(--nbc-border);
}

.nbc-rail-title {
    font-size: 14px;
    font-weight: 900;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    margin: 0 0 12px;
}

.nbc-rail-video-link {
    position: relative;
    display: block;
}

.nbc-play {
    position: absolute;
    left: 10px;
    bottom: 10px;
    width: 38px;
    height: 38px;
    border-radius: 6px;
    background: rgba(0,0,0,0.75);
}

.nbc-play::before {
    content: "";
    position: absolute;
    left: 15px;
    top: 11px;
    width: 0;
    height: 0;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-left: 12px solid #fff;
}

.nbc-rail-video-title {
    font-size: 16px;
    line-height: 1.25;
    margin: 10px 0 6px;
}

.nbc-latest {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nbc-latest-item {
    padding: 12px 0;
    border-top: 1px solid var(--nbc-border);
}

.nbc-latest-item:first-child {
    border-top: 0;
    padding-top: 0;
}

.nbc-latest-time {
    font-size: 11px;
    color: #4b5563;
    margin-bottom: 6px;
}

.nbc-latest-title {
    font-size: 13px;
    line-height: 1.3;
}

.nbc-latest-title a {
    color: var(--nbc-black);
}

.nbc-latest-title a:hover {
    text-decoration: underline;
    text-decoration-color: rgba(0,0,0,0.35);
}

.featured-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

.featured-main {
    position: relative;
}

.featured-main img {
    width: 100%;
    height: auto;
}

.featured-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0) 100%);
    padding: 30px;
    color: var(--nbc-white);
}

.featured-category {
    color: var(--nbc-red);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.featured-title {
    font-size: 2.5rem;
    color: var(--nbc-white);
    margin-bottom: 10px;
    line-height: 1.2;
}

.featured-excerpt {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    margin-bottom: 10px;
}

.featured-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.featured-sidebar-item {
    background-color: var(--nbc-white);
    padding: 15px;
    border-left: 3px solid var(--nbc-red);
}

.featured-sidebar-item img {
    width: 100%;
    margin-bottom: 10px;
}

.featured-sidebar-item h3 {
    font-size: 1.125rem;
    margin-bottom: 5px;
}

/* News Grid */
.news-section {
    padding: 40px 0;
}

.section-header {
    border-bottom: 3px solid var(--nbc-black);
    margin-bottom: 30px;
    padding-bottom: 10px;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.news-card {
    background-color: var(--nbc-white);
    border-bottom: 1px solid var(--nbc-border);
    padding-bottom: 20px;
    transition: transform 0.3s ease;
}

.news-card:hover {
    transform: translateY(-5px);
}

.news-card img {
    width: 100%;
    margin-bottom: 15px;
}

.news-category {
    color: var(--nbc-red);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    display: inline-block;
}

.news-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.4;
}

.news-title a {
    color: var(--nbc-black);
}

.news-title a:hover {
    color: var(--nbc-red);
}

.news-excerpt {
    color: var(--nbc-text-gray);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 10px;
}

.news-meta {
    font-size: 0.85rem;
    color: var(--nbc-text-gray);
}

/* Sidebar */
.sidebar {
    background-color: var(--nbc-gray);
    padding: 20px;
}

.sidebar-widget {
    margin-bottom: 30px;
}

.widget-title {
    font-size: 1.125rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--nbc-black);
}

/* Footer */
.site-footer {
    background-color: var(--nbc-black);
    color: var(--nbc-white);
    padding: 40px 0 20px;
    margin-top: 60px;
}

.footer-content {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 30px;
}

.footer-widget h3 {
    color: var(--nbc-white);
    font-size: 1rem;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-widget ul {
    list-style: none;
}

.footer-widget ul li {
    margin-bottom: 10px;
}

.footer-widget a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.footer-widget a:hover {
    color: var(--nbc-white);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 20px;
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
}

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

    .nbc-home-grid {
        grid-template-columns: 1fr;
    }

    .nbc-home-rail {
        border-left: 0;
        padding-left: 0;
    }

    .nbc-more-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .header-container {
        gap: 12px;
    }
    
    .main-navigation ul {
        display: none;
        position: absolute;
        left: 0;
        right: 0;
        top: 100%;
        background: linear-gradient(180deg, #0a1a33 0%, var(--nbc-navy) 100%);
        padding: 12px 20px;
        gap: 12px;
        flex-wrap: wrap;
    }

    .main-navigation.toggled ul {
        display: flex;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .featured-title {
        font-size: 1.75rem;
    }

    .nbc-lead {
        grid-template-columns: 1fr;
    }

    .nbc-lead-title {
        font-size: 30px;
    }

    .nbc-secondary {
        grid-template-columns: 1fr;
    }

    .nbc-strip {
        grid-template-columns: 1fr;
    }

    .nbc-more-grid {
        grid-template-columns: 1fr;
    }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}

.pt-40 {
    padding-top: 40px;
}

.pb-40 {
    padding-bottom: 40px;
}
