/*!
Theme Name: FactMedia NBC Style
Description: Temă WordPress inspirată de design-ul NBC News pentru factmedia.ro
Version: 1.0
Author: FactMedia
*/

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

body {
    font-family: "FoundersGroteskWeb", "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: #333;
    background-color: #ffffff;
}

/* NBC Specific Variables */
:root {
    --nbc-red: #d83c3c;
    --nbc-blue: #006aff;
    --nbc-dark: #1e1e1e;
    --nbc-gray: #666666;
    --nbc-light-gray: #f5f5f5;
    --nbc-white: #ffffff;
    --nbc-border: #e6e6e6;
}

/* Typography NBC Style */
h1, h2, h3, h4, h5, h6 {
    font-family: "FoundersGroteskWeb", "Helvetica Neue", Arial, sans-serif;
    font-weight: 700;
    line-height: 1.2;
    color: var(--nbc-dark);
}

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

/* Container și Layout */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.col {
    padding: 0 15px;
}

/* Header NBC Style */
.site-header {
    background: var(--nbc-white);
    border-bottom: 1px solid var(--nbc-border);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.header-top {
    background: var(--nbc-red);
    color: var(--nbc-white);
    padding: 8px 0;
    font-size: 14px;
}

.header-top .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.breaking-news {
    font-weight: 700;
    text-transform: uppercase;
}

.header-main {
    padding: 15px 0;
}

.header-main .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo NBC Style */
.site-logo {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--nbc-red);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: -2px;
}

.site-logo:hover {
    color: var(--nbc-blue);
}

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

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu li {
    margin: 0 25px 0 0;
}

.nav-menu a {
    color: var(--nbc-dark);
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
    padding: 10px 0;
}

.nav-menu a:hover,
.nav-menu .current-menu-item a {
    color: var(--nbc-red);
    border-bottom: 2px solid var(--nbc-red);
}

/* Search Box NBC Style */
.header-search {
    position: relative;
}

.search-form {
    display: flex;
    background: var(--nbc-light-gray);
    border-radius: 25px;
    padding: 8px 20px;
    width: 300px;
}

.search-input {
    border: none;
    background: none;
    flex: 1;
    padding: 5px;
    font-size: 14px;
    outline: none;
}

.search-submit {
    border: none;
    background: none;
    color: var(--nbc-gray);
    cursor: pointer;
    font-size: 16px;
}

/* Main Content Area NBC Style */
.main-content {
    background: var(--nbc-white);
    padding: 40px 0;
}

/* Hero Section NBC Style */
.hero-section {
    margin-bottom: 40px;
}

.hero-main {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.hero-article {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.hero-article img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.hero-article:hover img {
    transform: scale(1.05);
}

.hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: var(--nbc-white);
    padding: 40px 30px 30px;
}

.hero-category {
    background: var(--nbc-red);
    color: var(--nbc-white);
    padding: 5px 12px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 3px;
    display: inline-block;
    margin-bottom: 15px;
}

.hero-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.3;
}

.hero-title a {
    color: var(--nbc-white);
    text-decoration: none;
}

.hero-excerpt {
    font-size: 16px;
    opacity: 0.9;
    line-height: 1.4;
}

/* Secondary Articles NBC Style */
.hero-secondary {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.secondary-article {
    display: flex;
    gap: 15px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--nbc-border);
}

.secondary-article:last-child {
    border-bottom: none;
}

.secondary-image {
    width: 120px;
    height: 80px;
    flex-shrink: 0;
    border-radius: 6px;
    overflow: hidden;
}

.secondary-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.secondary-content h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.3;
}

.secondary-content h3 a {
    color: var(--nbc-dark);
    text-decoration: none;
}

.secondary-content h3 a:hover {
    color: var(--nbc-red);
}

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

/* News Grid NBC Style */
.news-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    margin-top: 40px;
}

.main-news {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.news-card {
    background: var(--nbc-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.news-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

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

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

.news-content {
    padding: 20px;
}

.news-category {
    background: var(--nbc-blue);
    color: var(--nbc-white);
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 3px;
    display: inline-block;
    margin-bottom: 12px;
}

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

.news-title a {
    color: var(--nbc-dark);
    text-decoration: none;
}

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

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

.news-meta {
    font-size: 12px;
    color: var(--nbc-gray);
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Sidebar NBC Style */
.sidebar {
    background: var(--nbc-light-gray);
    padding: 30px;
    border-radius: 8px;
}

.sidebar-section {
    margin-bottom: 40px;
}

.sidebar-section:last-child {
    margin-bottom: 0;
}

.sidebar-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--nbc-dark);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--nbc-red);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.trending-list {
    list-style: none;
}

.trending-item {
    padding: 15px 0;
    border-bottom: 1px solid var(--nbc-border);
    display: flex;
    align-items: center;
    gap: 15px;
}

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

.trending-number {
    background: var(--nbc-red);
    color: var(--nbc-white);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
}

.trending-title {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
}

.trending-title a {
    color: var(--nbc-dark);
    text-decoration: none;
}

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

/* Footer NBC Style */
.site-footer {
    background: var(--nbc-dark);
    color: var(--nbc-white);
    padding: 50px 0 30px;
    margin-top: 60px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

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

.footer-links {
    list-style: none;
}

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

.footer-links a {
    color: #ccc;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

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

.footer-bottom {
    border-top: 1px solid #444;
    padding-top: 20px;
    text-align: center;
    font-size: 14px;
    color: #999;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .header-main .container {
        flex-direction: column;
        gap: 20px;
    }
    
    .nav-menu {
        flex-direction: column;
        gap: 10px;
    }
    
    .nav-menu li {
        margin: 0;
    }
    
    .search-form {
        width: 100%;
    }
    
    .hero-main {
        grid-template-columns: 1fr;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .main-news {
        grid-template-columns: 1fr;
    }
    
    .hero-title {
        font-size: 1.4rem;
    }
    
    .site-logo {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .hero-overlay {
        padding: 20px;
    }
    
    .news-content {
        padding: 15px;
    }
    
    .sidebar {
        padding: 20px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}

/* Animații și efecte NBC */
.fade-in {
    animation: fadeIn 0.6s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.slide-up {
    animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
    from { transform: translateY(30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Utilities */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-20 { margin-top: 20px; }
.mb-20 { margin-bottom: 20px; }
.pt-20 { padding-top: 20px; }
.pb-20 { padding-bottom: 20px; }

.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }

.btn {
    display: inline-block;
    padding: 12px 24px;
    background: var(--nbc-red);
    color: var(--nbc-white);
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background: var(--nbc-blue);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--nbc-red);
    color: var(--nbc-red);
}

.btn-outline:hover {
    background: var(--nbc-red);
    color: var(--nbc-white);
}
