/*
Theme Name: Black Lens 2.0 Core
Author: Mohammad Mehedi Hasan
Description: Professional OSINT Intelligence Research Platform.
*/

:root {
    --bg-primary: #0B1220;
    --bg-secondary: #111827;
    --surface: rgba(17, 24, 39, 0.75);
    --border: rgba(255,255,255,0.08);

    --text-primary: #E0E0E0;
    --text-heading: #FFFFFF;
    --text-secondary: #B6BDC9;

    --emergency-red: #FF4D4D;
    --emergency-red-dark: #E63737;
    --emergency-red-soft: rgba(255, 77, 77, 0.14);
    --emergency-red-ring: rgba(255, 77, 77, 0.34);
    --accent-blue: var(--emergency-red);
    --accent-red: var(--emergency-red);

    --glass: blur(14px);

    --font-bn: 'Hind Siliguri', sans-serif;
    --font-en: 'Inter', sans-serif;
}

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

body {
    font-family: var(--font-bn);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    font-size: clamp(1rem, 0.95rem + 0.2vw, 1.075rem);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body.lang-en { font-family: var(--font-en); }

/* --- TYPOGRAPHY & READABILITY --- */
p,
.article-body p,
.entry-content p,
.grid-item-excerpt,
.saas-grid-excerpt,
.saas-section-desc,
.saas-article-excerpt {
    color: var(--text-primary);
    font-size: clamp(1rem, 0.96rem + 0.18vw, 1.075rem);
    line-height: 1.6;
    margin-bottom: 1rem;
}

h1, h2, h3, h4, h5, h6,
.single-title,
.grid-item-title,
.saas-grid-title,
.saas-section-title,
.saas-article-title {
    color: var(--text-heading);
    line-height: 1.18;
}

.article-body {
    color: var(--text-primary);
    font-size: 1.06rem;
    line-height: 1.6;
}

.article-body > * + * {
    margin-top: 1rem;
}

/* --- EMERGENCY RED ACCENTS --- */
a {
    color: var(--emergency-red);
    text-decoration-color: rgba(255, 77, 77, 0.45);
    text-underline-offset: 3px;
    transition: color 0.25s ease, border-color 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease;
}

a:hover,
a:focus-visible {
    color: #FFFFFF;
    text-decoration-color: var(--emergency-red);
}

button,
input[type="button"],
input[type="submit"],
input[type="reset"],
.button,
.wp-block-button__link,
.saas-btn,
.saas-btn-primary,
.saas-btn-danger {
    background: var(--emergency-red) !important;
    border-color: var(--emergency-red) !important;
    color: #FFFFFF !important;
}

button:hover,
button:focus-visible,
input[type="button"]:hover,
input[type="button"]:focus-visible,
input[type="submit"]:hover,
input[type="submit"]:focus-visible,
input[type="reset"]:hover,
input[type="reset"]:focus-visible,
.button:hover,
.button:focus-visible,
.wp-block-button__link:hover,
.wp-block-button__link:focus-visible,
.saas-btn:hover,
.saas-btn:focus-visible,
.saas-btn-primary:hover,
.saas-btn-primary:focus-visible,
.saas-btn-danger:hover,
.saas-btn-danger:focus-visible {
    background: var(--emergency-red-dark) !important;
    border-color: var(--emergency-red-dark) !important;
    color: #FFFFFF !important;
    box-shadow: 0 12px 30px rgba(255, 77, 77, 0.28) !important;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

/* --- 1. SLIM HERO HEADER --- */
.slim-hero-header {
    position: relative;
    min-height: 72vh;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    background-image: url('https://blacklens25.com/wp-content/uploads/2026/05/black_lens_logo1.jpg');
    background-size: cover;
    background-position: center;
}

.header-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.45), rgba(0,0,0,0.88));
    backdrop-filter: blur(2px);
    z-index: 1;
}

