@charset "utf-8";

/* ==========================================================================
   1. CORE SETUP & VARIABLES
   ========================================================================== */

:root {
    /* Define your brand's color palette here for easy updates. */
    --hg-dark-bg: #00001a;       /* Your main dark background */
    --hg-dark-card: #1a1a2e;     /* A slightly lighter dark for cards/panels */
    --hg-primary: #0d6efd;       /* Bootstrap's default blue, can be changed */
    --hg-secondary: #6c757d;    /* Bootstrap's default grey */
    --hg-text-light: #d6d6d6;   /* Your primary light text color */
    --hg-text-muted: #8892bf;   /* A softer text color for labels/muted text */
}

/* Core Body & Layout Fixes */
html, body {
    overflow-x: hidden; /* Prevents horizontal scrollbars site-wide */
    width: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: var(--hg-dark-bg);
    color: var(--hg-text-light);
}

/* ==========================================================================
   2. TYPOGRAPHY & HEADINGS
   ========================================================================== */
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
    color: var(--hg-text-light);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

p, li, span {
    color: var(--hg-text-light);
}

p {
    color: #ffffff !important;
}

p.lead {
    color: #ffffff !important;
}

.text-muted {
    color: #ffffff !important;
}

/* REMOVED: Duplicate 'a' and 'a:hover' styles. 
   Hyperlinks are now handled exclusively by the "HOLODECK HYPERLINKS" section at the bottom. */

/* ==========================================================================
   3. NAVIGATION & HEADER
   ========================================================================== */
.navbar.fixed-top {
    background-color: rgba(0, 0, 0, 0.85) !important;
    backdrop-filter: blur(10px);
}

.navbar .navbar-brand img {
    max-height: 40px;
}

.navbar .nav-link {
    text-transform: uppercase;
    font-weight: 600;
}

/* EDITED: Removed :hover to avoid conflict with Gold Glow */
.navbar .nav-link.active {
    color: #fff !important;
}

.dropdown-menu {
    background-color: #212529;
    border: 1px solid #343a40;
}
.dropdown-item {
    color: var(--hg-text-light);
}
.dropdown-item:hover, .dropdown-item:focus {
    color: #fff;
    background-color: var(--hg-primary);
}

/* ==========================================================================
   4. HERO VIDEO SECTION
   ========================================================================== */
.hero-section {
    position: relative;
    width: 100%;
    margin-top: 60px; /* Offset for the fixed navbar height */
}

.hero-video {
    width: 100%;
    height: auto;
    display: block;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.hero-content {
    color: #fff;
}

/* ==========================================================================
   5. CARDS, FORMS, & FOOTER
   ========================================================================== */
.card {
    background-color: var(--hg-dark-card);
    border: 1px solid #343a40;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5) !important;
}

.card-header {
    background-color: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid #343a40;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Homepage Login/Register Cards */
.card.border-primary {
    border-color: var(--hg-primary) !important;
}

.card.border-primary .card-header {
    background: linear-gradient(135deg, var(--hg-primary) 0%, #0056b3 100%);
}

.card.border-secondary .card-header {
    background: linear-gradient(135deg, var(--hg-secondary) 0%, #495057 100%);
}

.list-group-flush .list-group-item {
    border-color: rgba(255, 255, 255, 0.1);
}

.form-control, .form-select {
    background-color: #2c2c3a;
    color: var(--hg-text-light);
    border: 1px solid #444;
}

.form-control:focus, .form-select:focus {
    background-color: #2c2c3a;
    color: var(--hg-text-light);
    border-color: var(--hg-primary);
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25); /* Corresponds to var(--hg-primary) */
}

.form-floating > label {
    color: var(--hg-text-muted);
}

footer {
    background-color: #101010;
    color: #888;
    padding: 20px 0;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
    font-size: 0.85rem;
}

/* REMOVED: Duplicate 'footer a' styles. 
   Footer links are now handled by the "HOLODECK HYPERLINKS" section. */

/* ==========================================================================
   6. BOOTSTRAP 5 TOAST NOTIFICATIONS (NEW)
   ========================================================================== */

/* This ensures the toast container is above other content */
.toast-container {
    z-index: 1100; /* Higher than the navbar */
}

.toast {
    background-color: var(--hg-dark-card);
    border: 1px solid #444;
    color: var(--hg-text-light);
}

.toast-header {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--hg-text-muted);
    border-bottom: 1px solid #444;
}

/* Make the close button visible on dark background */
.toast-header .btn-close {
    background-color: #fff;
}

/* Styling for success messages */
.toast.toast-success .toast-header {
    color: #198754; /* Bootstrap success green */
}
.toast.toast-success #toastIcon::before {
    content: "\f26a"; /* Bootstrap Icons: check-circle-fill */
    font-weight: bold;
}

/* Styling for error messages */
.toast.toast-danger .toast-header {
    color: #dc3545; /* Bootstrap danger red */
}
.toast.toast-danger #toastIcon::before {
    content: "\f337"; /* Bootstrap Icons: exlamation-triangle-fill */
    font-weight: bold;
}

