/*
Theme Name: ProjectLeon International
Theme URI: https://projectleon.org
Author: ProjectLeon Team
Author URI: https://projectleon.org
Description: Professional political analytics theme for ProjectLeon International.
Version: 3.1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: projectleon-intl
Tags: news, blog, politics, one-column, custom-logo, featured-images
Requires at least: 5.0
Tested up to: 6.7
*/

/* ============================================
   CSS VARIABLES
   ============================================ */
:root {
    --pl-navy: #0a1628;
    --pl-navy-light: #132240;
    --pl-navy-medium: #1a2d4d;
    --pl-gold: #c9a84c;
    --pl-gold-light: #e2c97e;
    --pl-gold-dark: #a88a3a;
    --pl-red: #c0392b;
    --pl-white: #ffffff;
    --pl-gray-50: #f8f9fa;
    --pl-gray-100: #f1f3f5;
    --pl-gray-200: #dee2e6;
    --pl-gray-500: #adb5bd;
    --pl-gray-700: #495057;
    --pl-gray-900: #212529;
    --pl-font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --pl-font-heading: 'Playfair Display', Georgia, serif;
    --pl-radius: 6px;
    --pl-radius-lg: 12px;
    --pl-shadow: 0 2px 8px rgba(0,0,0,0.08);
    --pl-shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
    --pl-transition: 0.2s ease;
}

/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--pl-font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--pl-gray-900);
    background: var(--pl-white);
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

/* ============================================
   LAYOUT
   ============================================ */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.grid { display: grid; gap: 1.5rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid-3 { grid-template-columns: 1fr; } }

/* ============================================
   BREAKING TICKER
   ============================================ */
.breaking-ticker {
    background: var(--pl-red);
    color: white;
    display: flex;
    align-items: center;
    overflow: hidden;
    height: 36px;
    font-size: 0.8125rem;
}
.breaking-ticker__label {
    background: rgba(0,0,0,0.3);
    padding: 0 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
    height: 100%;
    display: flex;
    align-items: center;
}
.breaking-ticker__content {
    display: flex;
    animation: ticker 30s linear infinite;
    white-space: nowrap;
}
.breaking-ticker__item { padding: 0 2rem; }
@keyframes ticker { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* ============================================
   HEADER
   ============================================ */
.site-header {
    background: var(--pl-navy);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}
.site-logo {
    display: flex;
    align-items: center;
    max-height: 70px;
    overflow: hidden;
}
.site-logo img,
.custom-logo {
    max-height: 50px;
    width: auto;
    height: auto;
    object-fit: contain;
}
.site-logo__text {
    font-family: var(--pl-font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--pl-white);
}
.site-logo__text span { color: var(--pl-gold); }

/* Navigation */
.main-nav__list {
    display: flex;
    gap: 0;
    align-items: center;
}
.main-nav__item { position: relative; }
.main-nav__link {
    color: rgba(255,255,255,0.85);
    font-size: 0.875rem;
    font-weight: 500;
    padding: 1.5rem 1rem;
    display: block;
    transition: color var(--pl-transition);
}
.main-nav__link:hover { color: var(--pl-gold); }
.main-nav__dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--pl-navy-light);
    border-radius: 0 0 var(--pl-radius) var(--pl-radius);
    min-width: 220px;
    padding: 0.5rem 0;
    box-shadow: var(--pl-shadow-lg);
    z-index: 100;
}
.main-nav__item:hover .main-nav__dropdown { display: block; }
.main-nav__dropdown li a {
    display: block;
    padding: 0.6rem 1.25rem;
    color: rgba(255,255,255,0.75);
    font-size: 0.8125rem;
    transition: all var(--pl-transition);
}
.main-nav__dropdown li a:hover {
    color: var(--pl-gold);
    background: rgba(255,255,255,0.03);
}

/* Header Actions */
.header-actions { display: flex; align-items: center; gap: 0.75rem; }
.search-toggle, .mobile-toggle {
    background: none;
    border: none;
    color: rgba(255,255,255,0.8);
    cursor: pointer;
    padding: 0.5rem;
    transition: color var(--pl-transition);
}
.search-toggle:hover, .mobile-toggle:hover { color: var(--pl-gold); }
.mobile-toggle { display: none; }
.live-indicator {
    background: var(--pl-red);
    color: white;
    font-size: 0.6875rem;
    font-weight: 700;
    padding: 0.25rem 0.75rem;
    border-radius: 3px;
    animation: pulse 2s infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.6; } }

