/* Global Styles */
body {
    margin: 0;
    font-family: "Orbitron", serif;
    background-color: #121212;
    color: #ffffff;
}

/* Navigation Styles */
.navbar-brand .brand-text {
    font-family: 'Orbitron', monospace !important;
    font-weight: 600;
    font-size: 1.4rem;
    color: #00ffff !important;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
}

/* Large Badge-Style Logo */
.logo-badge {
    position: relative !important;
    z-index: 1060 !important; /* Higher than navbar to overlap */
    padding: 0 !important;
    margin-right: 2rem !important;
}

.logo-container {
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f1419 100%);
    border: 3px solid #00ffff;
    border-radius: 25px;
    padding: 12px 20px;
    box-shadow: 
        0 0 25px rgba(0, 255, 255, 0.5),
        inset 0 0 25px rgba(0, 255, 255, 0.1),
        0 4px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    position: absolute;
    top: -25px; /* Overlap above navbar */
    height: 100px; /* Much larger badge */
    min-width: 240px;
    left: 20px;
}

.logo-container:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 0 35px rgba(0, 255, 255, 0.7),
        inset 0 0 30px rgba(0, 255, 255, 0.15),
        0 6px 20px rgba(0, 0, 0, 0.4);
    border-color: #00ccff;
}

.logo-image {
    width: 75px !important; /* Even bigger logo */
    height: 75px !important;
    margin-right: 15px;
    filter: drop-shadow(0 0 12px rgba(0, 255, 255, 0.4));
    transition: all 0.3s ease;
}

.logo-container:hover .logo-image {
    filter: drop-shadow(0 0 18px rgba(0, 255, 255, 0.6));
    transform: scale(1.05);
}

.logo-container .brand-text {
    font-family: 'Orbitron', monospace !important;
    font-weight: 700;
    font-size: 1.2rem;
    color: #00ffff !important;
    text-shadow: 0 0 18px rgba(0, 255, 255, 0.6);
    white-space: nowrap;
}

/* Keep navbar normal size */
.navbar {
    min-height: 60px !important; /* Back to normal navbar height */
    padding: 8px 0 !important;
    margin-top: 15px; /* Add spacer from browser top */
}

/* Ensure navbar content aligns properly and leaves space for overlapping logo */
.navbar-nav {
    margin-left: auto;
    align-items: center;
}

.navbar .container-fluid {
    padding-left: 280px; /* Make room for the overlapping badge */
}

/* Mobile responsiveness for logo */
@media (max-width: 768px) {
    .logo-container {
        height: 80px;
        min-width: 180px;
        padding: 8px 16px;
        top: -20px;
        left: 10px;
    }
    
    .logo-image {
        width: 60px !important;
        height: 60px !important;
        margin-right: 10px;
    }
    
    .logo-container .brand-text {
        font-size: 1rem;
    }
    
    .navbar {
        margin-top: 10px;
    }
    
    .navbar .container-fluid {
        padding-left: 200px;
    }
}

@media (max-width: 576px) {
    .navbar .container-fluid {
        padding-left: 10px;
        padding-top: 60px; /* Stack navigation below logo on very small screens */
    }
    
    .logo-container {
        left: 50%;
        transform: translateX(-50%);
        top: -30px;
    }
}

.navbar-nav .nav-link {
    font-family: 'Orbitron', monospace !important;
    font-weight: 400;
}

/* Adjust body padding for navbar with overlapping badge */
body {
    padding-top: 90px !important; /* Account for navbar + spacer + badge overlap */
}

/* Adjust for mobile */
@media (max-width: 768px) {
    body {
        padding-top: 80px !important;
    }
}

@media (max-width: 576px) {
    body {
        padding-top: 110px !important; /* Extra space for stacked layout */
    }
}

/* Footer Styles */
.footer-title,
.footer-section-title {
    font-family: 'Orbitron', monospace !important;
    font-weight: 600;
    color: #00ffff !important;
}

.footer-text,
.footer-links a {
    font-family: 'Inter', sans-serif !important;
}

/* Utility Classes */
.text-cyan {
    color: #00ffff !important;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
}

.bg-gradient-dark {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #16213e 100%);
}

/* Enhanced Feature Boxes */
.feature-box {
    padding: 1.5rem;
    border-radius: 10px;
    background: rgba(25, 25, 35, 0.6);
    border: 1px solid rgba(0, 255, 255, 0.1);
    transition: all 0.3s ease;
    height: 100%;
}

.feature-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 255, 255, 0.2);
    border-color: rgba(0, 255, 255, 0.3);
}

.feature-box h5 {
    color: #00ffff;
    margin-bottom: 1rem;
}

