/* ═══════════════════════════════════════════════════════════════════════════ */
/* ORBTRON THEME - Global CSS - RESPONSIVE MOBILE FIRST */
/* ═══════════════════════════════════════════════════════════════════════════ */

:root {
    --cyan-primary: #00ffff;
    --cyan-dark: #00cccc;
    --cyan-light: #33ffff;
    --dark-bg: #0a0e27;
    --darker-bg: #050812;
    --text-white: #ffffff;
    --text-light-gray: #f0f0f0;
}

* {
    scrollbar-width: thin;
    scrollbar-color: var(--cyan-primary) var(--darker-bg);
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body.orbtron-theme {
    background: linear-gradient(135deg, var(--dark-bg) 0%, var(--darker-bg) 100%);
    background-attachment: fixed;
    color: var(--text-white);
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 400;
    line-height: 1.6;
    overflow-x: hidden;
}

p, h1, h2, h3, h4, h5, h6, strong, small, li {
    color: var(--text-white);
}

h1 { font-size: 2.5rem; font-weight: 700; margin-bottom: 1.2rem; }
h2 { font-size: 2rem; font-weight: 700; margin-bottom: 1.2rem; }
h3 { font-size: 1.5rem; font-weight: 700; margin-bottom: 1.2rem; }
h4 { font-size: 1.25rem; font-weight: 700; margin-bottom: 1.2rem; }

a {
    color: var(--cyan-light);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--cyan-primary);
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

/* ═══════════════════════════════════════════════════════════════════════════ */
/* HAMBURGER MENU BUTTON */
/* ═══════════════════════════════════════════════════════════════════════════ */

.hamburger-menu {
    display: none;
    background: transparent;
    border: none;
    color: var(--cyan-primary);
    font-size: 1.8rem;
    cursor: pointer;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
    z-index: 1100;
}

.hamburger-menu:hover {
    color: var(--cyan-light);
    transform: scale(1.1);
}

/* ═══════════════════════════════════════════════════════════════════════════ */
/* RESPONSIVE CONTAINER */
/* ═══════════════════════════════════════════════════════════════════════════ */

.research-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
}

.research-sidebar {
    display: none;
    background: linear-gradient(135deg, rgba(0,255,255,0.1) 0%, rgba(0,0,0,0.8) 100%);
    padding: 1.5rem;
    border-right: 2px solid var(--cyan-primary);
}

.research-sidebar.visible {
    display: block;
}

.research-main {
    width: 100%;
    padding: 1rem;
}

/* DESKTOP - SHOW SIDEBAR */
@media (min-width: 993px) {
    .research-container {
        grid-template-columns: 300px 1fr;
        gap: 0;
    }
    
    .research-sidebar {
        display: block !important;
        position: sticky;
        top: 0;
        height: 100vh;
        overflow-y: auto;
    }
    
    .hamburger-menu {
        display: none !important;
    }
    
    .research-main {
        padding: 2rem;
    }
}