@media (max-width: 900px) {
    .main-nav { display: none; }
    .mobile-toggle { display: block; }
    .main-nav.active {
        display: block;
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--pl-navy);
        padding: 2rem;
        overflow-y: auto;
        z-index: 999;
    }
    .main-nav.active .main-nav__list { flex-direction: column; align-items: flex-start; }
    .main-nav.active .main-nav__link { padding: 0.75rem 0; font-size: 1.125rem; }
    .main-nav.active .main-nav__dropdown {
        display: block;
        position: static;
        background: transparent;
        box-shadow: none;
        padding-left: 1rem;
    }
}

/* Search Overlay */
.search-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(10,22,40,0.97);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}
.search-overlay.active { display: flex; }
.search-overlay__close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: none;
    border: none;
    color: white;
    font-size: 2.5rem;
    cursor: pointer;
}
.search-overlay__inner { width: 100%; max-width: 600px; padding: 2rem; }
.search-overlay__input {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 2px solid var(--pl-gold);
    color: white;
    font-size: 1.5rem;
    padding: 1rem 0;
    outline: none;
    font-family: var(--pl-font-body);
}
.search-overlay__filters { margin-top: 1.5rem; display: flex; gap: 0.75rem; }
.search-filter-btn {
    background: rgba(255,255,255,0.1);
    border: none;
    color: rgba(255,255,255,0.7);
    padding: 0.5rem 1rem;
    border-radius: var(--pl-radius);
    cursor: pointer;
    font-size: 0.8125rem;
}
.search-filter-btn.active { background: var(--pl-gold); color: var(--pl-navy); }

/* ============================================
   HERO SECTION
   ============================================ */
.hero { padding: 2rem 0; background: var(--pl-gray-50); }
.hero__grid { display: grid; grid-template-columns: 2fr 1fr; gap: 1.5rem; }
@media (max-width: 900px) { .hero__grid { grid-template-columns: 1fr; } }
.hero__featured {
    display: block;
    position: relative;
    border-radius: var(--pl-radius-lg);
    overflow: hidden;
    background: var(--pl-navy);
}
.hero__featured-image { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.hero__featured-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    background: linear-gradient(transparent, rgba(10,22,40,0.95));
    color: white;
}
.hero__featured-category {
    display: inline-block;
    background: var(--pl-gold);
    color: var(--pl-navy);
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 0.2rem 0.6rem;
    border-radius: 3px;
    margin-bottom: 0.75rem;
}
.hero__featured-title {
    font-family: var(--pl-font-heading);
    font-size: 1.75rem;
    line-height: 1.3;
    margin-bottom: 0.5rem;
}
.hero__featured-excerpt { font-size: 0.875rem; opacity: 0.85; }
.hero__sidebar { display: flex; flex-direction: column; gap: 1rem; }
.hero__sidebar-item {
    display: block;
    padding: 1.25rem;
    background: white;
    border-radius: var(--pl-radius);
    border-left: 3px solid var(--pl-gold);
    transition: box-shadow var(--pl-transition);
}
.hero__sidebar-item:hover { box-shadow: var(--pl-shadow); }
.hero__sidebar-category {
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--pl-gold-dark);
    margin-bottom: 0.4rem;
}
.hero__sidebar-title {
    font-family: var(--pl-font-heading);
    font-size: 1rem;
    line-height: 1.4;
    margin-bottom: 0.3rem;
}
.hero__sidebar-meta { font-size: 0.75rem; color: var(--pl-gray-500); }

/* ============================================
   CONTENT PILLARS
   ============================================ */
.pillars { padding: 3rem 0; }
.pillars__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
@media (max-width: 900px) { .pillars__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .pillars__grid { grid-template-columns: 1fr; } }
.pillar-card {
    display: block;
    background: var(--pl-navy);
    border-radius: var(--pl-radius-lg);
    padding: 2rem 1.5rem;
    text-align: center;
    transition: transform var(--pl-transition), box-shadow var(--pl-transition);
    border: 1px solid rgba(201,168,76,0.15);
}
.pillar-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(10,22,40,0.3); }
.pillar-card__title {
    font-family: var(--pl-font-heading);
    font-size: 1.125rem;
    color: var(--pl-gold);
    margin-bottom: 0.75rem;
}
.pillar-card__desc { font-size: 0.8125rem; color: rgba(255,255,255,0.65); line-height: 1.5; }

