/*
Theme Name: Foxiz Pro - BayHaber Capital Luxury
Theme URI: https://bayhaber.com/
Author: Antigravity / Urunveri
Author URI: https://urunveri.com/
Description: Awwwards-Grade 1:1 Pixel-Perfect Replica of Foxiz Capital Post with Broadsheet 3-Column Asymmetry, Playfair Display 800 Typography, Double-Slash Meta, and Integrated 14 AI Share Module.
Version: 4.0.0
License: GNU General Public License v2 or later
Text Domain: foxiz-bayhaber
*/

:root {
    --primary: #c8102e;          /* Foxiz Capital Crimson */
    --primary-dark: #9b0018;
    --primary-light: rgba(200, 16, 46, 0.08);
    --navy-dark: #020425;        /* Foxiz Deep Broadsheet Navy */
    
    --bg-body: #ffffff;
    --bg-card: #ffffff;
    --bg-card-subtle: #f8fafc;
    --bg-box: #f1f5f9;
    
    --text-main: #020425;
    --text-secondary: #334155;
    --text-muted: #64748b;
    --text-subtle: #94a3b8;
    
    --border-color: #e2e8f0;
    --border-light: #f1f5f9;
    --border-dark: #020425;
    
    --font-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-body: 'Google Sans', 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    
    --radius-card: 0px;          /* Luxury Broadsheet Crisp 0px Edges */
    --radius-img: 4px;
    --radius-pill: 3px;
    
    --shadow-soft: 0 4px 20px rgba(2, 4, 37, 0.05);
}

[data-theme="dark"] {
    --bg-body: #070913;
    --bg-card: #0d1122;
    --bg-card-subtle: #141a30;
    --bg-box: #1a223d;
    
    --text-main: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --text-subtle: #64748b;
    
    --border-color: #1e293b;
    --border-light: #162035;
    --border-dark: #334155;
    --shadow-soft: 0 4px 24px rgba(0, 0, 0, 0.5);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.65;
    font-size: 14px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background-color 0.2s ease, color 0.2s ease;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.15s ease;
}
a:hover {
    color: var(--primary);
}

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

.container {
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ==========================================================================
   1. TOP NAVIGATION BAR (Foxiz Capital Clean Broadsheet Top Bar)
   ========================================================================== */
.top-bar {
    background: var(--bg-body);
    border-bottom: 1px solid var(--border-color);
    padding: 9px 0;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--text-muted);
}
.top-bar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.top-bar-left {
    display: flex;
    align-items: center;
    gap: 20px;
}
.top-bar-right {
    display: flex;
    align-items: center;
    gap: 16px;
}
.market-ticker-item {
    font-weight: 600;
    font-size: 11px;
}
.market-ticker-item strong {
    font-weight: 800;
    margin-left: 2px;
}
.dark-mode-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 3px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}
.dark-mode-btn:hover {
    background: var(--text-main);
    color: var(--bg-body);
}

/* ==========================================================================
   2. MAIN HEADER (Foxiz Capital Masthead & Broadsheet Logo)
   ========================================================================== */
.masthead-wrap {
    background: var(--bg-body);
    border-bottom: 1px solid var(--border-color);
    padding: 26px 0 20px 0;
}
.masthead-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.masthead-brand {
    text-align: left;
}
.masthead-logo {
    font-family: var(--font-heading);
    font-size: 46px;
    font-weight: 900;
    letter-spacing: -1.5px;
    line-height: 1;
    color: var(--text-main);
    text-transform: uppercase;
}
.masthead-logo .red-dot {
    color: var(--primary);
}
.masthead-tagline {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-top: 6px;
    display: block;
}

.masthead-nav-bar {
    border-top: 2px solid var(--border-dark);
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-body);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}
.nav-bar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.main-nav-list {
    display: flex;
    align-items: center;
    gap: 28px;
    list-style: none;
}
.main-nav-list a {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-main);
    padding: 14px 0;
    display: block;
    position: relative;
    letter-spacing: 0.2px;
}
.main-nav-list a:hover {
    color: var(--primary);
}
.main-nav-list a::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.2s cubic-bezier(0.25, 1, 0.5, 1);
}
.main-nav-list a:hover::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}
.search-trigger-icon {
    background: transparent;
    border: none;
    color: var(--text-main);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
}

/* ==========================================================================
   3. FLASH TRENDING BAR
   ========================================================================== */
.flash-bar {
    background: var(--bg-card-subtle);
    border-bottom: 1px solid var(--border-color);
    padding: 8px 0;
    font-size: 12.5px;
}
.flash-inner {
    display: flex;
    align-items: center;
    gap: 14px;
}
.flash-badge {
    background: var(--primary);
    color: #ffffff;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    padding: 2px 8px;
    border-radius: 2px;
    flex-shrink: 0;
}
.flash-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 600;
    color: var(--text-secondary);
}

/* ==========================================================================
   4. FOXIZ 6-CATEGORY CARDS STRIP (Block 5)
   ========================================================================== */