/* Enhanced Category Cards */
.category-card {
    background: rgba(25, 25, 35, 0.9) !important;
    border: 1px solid rgba(0, 255, 255, 0.2) !important;
    transition: all 0.3s ease;
}

.category-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 255, 255, 0.2);
    border-color: rgba(0, 255, 255, 0.4) !important;
}
.nav-tabs {
    background-color: rgb(109, 81, 112);
    border: none;
}
.nav-tabs .nav-link {
    color: #ffffff;
}
.nav-tabs .nav-link.active {
    background-color: rgb(63, 176, 170);
    color: #ffffff;
}
.hero {
    position: relative;
    text-align: center;
}
.hero img {
    width: 100%;
    max-height: 600px;
    object-fit: cover;
}
.hero h1 {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #ffffff;
    font-size: 3em;
    background: rgba(0, 0, 0, 0.5);
    padding: 10px 20px;
}
.form-container {
    margin: 20px auto;
    max-width: 500px;
    background: #1f1f1f;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}
.form-container input,
.form-container textarea,
.form-container button {
    width: 100%;
    margin: 10px 0;
    padding: 10px;
    border: none;
    border-radius: 5px;
    background: #333;
    color: #ffffff;
    font-size: 1em;
}
.form-container button {
    background: #007BFF;
    cursor: pointer;
}
.form-container button:hover {
    background: #0056b3;
}
.links {
    margin: 20px;
    text-align: center;
}
.links a {
    color: #007BFF;
    text-decoration: none;
    margin: 0 10px;
}
.links a:hover {
    text-decoration: underline;
}
.captcha-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.captcha-container input {
    flex: 1;
    margin-right: 10px;
}
h2 {
    text-align: center;
    margin: 20px 0;
}

image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    background: #1f1f1f;
    padding: 10px;
    border: 1px solid #333;
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    /* Navigation improvements */
    .nav-tabs {
        flex-wrap: wrap;
    }
    
    .nav-tabs .nav-item {
        margin-bottom: 5px;
    }
    
    .nav-tabs .nav-link {
        padding: 8px 12px;
        font-size: 0.9em;
    }
    
    /* Header responsive */
    header .container {
        flex-direction: column;
        text-align: center;
    }
    
    header img {
        margin-bottom: 15px;
        height: 70px !important;
    }
    
    .nav-tabs {
        justify-content: center;
        margin: 0;
    }
    
    /* Hero section responsive */
    .hero h1 {
        font-size: 1.8em;
        padding: 8px 15px;
    }
    
    .hero p {
        font-size: 0.9em;
        padding: 0 15px;
        margin: 10px 0;
    }
    
    /* Video container responsive */
    .video-container {
        padding: 0 15px;
        margin: 20px 0;
    }
    
    .video-container iframe {
        width: 100% !important;
        height: 200px !important;
        max-width: 400px;
        margin: 0 auto;
        display: block;
    }
    
    /* Form container responsive */
    .form-container {
        margin: 20px 15px;
        padding: 15px;
    }
    
    .form-container input,
    .form-container textarea,
    .form-container button {
        font-size: 0.9em;
        padding: 8px;
    }
    
    /* Mystery sections responsive */
    .mystery-list {
        margin-bottom: 30px;
    }
    
    .mystery-item h4 {
        font-size: 1em;
    }
    
    .mystery-item p {
        font-size: 0.85em;
    }
    
    /* Container padding adjustments */
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    /* Button styling improvements */
    .button, .form-container button {
        display: inline-block;
        padding: 10px 20px;
        text-align: center;
        min-width: 120px;
    }
    
    /* Captcha container responsive */
    .captcha-container {
        flex-direction: column;
        gap: 10px;
    }
    
    .captcha-container input {
        margin-right: 0;
        margin-bottom: 10px;
    }
}

@media (max-width: 480px) {
    /* Extra small screens */
    .hero h1 {
        font-size: 1.5em;
        padding: 5px 10px;
    }
    
    .nav-tabs .nav-link {
        padding: 6px 8px;
        font-size: 0.8em;
    }
    
    header img {
        height: 60px !important;
    }
    
    .video-container iframe {
        height: 180px !important;
    }
    
    .form-container {
        margin: 15px 10px;
        padding: 12px;
    }
}

/* YouTube Video Styles */
.youtube-section {
    margin: 1.5rem 0;
    padding: 1rem;
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.8) 0%, rgba(22, 33, 62, 0.8) 100%);
    border: 1px solid #333;
    border-radius: 10px;
}

.youtube-video-container {
    margin-bottom: 1.5rem;
}

.youtube-video-container .video-title {
    color: #00ffff;
    font-family: 'Orbitron', monospace;
    margin-bottom: 0.75rem;
}

