@import './fonts/fonts.css';

/* ─── CSS Variables ─────────────────────────────────────────── */
:root {
    --bg:           #0a0a0a;
    --surface:      #111111;
    --card:         #161616;
    --card-hover:   #1d1d1d;
    --accent:       #fef60c;
    --accent-dim:   rgba(254, 246, 12, 0.08);
    --accent-hover: rgba(254, 246, 12, 0.15);
    --text:         #e4e4e4;
    --text-muted:   #b9b9b9;
    --text-light:   #999999;
    --border:       #1e1e1e;
    --border-light: #282828;
    --font-display: 'Barlow Condensed', sans-serif;
    --font-body:    'Outfit', sans-serif;
    --radius:       4px;
    --transition:   0.22s ease;
    --max-width:    1200px;
}

/* ─── Base Reset & Body ─────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

/* Remove Bootstrap's default container-fluid padding interference */
.container-fluid { padding: 0 !important; }

a             { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover       { color: #fff; }
img           { max-width: 100%; height: auto; display: block; }
p             { margin: 0 0 1.25rem; }

h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: 0.01em;
    color: #fff;
    margin: 0 0 0.75rem;
}
h1 { font-size: clamp(2.4rem, 5vw, 4rem);   font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.9rem); }
h4 { font-size: 1.2rem; }

/* ─── Dot-grid texture overlay ──────────────────────────────── */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: radial-gradient(circle, rgba(254,246,12,0.04) 1px, transparent 1px);
    background-size: 28px 28px;
    pointer-events: none;
    z-index: 0;
}

/* ─── Navigation ────────────────────────────────────────────── */
.ea-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(10, 10, 10, 0.96);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.ea-header .container { max-width: var(--max-width); }

.ea-navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0;
    height: 64px;
    gap: 1.5rem;
}

.ea-logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}
.ea-logo img {
    height: 38px;
    width: auto;    
    border-radius: var(--radius);
}

.ea-nav {
    display: flex;
    align-items: center;
    gap: 0;
    list-style: none;
    margin: 0;
    padding: 0;
}

.ea-nav > li > a {
    display: flex;
    align-items: center;
    height: 64px;
    padding: 0 1rem;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.875rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-light);
    border-bottom: 2px solid transparent;
    transition: color var(--transition), border-color var(--transition);
    white-space: nowrap;
}
.ea-nav > li > a:hover,
.ea-nav > li > a.active {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

/* Mobile toggle */
.ea-nav-toggle {
    display: none;
    background: none;
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    padding: 6px 10px;
    cursor: pointer;
    color: var(--text);
    font-size: 1.25rem;
    line-height: 1;
}

@media (max-width: 991px) {
    .ea-nav-toggle { display: flex; align-items: center; }

    .ea-nav {
        display: none;
        flex-direction: column;
        gap: 0;
        position: absolute;
        top: 64px;
        left: 0; right: 0;
        background: #0d0d0d;
        border-bottom: 1px solid var(--border);
        padding: 0.5rem 0;
        z-index: 999;
    }
    .ea-nav.is-open { display: flex; }

    .ea-nav > li { width: 100%; }
    .ea-nav > li > a {
        height: auto;
        padding: 0.75rem 1.5rem;
        border-bottom: none;
        border-left: 2px solid transparent;
    }
    .ea-nav > li > a:hover,
    .ea-nav > li > a.active {
        border-bottom: none;
        border-left-color: var(--accent);
        background: var(--accent-dim);
    }
}

/* ─── Breadcrumb ─────────────────────────────────────────────── */
.ea-breadcrumb {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 0.55rem 0;
    font-size: 0.78rem;
    color: var(--text-muted);
    letter-spacing: 0.02em;
}
.ea-breadcrumb .container { max-width: var(--max-width); }
.ea-breadcrumb a { color: var(--text-muted); }
.ea-breadcrumb a:hover { color: var(--accent); }

/* ─── Main wrapper ───────────────────────────────────────────── */
main {
    min-height: 60vh;
    position: relative;
    z-index: 1;
}

.inner-wrapper {
    padding: 2.5rem 0 3.5rem;
}
.inner-wrapper > .container { max-width: var(--max-width); }

/* ─── HOME HERO ──────────────────────────────────────────────── */
.ea-hero {
    position: relative;
    overflow: hidden;
    background: var(--bg);
    padding: 5rem 0 4rem;
    border-bottom: 1px solid var(--border);
}

.ea-hero::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.ea-hero-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1rem;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 2rem;
}