.category-strip-section {
    padding: 24px 0 16px 0;
}
.category-strip-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
}
@media (max-width: 1024px) { .category-strip-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .category-strip-grid { grid-template-columns: repeat(2, 1fr); } }

.cbox-card {
    position: relative;
    height: 70px;
    border-radius: var(--radius-img);
    overflow: hidden;
    background: #020425;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-soft);
}
.cbox-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.45;
    transition: transform 0.4s ease, opacity 0.4s ease;
}
.cbox-card:hover img {
    transform: scale(1.08);
    opacity: 0.65;
}
.cbox-title {
    position: relative;
    z-index: 2;
    color: #ffffff;
    font-size: 12.5px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-shadow: 0 1px 4px rgba(0,0,0,0.8);
}

/* ==========================================================================
   5. FOXIZ CAPITAL 3-COLUMN ASYMMETRIC HERO SECTION (Awwwards Core)
   ========================================================================== */
.hero-capital-section {
    padding: 24px 0 36px 0;
    border-bottom: 1px solid var(--border-color);
}
.hero-capital-grid {
    display: grid;
    grid-template-columns: 1.35fr 0.95fr 0.7fr;
    gap: 24px;
}
@media (max-width: 1100px) {
    .hero-capital-grid { grid-template-columns: 1.4fr 1fr; }
    .hero-col-3 { display: none; }
}
@media (max-width: 800px) {
    .hero-capital-grid { grid-template-columns: 1fr; }
}

/* Column Dividers */
.hero-col-1 {
    border-right: 1px solid var(--border-color);
    padding-right: 24px;
}
.hero-col-2 {
    border-right: 1px solid var(--border-color);
    padding-right: 24px;
}
@media (max-width: 800px) {
    .hero-col-1, .hero-col-2 { border-right: none; padding-right: 0; }
}

/* Big Hero Post (Col 1) */
.big-hero-post {
    display: flex;
    flex-direction: column;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}
.big-hero-media {
    position: relative;
    width: 100%;
    padding-top: 60%;
    border-radius: var(--radius-img);
    overflow: hidden;
    background: #020425;
    margin-bottom: 14px;
}
.big-hero-media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}
.big-hero-post:hover .big-hero-media img {
    transform: scale(1.04);
}

/* Double-Slash Meta Tag (Foxiz Signature meta-s-dslash) */
.meta-dslash-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}
.meta-dslash-row .meta-cat {
    color: var(--primary);
}
.meta-dslash-row .dslash {
    color: var(--text-subtle);
    font-weight: 400;
    margin: 0 2px;
}
.meta-dslash-row .meta-author {
    color: var(--text-main);
    font-weight: 700;
}

.big-hero-title {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.5px;
    color: var(--text-main);
    margin-bottom: 12px;
}
@media (max-width: 600px) { .big-hero-title { font-size: 24px; } }
.big-hero-excerpt {
    font-size: 14px;
    line-height: 1.65;
    color: var(--text-secondary);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 2 Sub-posts in Col 1 (Square Thumbnail + Title) */
.col1-subposts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
@media (max-width: 600px) { .col1-subposts-grid { grid-template-columns: 1fr; } }
.subpost-square-card {
    display: flex;
    flex-direction: column;
}
.subpost-thumb {
    position: relative;
    width: 100%;
    padding-top: 60%;
    border-radius: var(--radius-img);
    overflow: hidden;
    background: #020425;
    margin-bottom: 10px;
}
.subpost-thumb img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.subpost-square-card:hover .subpost-thumb img { transform: scale(1.04); }
.subpost-square-card h3 {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.35;
    color: var(--text-main);
    margin-bottom: 6px;
}

/* Col 2 (Stacked Medium Cards) */
.hero-col-2 {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.col2-medium-card {
    display: flex;
    flex-direction: column;
    padding-bottom: 20px;
    border-bottom: 1px dashed var(--border-color);
}
.col2-medium-card:last-child {
    border-bottom: none;
    padding-bottom: 0;
}
.col2-media {
    position: relative;
    width: 100%;
    padding-top: 56%;
    border-radius: var(--radius-img);
    overflow: hidden;
    background: #020425;
    margin-bottom: 10px;
}
.col2-media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.col2-medium-card h3 {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 800;
    line-height: 1.3;
    color: var(--text-main);
    margin-bottom: 8px;
}
.col2-medium-card p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Col 3 (Text-only Jump Bullet List) */
.hero-col-3 {
    display: flex;
    flex-direction: column;
}
.col3-title-band {
    font-size: 12.5px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-main);
    border-bottom: 2px solid var(--text-main);
    padding-bottom: 6px;
    margin-bottom: 14px;
}
.col3-bullet-item {
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}
.col3-bullet-item:last-child { border-bottom: none; }
.col3-bullet-item h4 {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
    color: var(--text-main);
    margin-bottom: 4px;
    display: flex;
    align-items: flex-start;
    gap: 6px;
}
.col3-bullet-item h4::before {
    content: '▸';
    color: var(--primary);
    font-size: 14px;
    line-height: 1;
    flex-shrink: 0;
}
.col3-bullet-item .col3-meta {
    font-size: 11.5px;
    color: var(--text-muted);
    padding-left: 14px;
}

/* ==========================================================================
   6. 4-COLUMN BROADSHEET NEWS GRID WITH 1PX VERTICAL BORDERS
   ========================================================================== */
.broadsheet-4col-section {
    padding: 36px 0;
    border-bottom: 1px solid var(--border-color);
}
.section-header-band {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 2px solid var(--border-dark);
    padding-bottom: 8px;
    margin-bottom: 24px;
}
.section-header-title {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 900;
    color: var(--text-main);
    text-transform: uppercase;
    letter-spacing: -0.5px;
}
.broadsheet-4col-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    border-left: 1px solid var(--border-color);
}
@media (max-width: 1024px) { .broadsheet-4col-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .broadsheet-4col-grid { grid-template-columns: 1fr; border-left: none; } }