/* ============================================
   SECTIONS
   ============================================ */
.articles-section, .video-section { padding: 3rem 0; }
.video-section { background: var(--pl-gray-50); }
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--pl-gray-100);
}
.section-header__title {
    font-family: var(--pl-font-heading);
    font-size: 1.5rem;
    color: var(--pl-navy);
}
.section-header__link { font-size: 0.875rem; font-weight: 600; }

/* ============================================
   ARTICLE CARDS
   ============================================ */
.article-card {
    display: flex;
    flex-direction: column;
    background: white;
    border-radius: var(--pl-radius-lg);
    overflow: hidden;
    box-shadow: var(--pl-shadow);
    transition: transform var(--pl-transition), box-shadow var(--pl-transition);
}
.article-card:hover { transform: translateY(-3px); box-shadow: var(--pl-shadow-lg); }
.article-card__image { position: relative; overflow: hidden; }
.article-card__image img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.article-card__play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 48px;
    height: 48px;
    background: var(--pl-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.article-card__body { padding: 1.25rem; flex: 1; display: flex; flex-direction: column; }
.article-card__category {
    display: inline-block;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--pl-gold-dark);
    margin-bottom: 0.5rem;
    letter-spacing: 0.03em;
}
.article-card__title {
    font-family: var(--pl-font-heading);
    font-size: 1.0625rem;
    line-height: 1.4;
    margin-bottom: 0.5rem;
    color: var(--pl-navy);
}
.article-card__excerpt {
    font-size: 0.8125rem;
    color: var(--pl-gray-700);
    line-height: 1.6;
    margin-bottom: 0.75rem;
    flex: 1;
}
.article-card__meta {
    display: flex;
    gap: 1rem;
    font-size: 0.75rem;
    color: var(--pl-gray-500);
}
.article-card__tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.75rem; }
.article-card__tag {
    display: inline-block;
    font-size: 0.6875rem;
    background: var(--pl-gray-100);
    color: var(--pl-gray-700);
    padding: 0.2rem 0.5rem;
    border-radius: 3px;
}

/* ============================================
   ARCHIVE
   ============================================ */
.archive-header {
    background: var(--pl-navy);
    padding: 3rem 0;
    color: white;
}
.archive-header__title {
    font-family: var(--pl-font-heading);
    font-size: 2rem;
    margin-bottom: 0.5rem;
}
.archive-header__desc { font-size: 0.9375rem; opacity: 0.75; margin-bottom: 0.5rem; }
.archive-header__count { font-size: 0.8125rem; opacity: 0.5; }
.archive-filters { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.5rem; }
.archive-filter {
    padding: 0.5rem 1rem;
    border-radius: var(--pl-radius);
    font-size: 0.8125rem;
    font-weight: 500;
    background: var(--pl-gray-100);
    color: var(--pl-gray-700);
    transition: all var(--pl-transition);
}
.archive-filter:hover, .archive-filter.active {
    background: var(--pl-gold);
    color: var(--pl-navy);
}

/* ============================================
   SINGLE ARTICLE
   ============================================ */
.single-article {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1.5rem 4rem;
}
.single-article__breadcrumb {
    font-size: 0.8125rem;
    color: var(--pl-gray-500);
    margin-bottom: 1.5rem;
}
.single-article__breadcrumb a { color: var(--pl-gold-dark); }
.single-article__breadcrumb span { margin: 0 0.4rem; }
.single-article__title {
    font-family: var(--pl-font-heading);
    font-size: 2.25rem;
    line-height: 1.25;
    color: var(--pl-navy);
    margin-bottom: 1rem;
}
.single-article__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    font-size: 0.8125rem;
    color: var(--pl-gray-500);
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--pl-gray-200);
}
.single-article__content {
    font-size: 1.0625rem;
    line-height: 1.85;
    color: var(--pl-gray-700);
}
.single-article__content p { margin-bottom: 1.5rem; }
.single-article__content h2, .single-article__content h3 {
    font-family: var(--pl-font-heading);
    color: var(--pl-navy);
    margin: 2rem 0 1rem;
}
.single-article__content blockquote {
    border-left: 4px solid var(--pl-gold);
    padding: 1rem 1.5rem;
    margin: 2rem 0;
    background: var(--pl-gray-50);
    border-radius: 0 var(--pl-radius) var(--pl-radius) 0;
    font-style: italic;
    color: var(--pl-gray-700);
}