.ea-hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 1.2rem;
}
.ea-hero-tag::before {
    content: '';
    display: inline-block;
    width: 24px;
    height: 2px;
    background: var(--accent);
}

.ea-hero-title {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(3.5rem, 8vw, 7rem);
    line-height: 0.95;
    letter-spacing: -0.01em;
    color: #fff;
    margin: 0 0 1.25rem;
}
.ea-hero-title span { color: var(--accent); }

.ea-hero-slogan {
    font-family: var(--font-display);
    font-size: clamp(1rem, 2vw, 1.2rem);
    font-weight: 400;
    color: var(--text-muted);
    margin: 0;
    max-width: 480px;
}

@media (max-width: 767px) {
    .ea-hero-inner { grid-template-columns: 1fr; }
    .ea-hero { padding: 3.5rem 0 3rem; }
}

/* ─── Category Section Header (Home) ────────────────────────── */
.ea-section {
    padding: 3rem 0 0;
}
.ea-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    /* margin-bottom: 1.75rem; */
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}
.ea-section-header h2 {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #fff;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.ea-section-header h2::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 22px;
    background: var(--accent);
    border-radius: 2px;
    flex-shrink: 0;
}
.ea-section-link {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
    transition: color var(--transition);
    white-space: nowrap;
}
.ea-section-link:hover { color: var(--accent); }

/* ─── Category Page Header ───────────────────────────────────── */
.ea-cat-header {
    padding: 2.5rem 0 2rem;
    border-bottom: 1px solid var(--border);
    margin-bottom: 2.5rem;
}
.ea-cat-header h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin: 0 0 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.ea-cat-header h1::before {
    content: '';
    display: inline-block;
    width: 5px;
    height: 42px;
    background: var(--accent);
    border-radius: 3px;
    flex-shrink: 0;
}
.ea-cat-header p {
    color: var(--text-muted);
    margin: 0;
    font-size: 1rem;
    max-width: 600px;
}
.ea-cat-excerpt{
    margin-bottom: 1.75rem;
    max-width: 900px;
}

/* ─── Article Cards ──────────────────────────────────────────── */
.article-list { margin-bottom: 2.5rem; }

.article-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform var(--transition), border-color var(--transition), background var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}
.article-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
    background: var(--card-hover);
}
.article-card a {
    display: flex;
    flex-direction: column;
    height: 100%;
    color: inherit;
    text-decoration: none;
}
.article-card:hover a { color: inherit; }

.article-card .card-img {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: var(--surface);
}
.article-card .card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.article-card:hover .card-img img { transform: scale(1.04); }

.article-card .card-img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #111 0%, #1a1a1a 100%);
}
.article-card .card-img-placeholder svg { opacity: 0.15; }

.article-card .card-body {
    padding: 1.1rem 1.25rem 1.25rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.article-card .card-meta {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.6rem;
    flex-wrap: wrap;
}

.card-category {
    display: inline-block;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    background: var(--accent);
    color: #000;
    padding: 2px 7px;
    border-radius: 2px;
    line-height: 1.6;
}

.card-date {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 400;
    display: none;
}

.article-card h3 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.2rem;
    line-height: 1.25;
    color: #fff;
    margin: 0 0 0.6rem;
    transition: color var(--transition);
}
.article-card:hover h3 { color: var(--accent); }

