﻿:root {
    --bg-color: #05080c;
    --card-bg: #0b1118;
    --primary: #FFD700;
    --secondary: #E10600;
    --accent: #00BFFF;
    --text-main: #FFFFFF;
    --text-muted: #8a96a3;
    
    --glass-border: rgba(255, 215, 0, 0.1);
    --glass-shadow: 0 10px 40px rgba(0, 0, 0, 0.7);
    
    --font-main: 'Inter', sans-serif;
    --font-heading: 'Orbitron', sans-serif;
    
    --bottom-nav-height: 65px;
}

body.light-mode {
    --bg-color: #f3f4f6;
    --card-bg: #ffffff;
    --text-main: #111827;
    --text-muted: #6b7280;
    --glass-border: rgba(0, 0, 0, 0.1);
    --glass-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

/* Sleek Custom Scrollbars */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}
body.light-mode ::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
}
* {
    scrollbar-width: thin;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(255, 215, 0, 0.05), transparent 30%),
        radial-gradient(circle at 90% 80%, rgba(0, 191, 255, 0.03), transparent 30%),
        url('data:image/svg+xml;utf8,<svg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"><path d="M54.627 0l1.196 1.197-30 30L0 5.824 1.197 4.627l24.627 24.627L54.627 0zM0 54.176l1.197-1.197 24.627-24.627L55.824 58.35l-1.197 1.197-30-30L0 54.176z" fill="rgba(255,215,0,0.015)" fill-rule="evenodd"/></svg>');
    color: var(--text-main);
    font-family: var(--font-main);
    min-height: 100vh;
}

/* Force App Container to Overlay Blogger Theme */
.app-container {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 999999 !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    background-color: var(--bg-color) !important;
    color: var(--text-main) !important;
}
.app-container a {
    text-decoration: none !important;
    color: inherit;
}
.app-container img {
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
}
body.light-mode .app-container {
    --bg-color: #f3f4f6 !important;
    --card-bg: #ffffff !important;
    --text-main: #111827 !important;
    --text-muted: #6b7280 !important;
    --glass-border: rgba(0, 0, 0, 0.1) !important;
    --glass-shadow: 0 5px 20px rgba(0, 0, 0, 0.05) !important;
    background-color: var(--bg-color) !important;
    color: var(--text-main) !important;
}

body.light-mode {
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(255, 215, 0, 0.1), transparent 30%),
        radial-gradient(circle at 90% 80%, rgba(0, 191, 255, 0.1), transparent 30%),
        url('data:image/svg+xml;utf8,<svg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"><path d="M54.627 0l1.196 1.197-30 30L0 5.824 1.197 4.627l24.627 24.627L54.627 0zM0 54.176l1.197-1.197 24.627-24.627L55.824 58.35l-1.197 1.197-30-30L0 54.176z" fill="rgba(0,0,0,0.03)" fill-rule="evenodd"/></svg>');
}

/* Security Layer Overlay */
.devtools-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(11, 15, 20, 0.95);
    backdrop-filter: blur(15px);
    z-index: 999999;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.devtools-overlay.active { display: flex; }

.overlay-content {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    padding: 3rem;
    border-radius: 15px;
}

.overlay-content i {
    font-size: 4rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

/* Typography & Utilities */
.primary-text { color: var(--primary); }
.secondary-text { color: var(--secondary); }
.muted-text { color: var(--text-muted); }
.text-center { text-align: center; }

.container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 15px;
}

.glass-card {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: var(--glass-shadow);
    overflow: hidden;
}

/* Header */
.sticky-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(11, 15, 20, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    padding: 15px 0;
}

body.light-mode .sticky-header {
    background: rgba(255, 255, 255, 0.9);
}

.header-container {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
}

.logo {
    justify-self: start;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-main) !important;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    justify-self: end;
}

