/*
Theme Name: LaFileu
Theme URI: https://github.com/lafileu/
Description: Temă WordPress sportivă modernă, rapidă și scalabilă.
Author: LaFileu Expert
Author URI: https://lafileu.ro/
Version: 1.1.0
Text Domain: lafileu-theme
*/

/* 🎨 Modern UI/UX: White & Green Focus */
:root {
    --primary-color: #28A745;      /* New Sport Green */
    --primary-hover: #218838;
    --bg-color: #ffffff;           /* Pure White */
    --secondary-bg: #f4f7f6;       /* Light Gray-Green tint */
    --text-main: #2F2F2F;          /* Modern Dark Gray */
    --text-muted: #808e9b;
    --accent-color: #ff3f34;       /* Breaking News Red */
    --card-shadow: 0 10px 30px rgba(0,0,0,0.05);
    --border-radius: 12px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--secondary-bg);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Header Modern --- */
.site-header {
    background: var(--primary-color);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Poppins', sans-serif;
    font-size: 2.8rem;
    font-weight: 900;
    letter-spacing: -2px;
    text-transform: uppercase;
    color: #fff;
}

.logo span {
    color: #fff;
    opacity: 0.9;
}

/* Menu Toggle (Hamburger) */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 2001;
}

.menu-toggle span {
    display: block;
    width: 30px;
    height: 3px;
    background: #fff;
    border-radius: 3px;
    transition: 0.3s;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 35px;
    align-items: center;
}

nav ul li a {
    font-weight: 800;
    font-size: 1.4rem;
    color: #fff;
    text-transform: uppercase;
    position: relative;
    padding: 5px 0;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #fff;
    transition: width 0.3s ease;
}

nav ul li a:hover {
    color: #fff;
}

nav ul li a:hover::after {
    width: 100%;
}

.search-trigger {
    color: #fff;
}

.mobile-search-trigger {
    display: none; /* Ascuns pe desktop */
}

/* --- Breaking News Bar --- */
.breaking-news {
    background: #fff;
    border-bottom: 1px solid #f1f5f9;
    padding: 10px 0;
    font-size: 0.85rem;
}

.breaking-label {
    background: var(--accent-color);
    color: #fff;
    padding: 3px 12px;
    font-weight: 900;
    text-transform: uppercase;
    border-radius: 6px;
    margin-right: 20px;
    box-shadow: 0 4px 10px rgba(255, 63, 52, 0.2);
    display: flex;
    align-items: center;
    gap: 8px;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: #fff;
    border-radius: 50%;
    display: inline-block;
    animation: pulse-animation 1.5s infinite;
}

@keyframes pulse-animation {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(255, 255, 255, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    }
}

/* --- Responsive Menu --- */
@media (max-width: 992px) {
    .menu-toggle {
        display: flex;
    }

    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: var(--primary-color);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: 0.4s cubic-bezier(0.77,0.2,0.05,1.0);
        z-index: 2000;
    }

    nav.active {
        right: 0;
    }

    nav ul {
        flex-direction: column;
        gap: 30px;
    }

    nav ul li a {
        font-size: 1.8rem;
    }

    .header-actions {
        display: none !important;
    }

    .mobile-search-trigger {
        display: flex;
        margin-top: 40px;
        cursor: pointer;
    }

    /* Fix Breaking News on mobile */
    .breaking-news .container {
        flex-wrap: nowrap;
        gap: 10px;
    }
    
    .breaking-label {
        font-size: 0.7rem;
        padding: 2px 8px;
        margin-right: 5px;
        flex-shrink: 0;
    }

    marquee {
        flex: 1;
    }
    
    .hero-article {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .hero-image {
        height: 300px;
    }

    .hero-content h1 {
        font-size: 2rem;
    }
    
    .logo {
        font-size: 1.8rem;
    }

    .articles-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* --- Hero Section Clean --- */
.hero {
    background: var(--bg-color);
    padding: 60px 0;
    margin-bottom: 40px;
}

.hero-article {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 50px;
    align-items: center;
    position: relative; /* For stretched-link */
}

.hero-image {
    height: 500px;
    background-size: cover;
    background-position: center;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.hero-article {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.hero-article:hover,
.article-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(40, 167, 69, 0.15) !important;
}

.hero-article:hover h1 a {
    color: var(--primary-color) !important;
}

.hero-content h1 a {
    transition: color 0.3s ease;
    color: var(--text-main);
}

.entry-content h2 {
    color: var(--primary-color);
    font-weight: 800;
    margin-top: 40px;
    margin-bottom: 20px;
}

.entry-content h2:not(:first-of-type) {
    border-top: 1px solid rgba(0,0,0,0.05);
    padding-top: 40px;
    margin-top: 50px;
}

.entry-content p {
    margin-bottom: 25px;
}

.entry-footer {
    margin-top: 80px;
    padding-top: 0;
    border-top: none !important;
}

.hero-content h1 a {
    transition: color 0.3s ease;
    color: var(--text-main);
}

/* --- Category Badges --- */
.category-badge {
    display: inline-block;
    padding: 5px 14px;
    background: var(--primary-color);
    color: #fff !important;
    text-transform: uppercase;
    font-size: 0.65rem;
    font-weight: 800;
    border-radius: 6px;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.badge-fotbal { background-color: #2ecc71 !important; }
.badge-baschet { background-color: #f39c12 !important; }
.badge-tenis { background-color: #3498db !important; }
.badge-altele { background-color: #7f8c8d !important; }

/* --- Grid & Cards --- */
.section-title {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--text-main);
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: -1px;
}

/* Ascundem titlul de sectiune DOAR pe prima pagina conform cerintei anterioare */
.home .section-title {
    display: none;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.article-card {
    background: var(--bg-color);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
    border: 1px solid #f1f5f9;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    max-width: 400px; /* Impiedica cardul sa devina urias cand e singur */
}

.stretched-link::after {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1;
    content: "";
}

/* --- Search Overlay --- */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(47, 47, 47, 0.98);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
}

.search-overlay.active {
    display: flex;
}

.search-form-container {
    width: 90%;
    max-width: 600px;
    position: relative;
}

.search-form-container input {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 4px solid #fff;
    color: #fff;
    font-size: 2.5rem;
    font-weight: 800;
    padding: 10px 0;
    outline: none;
}

.search-close {
    position: absolute;
    top: 40px;
    right: 40px;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    font-weight: 900;
}

.article-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    background-size: cover;
    background-position: center;
    background-color: #f8f9fa;
    transition: transform 0.5s ease;
}

.article-card:hover .article-image {
    transform: scale(1.05);
}

.article-info {
    padding: 20px;
}

.article-info h3 {
    margin: 10px 0;
    font-size: 1.3rem;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.5px;
}

.article-info h3 a,
.article-info h4 a {
    color: var(--text-main) !important;
    transition: color 0.3s ease;
}

.article-card:hover h3 a,
.article-card:hover h4 a {
    color: var(--primary-color) !important;
}

.article-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 600;
    margin-top: 15px;
}

/* --- Footer --- */
footer {
    background: var(--bg-color);
    padding: 60px 0;
    text-align: center;
}

.footer-social {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.footer-social a {
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.9rem;
}

.footer-social a:hover {
    color: #fff;
}

/* --- Responsive --- */
@media (max-width: 992px) {
    .hero-article {
        grid-template-columns: 1fr;
    }
    .hero-content h1 {
        font-size: 2rem;
    }
    .hero-image {
        height: 300px;
    }
}