.youtube-video-card {
    background: rgba(26, 26, 46, 0.9);
    border: 1px solid #333;
    transition: all 0.3s ease;
}

.youtube-video-card:hover {
    border-color: #00ffff;
    box-shadow: 0 4px 15px rgba(0, 255, 255, 0.2);
    transform: translateY(-2px);
}

.youtube-video-card .card-img-top {
    height: 140px;
    object-fit: cover;
    border-bottom: 1px solid #333;
}

.youtube-video-card .card-title {
    color: #ffffff;
    font-size: 0.9rem;
    line-height: 1.3;
    margin-bottom: 0.5rem;
}

.youtube-video-card .btn-outline-primary {
    border-color: #dc3545;
    color: #dc3545;
}

.youtube-video-card .btn-outline-primary:hover {
    background-color: #dc3545;
    border-color: #dc3545;
    color: white;
}

.youtube-section h6, .youtube-section h5 {
    color: #00ffff;
    font-family: 'Orbitron', monospace;
    margin-bottom: 1rem;
}

.youtube-section .btn-outline-light {
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
    border-color: #666;
    color: #ccc;
}

.youtube-section .btn-outline-light:hover {
    background-color: #dc3545;
    border-color: #dc3545;
    color: white;
}

/* Responsive YouTube videos */
@media (max-width: 768px) {
    .youtube-video-card .card-img-top {
        height: 120px;
    }
    
    .youtube-section .btn-outline-light {
        font-size: 0.7rem;
        padding: 0.3rem 0.6rem;
        margin-bottom: 0.5rem;
    }
}

/* Source Verification Styles */
.source-credibility {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.source-credibility .badge {
    font-size: 0.8rem;
    padding: 5px 10px;
}

.source-count {
    color: #666;
    font-size: 0.9rem;
}

.source-list {
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 10px;
}

.source-item {
    padding: 10px;
    border-bottom: 1px solid #eee;
    transition: background-color 0.2s;
}

.source-item:last-child {
    border-bottom: none;
}

.source-item:hover {
    background-color: #f8f9fa;
}

.source-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 5px;
}

.source-header a {
    text-decoration: none;
    color: #007bff;
    flex: 1;
    margin-right: 10px;
}

.source-header a:hover {
    text-decoration: underline;
}

.source-meta {
    display: flex;
    align-items: center;
    gap: 8px;
}

.source-type {
    font-size: 0.7rem;
    text-transform: uppercase;
    padding: 2px 6px;
}

.source-weight {
    color: #ffc107;
    font-size: 0.8rem;
    cursor: help;
}

.source-domain {
    color: #666;
    font-size: 0.85rem;
    font-style: italic;
}

/* Badge variations for source types */
.badge-outline-news { border: 1px solid #17a2b8; color: #17a2b8; }
.badge-outline-academic { border: 1px solid #28a745; color: #28a745; }
.badge-outline-government { border: 1px solid #6f42c1; color: #6f42c1; }
.badge-outline-historical { border: 1px solid #fd7e14; color: #fd7e14; }
.badge-outline-investigative { border: 1px solid #dc3545; color: #dc3545; }
.badge-outline-documentary { border: 1px solid #6c757d; color: #6c757d; }
.badge-outline-unknown { border: 1px solid #adb5bd; color: #adb5bd; }

/* Credibility badge colors */
.badge-secondary { background-color: #6c757d; }
.badge-warning { background-color: #ffc107; color: #212529; }
.badge-info { background-color: #17a2b8; }
.badge-primary { background-color: #007bff; }
.badge-success { background-color: #28a745; }

/* Mobile responsiveness */
@media (max-width: 768px) {
    .source-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .source-meta {
        margin-top: 5px;
    }
    
    .source-list {
        max-height: 200px;
    }
}


/* Source Verification Styles */
#source-verification-section {
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.source-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border-left: 3px solid #17a2b8;
}

.source-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.source-card .card-title a {
    color: #495057;
    text-decoration: none;
    font-size: 0.9rem;
}

.source-card .card-title a:hover {
    color: #17a2b8;
    text-decoration: underline;
}

.progress {
    height: 8px;
}

.badge-light {
    background-color: #f8f9fa;
    color: #6c757d;
}

/* Credibility rating colors */
.badge.badge-secondary { background-color: #6c757d; }
.badge.badge-warning { background-color: #ffc107; color: #212529; }
.badge.badge-info { background-color: #17a2b8; }
.badge.badge-primary { background-color: #007bff; }
.badge.badge-success { background-color: #28a745; }

/* Responsive adjustments */
@media (max-width: 768px) {
    .source-card .card-title {
        font-size: 0.8rem;
    }
    
    #credibility-info .row {
        margin-bottom: 0.5rem;
    }
}
