/* Bootstrap 5 Custom Overrides for FindUFO */
/* Maintain starry theme and original visual effects */

/* Global style overrides */
body {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #16213e 100%);
    color: #ffffff;
    font-family: 'Inter', sans-serif;
}

/* Custom navigation bar styles */
.custom-navbar {
    background: rgba(0, 0, 0, 0.9) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.custom-navbar .navbar-brand h1 {
    background: linear-gradient(45deg, #00d4ff, #ff77c6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    font-size: 1.8rem;
}

.custom-navbar .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

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

.custom-navbar .nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(45deg, #00d4ff, #ff77c6);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.custom-navbar .nav-link:hover::after,
.custom-navbar .nav-link.active::after {
    width: 100%;
}

/* Custom card component styles */
.card {
    background: rgba(255, 255, 255, 0.05) !important;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 15px;
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 212, 255, 0.2);
    border-color: rgba(0, 212, 255, 0.3) !important;
}

.card-body {
    color: #ffffff;
}

.card-title {
    color: #ffffff !important;
    font-weight: 600;
}

.card-text {
    color: rgba(255, 255, 255, 0.8) !important;
}

/* Custom button styles */
.btn-primary {
    background: linear-gradient(45deg, #00d4ff, #0099cc);
    border: none;
    border-radius: 25px;
    font-weight: 600;
    padding: 12px 30px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(45deg, #0099cc, #00d4ff);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 212, 255, 0.4);
}

.btn-outline-primary {
    border: 2px solid #00d4ff;
    color: #00d4ff;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background: #00d4ff;
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 212, 255, 0.4);
}

.btn-outline-light {
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: #ffffff;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #ffffff;
    color: #ffffff;
    transform: translateY(-2px);
}

/* Custom form control styles */
.form-control,
.form-select {
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: #ffffff !important;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
    background: rgba(255, 255, 255, 0.15) !important;
    border-color: #00d4ff !important;
    box-shadow: 0 0 0 0.2rem rgba(0, 212, 255, 0.25) !important;
    color: #ffffff !important;
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.6) !important;
}

/* Dropdown option styles */
.form-select option {
    background: #1a1a2e !important;
    color: #ffffff !important;
    padding: 8px 12px;
}

.form-select option:hover,
.form-select option:focus,
.form-select option:checked {
    background: #16213e !important;
    color: #00d4ff !important;
}

.form-select option:disabled {
    background: #0a0a0a !important;
    color: rgba(255, 255, 255, 0.5) !important;
}

.form-label {
    color: #ffffff !important;
    font-weight: 500;
}

/* Custom badge styles */
.badge {
    border-radius: 20px;
    font-weight: 500;
    padding: 8px 15px;
}

.badge.bg-primary {
    background: linear-gradient(45deg, #00d4ff, #0099cc) !important;
}

.badge.bg-success {
    background: linear-gradient(45deg, #00ff88, #00cc6a) !important;
}

.badge.bg-warning {
    background: linear-gradient(45deg, #ffaa00, #ff8800) !important;
}

.badge.bg-info {
    background: linear-gradient(45deg, #78dbff, #4fc3f7) !important;
}

.badge.bg-secondary {
    background: rgba(255, 255, 255, 0.2) !important;
    color: #ffffff !important;
}

/* Pagination custom styles */
.pagination .page-link {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    margin: 0 2px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.pagination .page-link:hover {
    background: rgba(0, 212, 255, 0.2);
    border-color: #00d4ff;
    color: #00d4ff;
}

.pagination .page-item.active .page-link {
    background: linear-gradient(45deg, #00d4ff, #0099cc);
    border-color: #00d4ff;
    color: #ffffff;
}

.pagination .page-item.disabled .page-link {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.3);
}

/* Custom input group styles */
.input-group .btn {
    border-radius: 0 10px 10px 0;
}

.input-group .form-control {
    border-radius: 10px 0 0 10px;
}

/* Video background styles (homepage only) */
.homepage .video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.homepage .video-background video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.homepage .video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

/* Static starry background effect (other pages) */
.starry-page,
.starry-background {
    position: relative;
}

.starry-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.stars, .stars2, .stars3 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
}

.stars {
    background-image: 
        radial-gradient(2px 2px at 20px 30px, #eee, transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(255,255,255,0.8), transparent),
        radial-gradient(1px 1px at 90px 40px, #fff, transparent),
        radial-gradient(1px 1px at 130px 80px, rgba(255,255,255,0.6), transparent),
        radial-gradient(2px 2px at 160px 30px, #ddd, transparent);
    background-repeat: repeat;
    background-size: 200px 100px;
}

.stars2 {
    background-image: 
        radial-gradient(1px 1px at 40px 60px, rgba(255,255,255,0.7), transparent),
        radial-gradient(1px 1px at 120px 20px, rgba(255,255,255,0.5), transparent),
        radial-gradient(1px 1px at 180px 90px, rgba(255,255,255,0.8), transparent);
    background-repeat: repeat;
    background-size: 250px 120px;
}

.stars3 {
    background-image: 
        radial-gradient(1px 1px at 60px 80px, rgba(0,212,255,0.6), transparent),
        radial-gradient(1px 1px at 140px 40px, rgba(255,119,198,0.4), transparent),
        radial-gradient(1px 1px at 200px 100px, rgba(120,219,255,0.5), transparent);
    background-repeat: repeat;
    background-size: 300px 150px;
}

/* Hero section custom styles */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-title {
    background: linear-gradient(45deg, #00d4ff, #ff77c6, #78dbff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(0, 212, 255, 0.5);
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from { text-shadow: 0 0 20px rgba(0, 212, 255, 0.5); }
    to { text-shadow: 0 0 30px rgba(0, 212, 255, 0.8), 0 0 40px rgba(255, 119, 198, 0.3); }
}

.hero-subtitle {
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* Page title styles */
.page-title {
    background: linear-gradient(45deg, #00d4ff, #ff77c6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
    margin-bottom: 2rem;
}

/* Statistics card special styles */
.stat-card {
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
}

.stat-number {
    background: linear-gradient(45deg, #00d4ff, #ff77c6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* UFO Sightings Page Styles */
.ufo-sightings-page {
    min-height: 100vh;
    position: relative;
}

/* Statistics card styles */
.stat-card {
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 12px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 212, 255, 0.3);
    border-color: rgba(0, 212, 255, 0.4) !important;
}

.stat-number {
    background: linear-gradient(45deg, #00d4ff, #ff77c6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

.stat-label {
    color: rgba(255, 255, 255, 0.8) !important;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* UFO sightings card styles */
.sighting-card {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 15px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.sighting-card .card-body {
    padding-top: 0rem;
}

.sighting-card .badge {
    margin-bottom: 0.5rem;
}

.sighting-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 212, 255, 0.2);
    border-color: rgba(0, 212, 255, 0.3) !important;
}

.sighting-card .card-body {
    padding: 1rem;
    color: #ffffff;
}

.sighting-card .card-title {
    color: #ffffff !important;
    font-weight: 600;
    font-size: 1.1rem;
    line-height: 1.4;
}

.sighting-card .card-text {
    color: rgba(255, 255, 255, 0.8) !important;
    font-size: 0.95rem;
    line-height: 1.5;
}

.sighting-details {
    max-height: 300px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 212, 255, 0.3) transparent;
}

.sighting-details::-webkit-scrollbar {
    width: 4px;
}

.sighting-details::-webkit-scrollbar-track {
    background: transparent;
}

.sighting-details::-webkit-scrollbar-thumb {
    background: rgba(0, 212, 255, 0.3);
    border-radius: 2px;
}

.sighting-details strong {
    color: #00d4ff;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sighting-details p,
.sighting-details span {
    color: #b8c5d6;
    font-size: 0.85rem;
    line-height: 1.4;
}

.sighting-card .badge {
    font-size: 0.75rem;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
}

.sightings-grid {
    align-items: stretch;
}

.sightings-grid .col-md-6,
.sightings-grid .col-lg-4 {
    display: flex;
    align-items: stretch;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem !important;
    }
    
    .hero-subtitle {
        font-size: 1.1rem !important;
    }
    
    .btn-lg {
        padding: 10px 25px;
        font-size: 1rem;
    }
    
    .card {
        margin-bottom: 1rem;
    }
    
    .stat-card .stat-number {
        font-size: 2rem;
    }
    
    .sighting-card .card-body {
        padding: 1rem;
    }
    
    .sighting-details {
        max-height: 250px;
    }
    
    .sightings-grid .col-md-6 {
        margin-bottom: 1rem;
    }
}

/* Dark theme text colors */
.text-muted {
    color: rgba(255, 255, 255, 0.6) !important;
}

.lead {
    color: rgba(255, 255, 255, 0.9) !important;
}

h1, h2, h3, h4, h5, h6 {
    color: #ffffff !important;
}

p {
    color: rgba(255, 255, 255, 0.8);
}

/* Ensure all Bootstrap components are visible on dark background */
.navbar-toggler-icon {
    filter: invert(1);
}

.dropdown-menu {
    background: rgba(0, 0, 0, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.dropdown-item {
    color: #ffffff;
}

.dropdown-item:hover {
    background: rgba(0, 212, 255, 0.2);
    color: #00d4ff;
}