.header-content {
    position: relative; 
    z-index: 2; 
    width: 100%; 
    max-width: 1200px; 
    padding: 40px 20px;
}

.branding-area h1 {
    font-size: clamp(3rem, 7vw, 6rem);
    font-weight: 700;
    letter-spacing: 0;
    color: #fff;
    margin-bottom: 0.5rem;
}

.tagline {
    font-size: 0.9rem;
    letter-spacing: 0.45em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.7);
    font-weight: 600;
}

/* --- 2. GLASSMORPHISM NAVIGATION --- */
.main-navigation {
    position: sticky;
    top: 0;
    z-index: 999;
    background: rgba(11, 18, 32, 0.82);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    padding: 0;
}

.nav-container {
    max-width: 1400px;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    padding: 18px 30px;
}

.menu-items {
    display: flex;
    list-style: none;
    gap: 12px;
}

.nav-item, .dropbtn {
    color: rgba(255,255,255,0.88);
    font-size: 0.95rem;
    font-weight: 600;
    padding: 14px 18px;
    border-radius: 14px;
    transition: all 0.3s ease;
    text-decoration: none;
    background: transparent;
    border: none;
    cursor: pointer;
}

.nav-item:hover, .dropbtn:hover {
    background: var(--emergency-red-soft);
    color: #fff;
}

/* --- 3. MODERN DROPDOWN --- */
.dropdown { position: relative; }
.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 320px;
    background: rgba(17, 24, 39, 0.96);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 18px;
    padding: 12px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.45);
    overflow: hidden;
    z-index: 1000;
}

.dropdown:hover .dropdown-content { display: block; }

.dropdown-content a {
    display: block;
    border-radius: 12px;
    padding: 14px 18px;
    color: rgba(255,255,255,0.86);
    transition: 0.25s ease;
    text-decoration: none;
}

.dropdown-content a:hover {
    background: var(--emergency-red-soft);
    padding-left: 22px;
    color: #fff;
}

/* --- 4. SEARCH BAR REDESIGN --- */
.header-search { margin-top: 35px; width: 100%; display: flex; justify-content: center; }
.header-search-input {
    width: 100%;
    max-width: 620px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.08);
    color: #fff;
    border-radius: 18px;
    padding: 18px 22px;
    font-size: 1rem;
    backdrop-filter: blur(12px);
    outline: none;
    transition: all 0.3s ease;
}

.header-search-input:focus {
    border-color: var(--emergency-red-ring);
    box-shadow: 0 0 0 5px var(--emergency-red-soft);
}

/* --- 5. ARTICLE GRID & CARDS --- */
.investigation-card {
    background: rgba(17,24,39,0.75);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 28px;
    overflow: hidden;
    backdrop-filter: blur(18px);
    box-shadow: 0 25px 80px rgba(0,0,0,0.35);
    transition: all 0.4s ease;
    margin-bottom: 25px;
}

.investigation-card:hover { transform: translateY(-6px); }

.post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 32px;
    margin: 40px 0;
}

.grid-item {
    background: rgba(17,24,39,0.72);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 22px;
    overflow: hidden;
    transition: all 0.35s ease;
    display: flex;
    flex-direction: column;
    margin-bottom: 25px;
}

.grid-item:hover {
    transform: translateY(-5px);
    border-color: var(--emergency-red-ring);
}

.grid-item-media {
    position: relative;
    padding-top: 56.25%;
    overflow: hidden;
}

