/* assets/css/style.css */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;1,400&family=Outfit:wght@300;400;600&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/animate.css/4.1.1/animate.min.css');

:root {
    --gold-primary: #CCA43B;
    --gold-hover: #bfa15f;
    --dark-bg: #0f0f0f;
    --dark-surface: #1a1a1a;
    --text-light: #f8f9fa;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-light);
}

h1,
h2,
h3,
h4,
h5,
h6,
.navbar-brand {
    font-family: 'Playfair Display', serif;
}

/* Navbar */
.navbar {
    background: rgba(15, 15, 15, 0.95) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(204, 164, 59, 0.2);
}

p {
    color: var(--text-light);
}

.text-center {
    color: var(--text-light);
}

.navbar-brand img {
    height: 45px;
    width: auto;
}

.nav-link {
    color: rgba(255, 255, 255, 0.8) !important;
    transition: color 0.3s;
}

.nav-link:hover,
.nav-link.active {
    color: var(--gold-primary) !important;
}

/* Buttons */
.btn-warning {
    background: linear-gradient(135deg, #CCA43B 0%, #E5C568 100%);
    border: none;
    color: #000;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.btn-warning:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(204, 164, 59, 0.4);
    background: linear-gradient(135deg, #E5C568 0%, #CCA43B 100%);
    color: #000;
}

.btn-dark {
    background: var(--dark-surface);
    border: 1px solid var(--gold-primary);
    color: var(--gold-primary);
}

.btn-dark:hover {
    background: var(--gold-primary);
    color: #000;
}

/* Cards */
.card {
    background: var(--dark-surface);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.4s ease;
}

.card:hover {
    transform: translateY(-8px);
    border-color: var(--gold-primary);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.card-title {
    color: var(--text-light);
}

.text-gold {
    color: var(--gold-primary) !important;
}

/* Page Spacing */
body.inner-page {
    padding-top: 100px;
    /* Space for fixed header */
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 4px solid var(--gold-primary);
    background: #000;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    z-index: 1;
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    /* Overlay darkness */
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    padding: 3rem;
    border-radius: 15px;
    border: 1px solid rgba(204, 164, 59, 0.3);
    max-width: 800px;
    margin: 0 auto;
}

.hero-content h1 {
    font-size: 5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    background: linear-gradient(to right, #CCA43B, #F9E29C, #CCA43B);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Mobile Responsive Optimization */
@media (max-width: 768px) {

    /* Navbar */
    .navbar-collapse {
        background: rgba(15, 15, 15, 0.98);
        padding: 1rem;
        border-radius: 10px;
        margin-top: 10px;
        border: 1px solid rgba(204, 164, 59, 0.2);
    }

    /* Hero Section */
    .hero-section {
        height: 100vh;
        /* Full viewport height on mobile */
    }

    .hero-content {
        padding: 1.5rem;
        width: 90%;
        margin-top: 60px;
        /* Offset for fixed header */
        background: rgba(0, 0, 0, 0.7);
        /* Darker bg for readability */
    }

    .hero-content h1 {
        font-size: 2.8rem;
        /* Smaller font for mobile */
        line-height: 1.2;
    }

    .hero-content p.lead {
        font-size: 1rem !important;
        margin-bottom: 2rem !important;
    }

    /* Buttons Stack */
    .hero-content .d-flex {
        flex-direction: column;
        gap: 15px !important;
    }

    .hero-content .btn {
        width: 100%;
        /* Full width buttons */
        padding: 12px 0;
    }

    /* Offers Section */
    .border-warning {
        text-align: center;
        padding: 1.5rem !important;
    }

    .text-end {
        text-align: center !important;
        margin-top: 20px;
    }

    .display-5 {
        font-size: 2rem;
        /* Smaller section headers */
    }

    .card-img-top {
        height: 250px !important;
        /* Adjust image height for cards */
    }
}

/* Utilities */
.bg-dark {
    background-color: var(--dark-surface) !important;
}

.text-muted {
    color: rgba(255, 255, 255, 0.6) !important;
}

/* Offers Section */
.offer-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #e74c3c;
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

input,
select,
textarea {
    background-color: #2a2a2a !important;
    border: 1px solid #444 !important;
    color: #fff !important;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--gold-primary) !important;
    box-shadow: 0 0 0 0.2rem rgba(204, 164, 59, 0.25) !important;
}

/* --- GLOBAL DARK MODE OVERRIDES --- */

.text-black {
    color: #000 !important;
}

.bg-warning {
    color: #000 !important;
    /* Force black text on warning bg default */
}

/* Tables */
.table {
    color: var(--text-light);
    border-color: rgba(255, 255, 255, 0.1);
}

.table-hover tbody tr:hover {
    color: var(--text-light);
    background-color: rgba(204, 164, 59, 0.1);
}

.table thead th {
    background-color: var(--dark-surface);
    color: var(--gold-primary);
    border-bottom: 2px solid var(--gold-primary);
}

/* Forms */
.form-control {
    background-color: var(--dark-surface);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-light);
}

.form-control:focus {
    background-color: var(--dark-surface);
    color: var(--text-light);
}

.form-label {
    color: var(--gold-primary);
    font-weight: 500;
}

/* Bootstrap Utilities Override */
.bg-light {
    background-color: var(--dark-bg) !important;
}

.text-dark {
    color: var(--text-light) !important;
}

.bg-white {
    background-color: var(--dark-surface) !important;
    color: var(--text-light) !important;
}

/* Modals */
.modal-content {
    background-color: var(--dark-surface);
    border: 1px solid var(--gold-primary);
    color: var(--text-light);
}

.modal-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-close {
    filter: invert(1);
}

/* Links */
a {
    color: var(--gold-primary);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--gold-hover);
}

/* Dashboard Specifics */
.list-group-item {
    background-color: var(--dark-surface);
    color: var(--text-light);
    border-color: rgba(255, 255, 255, 0.1);
}

/* Admin Panel Table Responsive Fix */
td {
    vertical-align: middle;
}

/* Document Upload Preview */
.uploaded-doc-preview {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 10px;
    background: rgba(204, 164, 59, 0.05);
    border: 1px solid rgba(204, 164, 59, 0.2);
    border-radius: 8px;
}

.uploaded-doc-preview img {
    border: 2px solid var(--gold-primary);
    border-radius: 6px;
    object-fit: cover;
}

.uploaded-doc-preview .btn-danger {
    background: #dc3545;
    border: none;
    transition: all 0.3s ease;
}

.uploaded-doc-preview .btn-danger:hover {
    background: #c82333;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.4);
}