﻿@charset "utf-8";

/* ==========================================================================
   1. CORE SETUP & VARIABLES
   ========================================================================== */

:root {
    /* Define your brand's color palette here for easy updates. */
    --alife-dark-bg: #00001a;       /* Your main dark background */
    --alife-dark-card: #1a1a2e;     /* A slightly lighter dark for cards/panels */
    --alife-primary: #0d6efd;       /* Bootstrap's default blue, can be changed */
    --alife-secondary: #6c757d;    /* Bootstrap's default grey */
    --alife-text-light: #d6d6d6;   /* Your primary light text color */
    --alife-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(--alife-dark-bg);
    color: var(--alife-text-light);
}

/* ==========================================================================
   2. TYPOGRAPHY & HEADINGS
   ========================================================================== */
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
    color: var(--alife-text-light);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

p, li, span {
    color: var(--alife-text-light);
}

p {
    color: #ffffff !important;
}

p.lead {
    color: #ffffff !important;
}

.text-muted {
    color: #ffffff !important;
}

a {
    color: var(--alife-primary);
    text-decoration: none;
    transition: color 0.2s ease-in-out;
}

a:hover {
    color: #4dabf7;
    text-decoration: underline;
}

/* ==========================================================================
   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;
}

.navbar .nav-link.active,
.navbar .nav-link:hover {
    color: #fff !important;
}

.dropdown-menu {
    background-color: #212529;
    border: 1px solid #343a40;
}
.dropdown-item {
    color: var(--alife-text-light);
}
.dropdown-item:hover, .dropdown-item:focus {
    color: #fff;
    background-color: var(--alife-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(--alife-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(--alife-primary) !important;
}

.card.border-primary .card-header {
    background: linear-gradient(135deg, var(--alife-primary) 0%, #0056b3 100%);
}

.card.border-secondary .card-header {
    background: linear-gradient(135deg, var(--alife-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(--alife-text-light);
    border: 1px solid #444;
}

.form-control:focus, .form-select:focus {
    background-color: #2c2c3a;
    color: var(--alife-text-light);
    border-color: var(--alife-primary);
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25); /* Corresponds to var(--alife-primary) */
}

.form-floating > label {
    color: var(--alife-text-muted);
}

footer {
    background-color: #101010;
    color: #888;
    padding: 40px 0;
}

footer a {
    color: #aaa;
    font-weight: bold;
}

footer a:hover {
    color: #fff;
}

/* ==========================================================================
   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(--alife-dark-card);
    border: 1px solid #444;
    color: var(--alife-text-light);
}

.toast-header {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--alife-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;
}

/* DateTime-local input styling for dark theme */
input[type="datetime-local"] {
    color-scheme: dark;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

input[type="datetime-local"]::-webkit-calendar-picker-indicator {
    filter: invert(1);
    cursor: pointer;
    opacity: 0.8;
}

input[type="datetime-local"]::-webkit-calendar-picker-indicator:hover {
    opacity: 1;
}

/* 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;
}