.grid-item-media img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.grid-item-content { padding: 24px; flex-grow: 1; }
.grid-item-cat { color: var(--accent-red); font-size: 12px; font-weight: 700; text-transform: uppercase; margin-bottom: 8px; display: block; }
.grid-item-title { font-size: clamp(1.2rem, 1.08rem + 0.35vw, 1.35rem); font-weight: 700; margin-bottom: 12px; line-height: 1.35; color: #fff; }
.grid-item-excerpt { font-size: 0.95rem; color: var(--text-secondary); margin-bottom: 15px; }
.grid-item-meta { font-size: 12px; color: #666; margin-top: auto; }

/* --- SPACING, NEWS CARDS & HERO STORY --- */
.post,
.article,
article.grid-item,
article.saas-grid-item,
.news-card,
.post-card,
.investigation-card,
.saas-elevated-card {
    margin-bottom: 25px;
}

.grid-item-content,
.saas-grid-content,
.card-body,
.saas-card-body {
    padding: clamp(20px, 3vw, 32px);
}

.hero-section {
    width: 100%;
    margin: 0 0 clamp(40px, 6vw, 80px);
    padding: clamp(36px, 6vw, 72px);
    background:
        linear-gradient(135deg, rgba(255, 77, 77, 0.16), rgba(17, 24, 39, 0.92) 44%),
        var(--surface);
    border: 1px solid rgba(255, 77, 77, 0.24);
    border-radius: 24px;
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
    overflow: hidden;
}

.hero-section .hero-story,
.hero-section .featured-story,
.hero-section article {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
    gap: clamp(24px, 4vw, 56px);
    align-items: center;
    width: 100%;
}

.hero-section img,
.hero-section .wp-post-image {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 18px;
}

.hero-section h1,
.hero-section h2,
.hero-section .hero-title {
    font-size: clamp(2rem, 4.8vw, 4.25rem);
    line-height: 1.08;
    margin-bottom: 18px;
}

.hero-section p,
.hero-section .hero-excerpt {
    max-width: 760px;
    color: var(--text-primary);
    font-size: clamp(1.05rem, 1rem + 0.35vw, 1.25rem);
    line-height: 1.6;
}

/* --- 6. OSINT DASHBOARD --- */
.osint-dashboard {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    margin: 70px 0;
}

.dashboard-card {
    background: rgba(17,24,39,0.78);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 24px;
    padding: 30px;
    backdrop-filter: blur(14px);
    text-align: center;
}

.dashboard-card h3 { font-size: 1rem; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 1px; }
.dashboard-card span {
    display: block;
    margin-top: 12px;
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
}

/* --- 7. TICKER REDESIGN --- */
.accountability-ticker {
    background: #0F172A;
    border-top: 1px solid rgba(255,255,255,0.06);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    padding: 14px 0;
    width: 100%;
}

.ticker-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

.ticker-content {
    color: var(--emergency-red);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- 8. FOOTER REDESIGN --- */
footer {
    background: #050816;
    border-top: 1px solid rgba(255,255,255,0.06);
    padding: 80px 8% 40px;
    color: rgba(255,255,255,0.72);
}

/* --- MOBILE OPTIMIZATION --- */
@media screen and (max-width: 768px) {
    body { font-size: 1rem; }

    p,
    .article-body p,
    .entry-content p,
    .grid-item-excerpt,
    .saas-grid-excerpt,
    .saas-section-desc,
    .saas-article-excerpt {
        font-size: 1rem;
    }

    .container { padding: 0 16px; }
    .nav-container { padding: 15px; }
    .nav-item, .dropbtn { font-size: 0.85rem; padding: 10px 12px; }
    .branding-area h1 { font-size: 2.5rem; }
    .post-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin: 28px 0;
    }

    .post,
    .article,
    article.grid-item,
    article.saas-grid-item,
    .news-card,
    .post-card,
    .investigation-card,
    .saas-elevated-card {
        margin-bottom: 25px;
    }

    .hero-section {
        padding: 28px 20px;
        border-radius: 18px;
    }

    .hero-section .hero-story,
    .hero-section .featured-story,
    .hero-section article {
        grid-template-columns: 1fr;
    }

    .hero-section h1,
    .hero-section h2,
    .hero-section .hero-title {
        font-size: clamp(2rem, 10vw, 3rem);
    }
}