.article-card h2 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.35rem;
    line-height: 1.25;
    color: #fff;
    margin: 0 0 0.6rem;
    transition: color var(--transition);
}
.article-card:hover h2 { color: var(--accent); }

.card-excerpt {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.55;
    margin: 0;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Grid spacing for cards */
.article-list .row { gap-y: 1.5rem; }
.article-list .col-lg-4 { margin-bottom: 1.5rem; }

/* ─── Article Page ───────────────────────────────────────────── */
.ea-article-hero {
    position: relative;
    background: var(--surface);
    overflow: hidden;
}
.ea-article-hero img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    opacity: 0.8;
}
.ea-article-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10,10,10,0.95) 0%, rgba(10,10,10,0.3) 60%, transparent 100%);
}
.ea-article-hero-content {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 2.5rem;
    max-width: var(--max-width);
    margin: 0 auto;
}

.ea-article-wrapper {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1rem;
}

.ea-article-header {
    padding: 2rem 0 1.5rem;
    border-bottom: 1px solid var(--border);
}
.ea-article-header .card-meta { margin-bottom: 1rem; }
.ea-article-header h1 {
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1.1;
    color: #fff;
    margin: 0;
}

.ea-article-image {
    margin-bottom: 2rem;
    border-radius: var(--radius);
    overflow: hidden;
}
.ea-article-image img {
    width: 100%;
    border-radius: var(--radius);
}

.ea-article-date {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    display: none;
}
.ea-article-date .modified-date { color: var(--text-muted); font-style: italic; }

.content {
    color: var(--text);
    font-size: 1.0625rem;
    line-height: 1.78;
}
.content h2 {
    font-size: 1.7rem;
    margin: 2.2rem 0 0.9rem;
    color: #fff;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border);
}
.content h3 { font-size: 1.35rem; margin: 1.8rem 0 0.75rem; }
.content h4 { font-size: 1.1rem; margin: 1.5rem 0 0.6rem; color: var(--text); }
.content p   { margin-bottom: 1.35rem; }
.content ul,
.content ol  { margin: 0 0 1.35rem 1.5rem; padding: 0; }
.content li  { margin-bottom: 0.45rem; }
.content a   { color: var(--accent); border-bottom: 1px solid rgba(254,246,12,0.3); }
.content a:hover { color: #fff; border-bottom-color: #fff; }
.content strong { color: #fff; font-weight: 600; }
.content blockquote {
    border-left: 3px solid var(--accent);
    margin: 1.75rem 0;
    padding: 1rem 1.5rem;
    background: var(--accent-dim);
    border-radius: 0 var(--radius) var(--radius) 0;
    color: var(--text-light);
    font-style: italic;
}
.content code {
    background: var(--surface);
    border: 1px solid var(--border-light);
    padding: 0.15em 0.45em;
    border-radius: 3px;
    font-size: 0.88em;
    color: var(--accent);
}
.content pre {
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 1.25rem;
    border-radius: var(--radius);
    overflow-x: auto;
    margin-bottom: 1.5rem;
}
.content pre code { background: none; border: none; padding: 0; color: var(--text); }
.content table { width: 100%; border-collapse: collapse; margin-bottom: 1.5rem; }
.content th { background: var(--surface); color: var(--accent); font-family: var(--font-display); letter-spacing: 0.05em; text-transform: uppercase; font-size: 0.8rem; padding: 0.7rem 1rem; text-align: left; border-bottom: 2px solid var(--accent); }
.content td { padding: 0.65rem 1rem; border-bottom: 1px solid var(--border); color: var(--text-light); }
.content tr:hover td { background: var(--accent-dim); }
.content img { border-radius: var(--radius); margin: 1.5rem 0; }

/* ─── Related Articles ───────────────────────────────────────── */
.ea-related {
    margin-top: 3rem;
    padding-top: 2.5rem;
    border-top: 1px solid var(--border);
}
.ea-related-title {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.1rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.ea-related-title::before {
    content: '';
    display: inline-block;
    width: 3px;
    height: 16px;
    background: var(--accent);
    border-radius: 2px;
}

/* ─── Sidebar ────────────────────────────────────────────────── */
.ea-sidebar { padding-left: 1.5rem; }

.sidebar-widget {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 1.5rem;
}
.sidebar-widget-head {
    background: var(--accent);
    padding: 0.75rem 1.25rem;
}
.sidebar-widget-head h4 {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 0.95rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #000;
    margin: 0;
}
.sidebar-widget-body { padding: 1.25rem; }

.sidebar-newsletter p {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}
.btn-newsletter {
    display: block;
    width: 100%;
    text-align: center;
    background: var(--accent);
    color: #000 !important;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.65rem 1.25rem;
    border-radius: var(--radius);
    transition: background var(--transition), transform var(--transition);
    border: none;
    cursor: pointer;
}
.btn-newsletter:hover {
    background: #fff;
    transform: translateY(-1px);
}

.sidebar-categories ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.sidebar-categories li {
    border-bottom: 1px solid var(--border);
}
.sidebar-categories li:last-child { border-bottom: none; }
.sidebar-categories li a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 0;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-light);
    transition: color var(--transition), padding-left var(--transition);
}
.sidebar-categories li a::before {
    content: '›';
    color: var(--accent);
    font-size: 1rem;
    font-weight: 700;
    flex-shrink: 0;
}
.sidebar-categories li a:hover {
    color: var(--accent);
    padding-left: 4px;
}

@media (max-width: 991px) {
    .ea-sidebar { padding-left: 0; margin-top: 2rem; }
}

/* ─── Pagination ─────────────────────────────────────────────── */
.pagination { gap: 0.3rem; }
.page-link {
    background: var(--card) !important;
    border: 1px solid var(--border) !important;
    color: var(--text-light) !important;
    font-family: var(--font-body);
    font-size: 0.875rem;
    transition: all var(--transition);
    border-radius: var(--radius) !important;
}
.page-link:hover, .page-item.active .page-link {
    background: var(--accent) !important;
    border-color: var(--accent) !important;
    color: #000 !important;
}
.page-item.disabled .page-link { opacity: 0.35; }

/* ─── Footer ─────────────────────────────────────────────────── */
.ea-footer {
    background: var(--surface);
    border-top: 1px solid var(--border);
    padding: 2.5rem 0;
    margin-top: 4rem;
    position: relative;
    z-index: 1;
}
.ea-footer::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, var(--accent) 50%, transparent 100%);
}

