/* TouristRank.com Dark Theme Styles */

/* Import Inter font from Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* Global styles */
* {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Override Bootstrap primary color to black */
.bg-primary {
    background-color: #000000 !important;
}

.text-primary {
    color: rgb(237, 237, 237) !important;
}

/* Force navbar to be black */
.navbar.navbar-dark.bg-primary {
    background-color: #000000 !important;
}

/* Force hero section to be black */
.hero-section.bg-primary {
    background-color: #000000 !important;
}

/* Additional overrides for maximum specificity */
body .navbar.bg-primary {
    background-color: #000000 !important;
}

body .hero-section.bg-primary {
    background-color: #000000 !important;
}

body {
    background: #000000;
    color: rgb(237, 237, 237);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Secondary text with 60% opacity */
.text-secondary, .text-secondary, .form-text, .small {
    color: rgba(255, 255, 255, 0.6) !important;
}

/* Navbar dark theme */
.navbar, .navbar.navbar-dark, .navbar.navbar-expand-lg {
    background: #000000 !important;
    background-color: #000000 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar-brand {
    font-weight: 300;
    font-size: 1.2rem;
    color: rgb(237, 237, 237) !important;
}

.navbar-nav .nav-link {
    color: rgb(237, 237, 237) !important;
    font-weight: 400;
}

.navbar-nav .nav-link:hover {
    color: rgba(255, 255, 255, 0.8) !important;
}

/* Cards dark theme */
.card {
    background: #111111;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.2s ease-in-out;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

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

.card-header {
    background: #1a1a1a;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: rgb(237, 237, 237);
}

.card-body {
    color: rgb(237, 237, 237);
}

/* Buttons dark theme */
.btn {
    border-radius: 0.375rem;
    font-weight: 500;
}

.btn-primary {
    background: #0066cc;
    border-color: #0066cc;
}

.btn-primary:hover {
    background: #0052a3;
    border-color: #0052a3;
}

.btn-secondary {
    background: #333333;
    border-color: #333333;
    color: rgb(237, 237, 237);
}

.btn-secondary:hover {
    background: #444444;
    border-color: #444444;
    color: rgb(237, 237, 237);
}

.btn-outline-primary {
    color: #0066cc;
    border-color: #0066cc;
}

.btn-outline-primary:hover {
    background: #0066cc;
    border-color: #0066cc;
    color: rgb(237, 237, 237);
}

/* Forms dark theme */
.form-control {
    background: #111111;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgb(237, 237, 237);
}

.form-control:focus {
    background: #111111;
    border-color: #0066cc;
    color: rgb(237, 237, 237);
    box-shadow: 0 0 0 0.2rem rgba(0, 102, 204, 0.25);
}

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

.form-label {
    color: rgb(237, 237, 237);
    font-weight: 500;
}

/* Alerts dark theme */
.alert {
    border-radius: 0.375rem;
    border: none;
}

.alert-success {
    background: rgba(40, 167, 69, 0.2);
    color: #28a745;
    border-left: 4px solid #28a745;
}

.alert-danger {
    background: rgba(220, 53, 69, 0.2);
    color: #dc3545;
    border-left: 4px solid #dc3545;
}

.alert-warning {
    background: rgba(255, 193, 7, 0.2);
    color: #ffc107;
    border-left: 4px solid #ffc107;
}

.alert-info {
    background: rgba(23, 162, 184, 0.2);
    color: #17a2b8;
    border-left: 4px solid #17a2b8;
}

/* Tables dark theme */
.table {
    color: rgb(237, 237, 237);
}

.table th {
    background: #1a1a1a;
    border-color: rgba(255, 255, 255, 0.1);
    color: rgb(237, 237, 237);
    font-weight: 600;
}

.table td {
    border-color: rgba(255, 255, 255, 0.1);
}

.table-striped tbody tr:nth-of-type(odd) {
    background: rgba(255, 255, 255, 0.05);
}

/* Hero section */
.hero-section, .hero-section.text-white {
    background: #000000 !important;
    background-color: #000000 !important;
    color: rgb(237, 237, 237) !important;
}

/* Icons */
.fa-star {
    color: #ffc107;
}

/* Footer */
footer {
    margin-top: auto;
    background: #111111;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}

main {
    flex: 1;
}

/* Custom animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .hero-section .fa-hotel {
        font-size: 5rem !important;
    }
}

/* CRITICAL: Override Bootstrap with maximum specificity */
html body .navbar.bg-primary {
    background-color: #000000 !important;
    background: #000000 !important;
}

html body .hero-section.bg-primary {
    background-color: #000000 !important;
    background: #000000 !important;
}

/* Force override for any Bootstrap primary classes */
.bg-primary {
    background-color: #000000 !important;
    background: #000000 !important;
}

/* Additional specificity for navbar */
.navbar.navbar-expand-lg.navbar-dark.bg-primary {
    background-color: #000000 !important;
    background: #000000 !important;
}