/* TABLET - BURGER MENU + FULL WIDTH */
@media (max-width: 992px) and (min-width: 769px) {
    .hamburger-menu {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    
    .research-sidebar {
        position: fixed;
        left: 0;
        top: 80px;
        width: 280px;
        height: calc(100vh - 80px);
        background: rgba(10, 14, 39, 0.98) !important;
        border-right: 2px solid var(--cyan-primary);
        z-index: 1000;
        overflow-y: auto;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }
    
    .research-sidebar.visible {
        transform: translateX(0);
    }
    
    .research-main {
        width: 100%;
        padding: 1.5rem;
    }
}

/* MOBILE - BURGER MENU + FULL WIDTH + LARGE HERO */
@media (max-width: 768px) {
    .hamburger-menu {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    
    .research-sidebar {
        position: fixed;
        left: 0;
        top: 70px;
        width: 100%;
        height: calc(100vh - 70px);
        background: rgba(10, 14, 39, 0.98) !important;
        border-right: none;
        border-bottom: 2px solid var(--cyan-primary);
        z-index: 1000;
        overflow-y: auto;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }
    
    .research-sidebar.visible {
        transform: translateX(0);
    }
    
    .research-main {
        width: 100%;
        padding: 1rem;
    }
    
    h1 { font-size: 1.5rem; }
    h2 { font-size: 1.1rem; }
    h3 { font-size: 1rem; }
    p { font-size: 0.95rem; }
}

/* ═══════════════════════════════════════════════════════════════════════════ */
/* HERO IMAGE - RESPONSIVE */
/* ═══════════════════════════════════════════════════════════════════════════ */

.hero-image-card {
    width: 100%;
    margin-bottom: 1.5rem;
}

.hero-image-card img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 12px;
    display: block;
}

/* Desktop: Medium hero */
@media (min-width: 993px) {
    .hero-image-card img {
        height: 350px;
    }
}

/* Tablet: Larger hero */
@media (max-width: 992px) and (min-width: 769px) {
    .hero-image-card img {
        height: 400px;
    }
}

/* Mobile: Full-width hero */
@media (max-width: 768px) {
    .hero-image-card img {
        height: 300px;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════ */
/* CARD STYLING */
/* ═══════════════════════════════════════════════════════════════════════════ */

.card {
    background-color: rgba(26, 31, 58, 0.9) !important;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 255, 255, 0.2);
    transition: all 0.3s ease;
    color: var(--text-white);
}

.card:hover {
    transform: translateY(-5px);
    background-color: rgba(26, 31, 58, 0.95) !important;
    border-color: rgba(0, 255, 255, 0.5);
    box-shadow: 0 10px 30px rgba(0, 255, 255, 0.15);
}

.card-header {
    background: rgba(0, 255, 255, 0.1) !important;
    border-bottom: 2px solid var(--cyan-primary);
    padding: 1.5rem;
    color: var(--text-white);
}

.card-body {
    padding: 1.5rem;
    color: var(--text-white);
}

/* ═══════════════════════════════════════════════════════════════════════════ */
/* BORDERS & GLOWS */
/* ═══════════════════════════════════════════════════════════════════════════ */

.border-cyan-glow {
    border: 2px solid var(--cyan-primary) !important;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
}

.border-cyan-glow-light {
    border-left: 3px solid var(--cyan-primary) !important;
    border-bottom: 1px solid var(--cyan-dark) !important;
    background: rgba(0, 255, 255, 0.05);
    color: var(--text-white) !important;
}

.text-cyan-glow {
    color: var(--cyan-primary);
}

.bg-gradient-cyan {
    background: linear-gradient(135deg, #00ffff 0%, #00cccc 100%) !important;
    color: #000 !important;
    font-weight: 700;
}

.bg-dark {
    background-color: rgba(10, 14, 39, 0.85) !important;
}

/* ═══════════════════════════════════════════════════════════════════════════ */
/* HIGHLIGHT BOXES */
/* ═══════════════════════════════════════════════════════════════════════════ */

.highlight-box, .algorithm-box, .formula-box, .component-box, 
.limitation-box, .optimization-box, .application-box, .question-box, 
.conclusion-highlight {
    background: rgba(0, 255, 255, 0.08);
    border-left: 4px solid var(--cyan-primary);
    border-radius: 8px;
    padding: 1.2rem 1.5rem;
    margin: 1.2rem 0;
    color: var(--text-white);
    transition: all 0.3s ease;
}

.highlight-box:hover, .algorithm-box:hover, .formula-box:hover,
.component-box:hover, .limitation-box:hover, .optimization-box:hover,
.application-box:hover, .question-box:hover, .conclusion-highlight:hover {
    background: rgba(0, 255, 255, 0.15);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.2);
    transform: translateX(5px);
}

/* ═══════════════════════════════════════════════════════════════════════════ */
/* LISTS & TABLES */
/* ═══════════════════════════════════════════════════════════════════════════ */

.tech-list, .problem-list, .summary-list, .resource-list {
    list-style: none;
    padding-left: 0;
}

.tech-list li, .problem-list li, .summary-list li, .resource-list li {
    padding: 0.8rem 0 0.8rem 2rem;
    border-left: 2px solid var(--cyan-dark);
    margin-bottom: 0.8rem;
    position: relative;
    color: var(--text-white);
}

.tech-list li::before, .problem-list li::before,
.summary-list li::before, .resource-list li::before {
    content: '▶';
    position: absolute;
    left: 0.5rem;
    color: var(--cyan-primary);
    font-weight: bold;
}

.evolution-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    background: rgba(0, 20, 40, 0.7);
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 6px;
}

.evolution-table th {
    background: rgba(0, 255, 255, 0.15);
    padding: 1rem;
    color: var(--cyan-light);
    font-weight: 700;
    border-bottom: 2px solid var(--cyan-primary);
}

.evolution-table td {
    padding: 1rem;
    color: var(--text-white);
    border-bottom: 1px solid rgba(0, 255, 255, 0.1);
}

.evolution-table tr:hover {
    background: rgba(0, 255, 255, 0.08);
}

/* ═══════════════════════════════════════════════════════════════════════════ */
/* CODE BLOCKS */
/* ═══════════════════════════════════════════════════════════════════════════ */

.code-block {
    background: rgba(5, 8, 18, 0.95);
    border: 1px solid rgba(0, 255, 255, 0.4);
    border-radius: 8px;
    padding: 1.5rem;
    overflow-x: auto;
    font-family: 'Courier New', monospace;
    font-size: 0.95rem;
    color: #00ff99;
    line-height: 1.8;
    margin: 1.2rem 0;
}

/* ═══════════════════════════════════════════════════════════════════════════ */
/* NAVBAR */
/* ═══════════════════════════════════════════════════════════════════════════ */

.navbar {
    background: rgba(10, 14, 39, 0.95) !important;
    backdrop-filter: blur(10px);
    border-bottom: 2px solid var(--cyan-primary);
    padding: 0.75rem 1rem !important;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--cyan-primary) !important;
}

.text-muted {
    color: var(--text-light-gray) !important;
}

/* ═══════════════════════════════════════════════════════════════════════════ */
/* PRINT */
/* ═══════════════════════════════════════════════════════════════════════════ */

@media print {
    .hamburger-menu, .research-sidebar { display: none !important; }
    .card { border: 1px solid #ccc; background: white; color: black; }
}

/* Navbar Back Button */
.navbar-back-btn {
    color: #00ffff;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border: 2px solid #00ffff;
    border-radius: 6px;
    transition: all 0.3s ease;
    display: inline-block;
}

.navbar-back-btn:hover {
    background: rgba(0,255,255,0.2);
    text-shadow: 0 0 10px rgba(0,255,255,0.5);
    color: #00ffff;
}

.navbar-back-btn:active {
    background: rgba(0,255,255,0.3);
}

/* Download Buttons */
.download-btn {
    background: rgba(0,255,255,0.1);
    border: 2px solid #00ffff;
    color: #00ffff;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    margin: 0.5rem;
}

.download-btn:hover {
    background: rgba(0,255,255,0.2);
    text-shadow: 0 0 10px rgba(0,255,255,0.5);
    transform: translateY(-2px);
}

.download-section {
    background: rgba(0,255,255,0.05);
    border: 2px solid #00ffff;
    border-radius: 10px;
    padding: 2rem;
    margin: 2rem 0;
    text-align: center;
}

.download-section h3 {
    color: #00ffff;
    margin-bottom: 1.5rem;
}