.desktop-nav {
    display: flex;
    gap: 20px;
    align-items: center;
    justify-self: center;
}
.desktop-nav .nav-link {
    color: var(--text-main) !important;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.95rem;
    transition: color 0.3s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.desktop-nav .nav-link:hover, .desktop-nav .nav-link.active {
    color: var(--primary) !important;
}

.header-icon {
    font-size: 1.2rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.3s;
}
.header-icon:hover { color: var(--text-main); }
.header-icon.primary-text { color: var(--secondary); }

.mobile-menu-btn {
    font-size: 1.5rem;
    cursor: pointer;
    display: none;
}

/* Search Results Overlay */
.search-results-container {
    position: absolute;
    top: 70px;
    left: 0; right: 0;
    background: var(--card-bg);
    border-bottom: 1px solid var(--glass-border);
    z-index: 999;
    padding: 20px;
    box-shadow: var(--glass-shadow);
}

/* Mobile Menu */
.mobile-menu-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}
.mobile-menu-overlay.active { opacity: 1; visibility: visible; }

.mobile-side-menu {
    position: fixed;
    top: 0; right: -300px; width: 280px; height: 100%;
    background: var(--card-bg);
    z-index: 1002;
    transition: right 0.3s ease;
    border-left: 1px solid var(--glass-border);
    display: flex;
    flex-direction: column;
}
.mobile-side-menu.active { right: 0; }

.menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--glass-border);
}
.menu-header h3 { font-family: var(--font-heading); }
.close-menu { font-size: 1.5rem; cursor: pointer; color: var(--text-muted); }

.menu-links { list-style: none; padding: 20px 0; }
.menu-links li a {
    display: flex; align-items: center; gap: 15px;
    padding: 15px 20px;
    color: var(--text-main);
    text-decoration: none;
    font-weight: 500;
    transition: background 0.2s;
}
.menu-links li a:hover { background: rgba(255,255,255,0.05); color: var(--secondary); }
.menu-links li a i { width: 20px; text-align: center; color: var(--text-muted); }

/* Hero Banner */

/* Layout */
.layout-container {
    display: flex;
    flex-direction: column;
    max-width: 900px;
    margin: 0 auto;
    gap: 30px;
}


/* Responsive Breakpoints */
@media (max-width: 1024px) {
    .layout-container { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .desktop-nav { display: none; }
    .mobile-menu-btn { display: block; }
}

/* Footer Styles */
.site-footer {
    background-color: var(--card-bg);
    border-top: 1px solid var(--glass-border);
    padding: 40px 20px;
    margin-top: 40px;
    text-align: center;
    padding-bottom: 100px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-logo {
    margin-bottom: 10px;
}

.footer-tagline {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-main) !important;
    text-decoration: none !important;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--primary) !important;
}

.footer-copyright {
    color: var(--text-muted);
    font-size: 0.8rem;
}

@media (min-width: 768px) {
    .site-footer {
        padding-bottom: 20px;
    }
}


/* ==========================================
   PAGE SHELL & MAIN CONTENT
========================================== */
#blog-content {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    color: var(--text-main);
    font-family: var(--font-main);
}

.sticky-header .header-container.centered {
    display: flex;
    justify-content: center !important;
    align-items: center;
}

/* ==========================================
   PROFESSIONAL FOOTER (AdSense Optimized)
========================================== */
.site-footer {
    background-color: var(--card-bg);
    border-top: 1px solid var(--glass-border);
    padding: 60px 20px 30px;
    margin-top: 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto 40px;
    text-align: left;
}

.footer-about .footer-logo {
    margin-bottom: 15px;
}

.footer-about .footer-tagline {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 25px;
    max-width: 400px;
}

.footer-socials {
    display: flex;
    gap: 15px;
}

.footer-socials a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-socials a:hover {
    background: var(--primary);
    color: #000;
}

.footer-links-col h4 {
    color: var(--text-main);
    font-family: var(--font-heading);
    font-size: 1.1rem;
    margin-top: 0;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
}

.footer-links-col a {
    display: block;
    color: var(--text-muted) !important;
    text-decoration: none !important;
    font-size: 0.95rem;
    margin-bottom: 12px;
    transition: color 0.3s ease;
}

.footer-links-col a:hover {
    color: var(--primary) !important;
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 25px;
    border-top: 1px solid var(--glass-border);
    text-align: center;
}

.footer-copyright {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin: 0;
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    .footer-about .footer-tagline {
        margin: 0 auto 25px;
    }
    .footer-socials {
        justify-content: center;
    }
}