/* ============================================
   SHARE BUTTONS
   ============================================ */
.share-buttons {
    display: flex;
    gap: 0.75rem;
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--pl-gray-200);
}
.share-btn {
    display: inline-block;
    padding: 0.6rem 1.25rem;
    border-radius: var(--pl-radius);
    font-size: 0.8125rem;
    font-weight: 600;
    transition: opacity var(--pl-transition);
    border: none;
    cursor: pointer;
}
.share-btn:hover { opacity: 0.85; }
.share-btn--x { background: #000; color: white; }
.share-btn--telegram { background: #0088cc; color: white; }

/* ============================================
   NEWSLETTER CTA
   ============================================ */
.newsletter-cta {
    background: var(--pl-navy);
    padding: 4rem 0;
    text-align: center;
}
.newsletter-cta__title {
    font-family: var(--pl-font-heading);
    font-size: 1.75rem;
    color: var(--pl-gold);
    margin-bottom: 0.75rem;
}
.newsletter-cta__desc { color: rgba(255,255,255,0.7); margin-bottom: 2rem; max-width: 500px; margin-left: auto; margin-right: auto; }
.newsletter-form { display: flex; max-width: 450px; margin: 0 auto; gap: 0; }
.newsletter-form__input {
    flex: 1;
    padding: 0.875rem 1.25rem;
    border: 1px solid rgba(255,255,255,0.15);
    border-right: none;
    border-radius: var(--pl-radius) 0 0 var(--pl-radius);
    background: rgba(255,255,255,0.05);
    color: white;
    font-size: 0.875rem;
    outline: none;
}
.newsletter-form__btn {
    padding: 0.875rem 1.5rem;
    background: var(--pl-gold);
    color: var(--pl-navy);
    border: none;
    border-radius: 0 var(--pl-radius) var(--pl-radius) 0;
    font-weight: 700;
    font-size: 0.875rem;
    cursor: pointer;
    transition: background var(--pl-transition);
}
.newsletter-form__btn:hover { background: var(--pl-gold-light); }

/* ============================================
   FOOTER
   ============================================ */
.site-footer { background: #060d18; padding: 4rem 0 0; color: rgba(255,255,255,0.7); }
.footer-main { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; padding-bottom: 3rem; }
@media (max-width: 900px) { .footer-main { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .footer-main { grid-template-columns: 1fr; } }
.footer-brand__desc { font-size: 0.8125rem; line-height: 1.6; margin-top: 1rem; }
.footer-social { display: flex; gap: 0.75rem; margin-top: 1.25rem; }
.footer-social__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.08);
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: 700;
    color: rgba(255,255,255,0.8);
    transition: all var(--pl-transition);
}
.footer-social__link:hover { background: var(--pl-gold); color: var(--pl-navy); }
.footer-col__title {
    font-size: 0.875rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.footer-col__list li { margin-bottom: 0.6rem; }
.footer-col__list li a { font-size: 0.8125rem; transition: color var(--pl-transition); }
.footer-col__list li a:hover { color: var(--pl-gold); }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.06);
    padding: 1.5rem 0;
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    opacity: 0.5;
}

/* ============================================
   PAGINATION
   ============================================ */
.pagination { margin-top: 2rem; display: flex; justify-content: center; gap: 0.5rem; }
.pagination a, .pagination span {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: var(--pl-radius);
    font-size: 0.875rem;
    background: var(--pl-gray-100);
}
.pagination .current { background: var(--pl-gold); color: var(--pl-navy); font-weight: 600; }

/* ============================================
   ERROR 404
   ============================================ */
.error-404 { text-align: center; padding: 6rem 2rem; }
.error-404 h1 { font-size: 5rem; color: var(--pl-gold); font-family: var(--pl-font-heading); }
.error-404 p { margin: 1rem 0 2rem; color: var(--pl-gray-500); }
.error-404 a { color: var(--pl-gold-dark); font-weight: 600; }

/* ============================================
   BACK TO TOP
   ============================================ */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 44px;
    height: 44px;
    background: var(--pl-gold);
    color: var(--pl-navy);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: var(--pl-shadow-lg);
    z-index: 500;
    transition: opacity var(--pl-transition);
}
.back-to-top.visible { display: flex; }