.ea-footer .container { max-width: var(--max-width); }

.ea-footer-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
    flex-wrap: wrap;
}

.ea-footer-logo img { opacity: 0.7; transition: opacity var(--transition); }
.ea-footer-logo img:hover { opacity: 1; }

.footer-nav {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}
.footer-nav a {
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text-muted);
    transition: color var(--transition);
}
.footer-nav a:hover { color: var(--accent); }

.ea-footer-bottom {
    padding-top: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}
.ea-footer-copy {
    font-size: 0.78rem;
    color: var(--text-muted);
}
.ea-footer-slogan {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    color: var(--text-muted);
}
.ea-footer-slogan span { color: var(--accent); }

/* ─── Page Layout ────────────────────────────────────────────── */
.ea-page-content {
    padding: 2.5rem 0 3.5rem;
    max-width: 800px;
}
.ea-page-content h1 { margin-bottom: 1.5rem; }

/* ─── Load animation ─────────────────────────────────────────── */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: translateY(0); }
}
main > * { animation: fadeUp 0.4s ease both; }
main > *:nth-child(2) { animation-delay: 0.05s; }
main > *:nth-child(3) { animation-delay: 0.1s; }

/* ─── Breadcrumb active item ─────────────────────────────────── */
.ea-breadcrumb .breadcrumb-item.active,
.ea-breadcrumb .active { color: var(--accent) !important; }

/* ─── Utility ────────────────────────────────────────────────── */
.container { max-width: var(--max-width); }
