/* Global Styles */
:root {
    --hauzd-primary: #ffffff;
    --hauzd-bg: #141414;
    /* Netflix-like dark background */
    --hauzd-card-bg: #1f1f1f;
    --transition-speed: 0.3s;
}

body {
    background-color: var(--hauzd-bg) !important;
    color: var(--hauzd-primary);
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
}

.font-inter {
    font-family: 'Inter', sans-serif;
}

/* Navbar */
.navbar {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0) 100%);
    z-index: 1000;
}

.navbar-brand {
    transition: opacity 0.3s ease;
}

/* Countries Grid */
.country-card {
    position: relative;
    border: none;
    border-radius: 4px;
    /* Minimal border radius */
    overflow: hidden;
    cursor: pointer;
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
    aspect-ratio: 16 / 9;
}

.country-card:hover {
    transform: scale(1.05);
    z-index: 10;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
}

.country-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: filter var(--transition-speed) ease;
}

.country-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0) 100%);
    opacity: 1;
    transition: opacity var(--transition-speed) ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.country-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
    line-height: 1.2;
    /* Better for multi-line like "Help me choose" */
}

.country-stats {
    font-size: 0.9rem;
    color: #e5e5e5;
    opacity: 0.8;
    display: none;
    /* Hidden by default, shown on hover/interaction if desired, or always shown */
}

/* Show stats on hover for a richer interactions */
.country-card:hover .country-stats {
    display: block;
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Help Card Styles */
.help-card {
    background-color: #222;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    /* Ensure pseudo-element doesn't overflow */
}

.help-card::before {
    content: '?';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 10rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.15);
    /* Extremely subtle */
    pointer-events: none;
    /* Make sure clicks pass through if z-index is wonky */
    z-index: 0;
}

.help-card .country-overlay {
    z-index: 1;
    /* Ensure overlay text is above the background mark */
}

/* Custom Tabs */
.custom-tab {
    background-color: transparent !important;
    border: none !important;
    border-bottom: 2px solid transparent !important;
    color: rgba(255, 255, 255, 0.5) !important;
    font-weight: 500;
    padding-bottom: 1rem;
    transition: all 0.2s ease;
}

.custom-tab:hover {
    color: rgba(255, 255, 255, 0.8) !important;
}

.custom-tab.active {
    color: #fff !important;
    border-bottom: 2px solid #fff !important;
}

/* Animations */
.animate-fade-in {
    animation: fadeInPage 0.5s ease-out;
}

@keyframes fadeInPage {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Form Styles */
.form-select:focus {
    box-shadow: none;
    border-color: #555;
}

.ls-1 {
    letter-spacing: 1px;
}