.broadsheet-grid-card {
    border-right: 1px solid var(--border-color);
    padding: 0 18px 24px 18px;
    display: flex;
    flex-direction: column;
}
.broadsheet-card-media {
    position: relative;
    width: 100%;
    padding-top: 60%;
    border-radius: var(--radius-img);
    overflow: hidden;
    background: #020425;
    margin-bottom: 12px;
}
.broadsheet-card-media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.broadsheet-grid-card:hover .broadsheet-card-media img { transform: scale(1.05); }
.broadsheet-grid-card h3 {
    font-family: var(--font-heading);
    font-size: 17px;
    font-weight: 700;
    line-height: 1.35;
    color: var(--text-main);
    margin-bottom: 8px;
}
.broadsheet-grid-card p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 12px;
}

/* ==========================================================================
   7. NUMBERED TRENDING SIDEBAR + OPINION SECTION
   ========================================================================== */
.opinion-trending-section {
    padding: 40px 0;
}
.opinion-trending-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 32px;
}
@media (max-width: 900px) { .opinion-trending-grid { grid-template-columns: 1fr; } }

/* Numbered Trending (Big Numbers 01-05) */
.numbered-list-widget {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 24px;
    border-radius: var(--radius-img);
}
.numbered-item-row {
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: 14px;
    align-items: flex-start;
    padding: 16px 0;
    border-bottom: 1px solid var(--border-color);
}
.numbered-item-row:last-child { border-bottom: none; padding-bottom: 0; }
.numbered-rank {
    font-family: var(--font-heading);
    font-size: 34px;
    font-weight: 900;
    color: #cbd5e1;
    line-height: 1;
}
[data-theme="dark"] .numbered-rank { color: #334155; }
.numbered-item-row:nth-child(1) .numbered-rank { color: var(--primary); }
.numbered-item-row:nth-child(2) .numbered-rank { color: #ea580c; }
.numbered-item-row:nth-child(3) .numbered-rank { color: #2563eb; }

.numbered-item-content h4 {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
    color: var(--text-main);
    margin-bottom: 4px;
}

/* ==========================================================================
   8. SINGLE POST (Foxiz Editorial Broadheet Masterpiece)
   ========================================================================== */
.single-article-wrap { padding: 40px 0; }
.single-article-container { max-width: 880px; margin: 0 auto; }
.single-post-title {
    font-family: var(--font-heading);
    font-size: 44px;
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: -1px;
    color: var(--text-main);
    margin: 12px 0 18px 0;
}
@media (max-width: 600px) { .single-post-title { font-size: 28px; } }
.single-meta-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    padding: 14px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 28px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text-muted);
}
.single-share-trigger-btn {
    background: linear-gradient(135deg, #c8102e 0%, #9b0018 100%);
    color: #ffffff;
    border: none;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.5px;
    padding: 8px 22px;
    border-radius: 4px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 14px rgba(200, 16, 46, 0.25);
    transition: all 0.2s;
}
.single-share-trigger-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(200, 16, 46, 0.35);
}
.single-featured-image {
    border-radius: var(--radius-img);
    overflow: hidden;
    margin-bottom: 32px;
    background: #020425;
}
.single-featured-image img { width: 100%; max-height: 560px; object-fit: cover; }
.article-content-body {
    font-size: 18px;
    line-height: 1.85;
    color: var(--text-secondary);
}
.article-content-body p { margin-bottom: 24px; }
.article-content-body h2 {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 800;
    line-height: 1.25;
    color: var(--text-main);
    margin: 40px 0 16px 0;
}

#readingProgressBar {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: var(--primary);
    width: 0%;
    z-index: 999999;
}

/* FOOTER */
.site-footer {
    background: #020425;
    color: #94a3b8;
    padding: 60px 0 30px 0;
    margin-top: 60px;
    border-top: 4px solid var(--primary);
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 40px;
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-heading {
    font-family: var(--font-heading);
    font-size: 17px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 16px;
    text-transform: uppercase;
}
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 10px; font-size: 13.5px; }
.footer-links a:hover { color: #ffffff; }
.footer-bottom { border-top: 1px solid #1e293b; padding-top: 24px; text-align: center; font-size: 13px; }