/* ==========================================================================
   7. INDEX PAGE - ANIMATIONS & INTERACTIVE ELEMENTS
   ========================================================================== */

/* Pulse animation for badges */
.pulse-badge {
    animation: pulse 2s infinite;
    display: inline-block;
}
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Fade-in animation for dynamic content */
.animate-fade-in {
    animation: fadeIn 0.5s ease-in;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Statistics cards with hover effect */
.stat-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

/* Monospace styling for statistics numbers */
.stat-number {
    font-family: "Courier New", monospace;
    letter-spacing: -2px;
}

/* Activity feed styling */
.activity-feed {
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid rgba(255,255,255,0.1);
}
.activity-item {
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding: 10px 0;
}
.activity-item:last-child {
    border-bottom: none;
}
.activity-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Destination Cards */
.destination-card {
    cursor: pointer;
    transition: transform 0.3s ease;
}
.destination-card:hover {
    transform: scale(1.05);
}
.destination-card img {
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.destination-card:hover img {
    transform: scale(1.1);
}
.destination-overlay {
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.3) 100%);
    transition: background 0.3s ease;
}
.destination-card:hover .destination-overlay {
    background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.5) 100%);
}

/* Event Cards (Homepage specific) */
.event-card-home {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.event-card-home:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5) !important;
}
.event-card-home img {
    height: 200px;
    object-fit: cover;
}

/* Pulsing button effect for CTA */
@keyframes buttonPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.7); }
    50% { box-shadow: 0 0 0 10px rgba(40, 167, 69, 0); }
}
.btn-pulse {
    animation: buttonPulse 2s infinite;
}

/* ==========================================================================
   HOLODECK HYPERLINKS (High-Tech Glow | No Underline)
   ========================================================================== */

/* 1. Global Link Styles (Excluding Buttons) */
a:not(.btn):not(.nav-link) {
    color: #0dcaf0; /* Hologram Cyan Default */
    text-decoration: none !important; /* NO Underline */
    transition: all 0.3s ease;
    position: relative;
}

/* 2. Hover Effect: Gold Color + Glow + Subtle Expansion */
a:not(.btn):not(.nav-link):hover {
    color: #ffc107 !important; /* Starfleet Gold */
    text-shadow: 0 0 8px rgba(255, 193, 7, 0.6); /* The Glow */
    text-decoration: none !important; /* NO Underline */
    letter-spacing: 0.5px; /* Slight expansion animation */
}

/* 3. Footer Links Specifics */
footer a, footer span {
    /* 1. FORCE THE FONT FAMILY (Just to be safe) */
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
    
    /* 2. MATCH THE HEADER STYLE (This is the key visual fix) */
    text-transform: uppercase !important; /* Makes it all caps like Header */
    font-weight: 600 !important;          /* Makes it bold like Header */
    letter-spacing: 1px !important;       /* Adds the tech spacing */
    font-size: 0.85rem !important;
    
    /* 3. Standard Link Stuff */
    text-decoration: none !important;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

footer a:hover {
    color: #ffc107 !important;
    text-shadow: 0 0 10px rgba(255, 193, 7, 0.8);
    text-decoration: none !important;
}

/* 4. Navbar Links (Menu) Glow Effect */
.navbar-dark .navbar-nav .nav-link {
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link:focus {
    color: #ffc107 !important;
    text-shadow: 0 0 10px rgba(255, 193, 7, 0.8); /* Stronger glow for menu */
}