/* Triple Nickel Custom Styles */

:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --info-color: #0dcaf0;
    --dark-color: #212529;
    --light-color: #f8f9fa;
    --header-height: 130px; /* Increased for double-row header */
    --primary-dark: #0b5ed7;
}

/* Global Styles */
body {
    padding-top: var(--header-height);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
}

/* Fixed Header Styles */
header.fixed-top {
    z-index: 1030;
    background: linear-gradient(135deg, var(--primary-color) 0%, #0b5cd5 100%) !important;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    overflow: visible !important;
}

header.fixed-top .navbar {
    overflow: visible !important;
}

header.fixed-top .navbar-collapse {
    overflow: visible !important;
}

/* Secondary Navigation Row */
.secondary-nav {
    background: linear-gradient(135deg, var(--primary-dark) 0%, #0a58ca 100%) !important;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.bg-primary-dark {
    background: var(--primary-dark) !important;
}

.secondary-link {
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.secondary-link:hover {
    color: #fff;
    background: rgba(255,255,255,0.1);
    transform: translateY(-1px);
}

.secondary-link i {
    font-size: 0.85rem;
}

/* Directory Dropdown Styling */
.secondary-nav .dropdown-toggle::after {
    margin-left: 6px;
    font-size: 0.75rem;
}

.secondary-nav .dropdown-menu {
    background: rgba(13, 110, 253, 0.95);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 8px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    margin-top: 5px;
}

.secondary-nav .dropdown-item {
    color: rgba(255,255,255,0.9);
    font-size: 0.9rem;
    font-weight: 500;
    padding: 8px 15px;
    transition: all 0.3s ease;
}

.secondary-nav .dropdown-item:hover {
    background: rgba(255,255,255,0.15);
    color: #fff;
    transform: translateX(3px);
}

.secondary-nav .dropdown-item i {
    font-size: 0.85rem;
    opacity: 0.8;
}

.secondary-nav .dropdown-item:hover i {
    opacity: 1;
}

/* User Dropdown Styling */
.navbar-nav .dropdown {
    position: relative;
}

.navbar-nav .dropdown-menu {
    background: rgba(13, 110, 253, 0.95);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 8px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    margin-top: 5px;
    z-index: 2000 !important;
    position: absolute !important;
    right: 0 !important;
    top: 100% !important;
}

.navbar-nav .dropdown-item {
    color: rgba(255,255,255,0.9);
    font-size: 0.9rem;
    font-weight: 500;
    padding: 8px 15px;
    transition: all 0.3s ease;
}

.navbar-nav .dropdown-item:hover {
    background: rgba(255,255,255,0.15);
    color: #fff;
}

.navbar-nav .dropdown-divider {
    border-color: rgba(255,255,255,0.2);
}

.navbar-nav .dropdown-menu li {
    display: block !important;
    visibility: visible !important;
}

.navbar-nav .dropdown-menu .dropdown-item {
    display: block !important;
    visibility: visible !important;
    min-width: 180px;
}

.navbar-brand {
    font-size: 1.5rem !important;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    transition: transform 0.3s ease;
}

.navbar-brand:hover {
    transform: scale(1.05);
}

/* Navigation Styles */
.navbar-nav .nav-link {
    font-weight: 500;
    margin: 0 5px;
    padding: 8px 15px !important;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover {
    background-color: rgba(255,255,255,0.1);
    transform: translateY(-1px);
}

.navbar-nav .nav-link.active {
    background-color: rgba(255,255,255,0.2);
}

/* Search Form Styles */
.navbar .form-control {
    border: none;
    border-radius: 25px 0 0 25px;
    padding: 8px 15px;
    min-width: 250px;
}

.navbar .btn-outline-light {
    border-radius: 0 25px 25px 0;
    border: 2px solid rgba(255,255,255,0.3);
    transition: all 0.3s ease;
}

.navbar .btn-outline-light:hover {
    background-color: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.5);
    transform: scale(1.05);
}

/* Main Content Styles */
.main-content {
    padding-top: 0;
    margin-top: -25px;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #0b5cd5 50%, #198754 100%);
    min-height: 45vh; /* Further reduced since button removed */
    position: relative;
    overflow: hidden;
    padding: 50px 0 35px; /* Reduced padding */
}

/* Hero Text Readability */
.hero-section h1 {
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
    color: #ffffff !important;
}

.hero-section .lead {
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.6);
    color: rgba(255, 255, 255, 0.95) !important;
    background: rgba(0, 0, 0, 0.2);
    padding: 15px 20px;
    border-radius: 10px;
    backdrop-filter: blur(5px);
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><polygon fill="rgba(255,255,255,0.1)" points="0,1000 1000,0 1000,1000"/></svg>');
    background-size: cover;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.min-vh-75 {
    min-height: 35vh; /* Further reduced */
}

/* Hero Stats Styling */
.hero-stats {
    background: rgba(0, 0, 0, 0.3); /* Darker background for better contrast */
    border-radius: 15px;
    padding: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.3);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.hero-stats h4 {
    font-size: 2rem;
    margin-bottom: 0.25rem;
    color: #ffffff !important;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
}

.hero-stats small {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.9) !important;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.6);
}

/* Hero Image Animation */
.hero-image i {
    animation: float 3s ease-in-out infinite;
    color: rgba(255,255,255,0.8);
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}


/* Business Cards */
.business-card {
    transition: all 0.3s ease;
    border: none;
    border-radius: 15px;
    overflow: hidden;
}

.business-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1) !important;
}

.business-card .card-img-top {
    transition: all 0.3s ease;
}

.business-card:hover .card-img-top {
    transform: scale(1.05);
}

.business-card .badge {
    font-size: 0.75rem;
    padding: 5px 10px;
}

.rating {
    font-size: 0.9rem;
}

/* Deal Cards */
.card {
    border-radius: 10px;
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

/* Button Styles */
.btn {
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-lg {
    padding: 12px 30px;
    font-size: 1.1rem;
}

/* Login Modal */
.modal-content {
    border-radius: 15px;
    border: none;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.modal-header {
    background: linear-gradient(135deg, var(--primary-color), #0b5cd5);
    color: white;
    border-radius: 15px 15px 0 0;
}

.modal-body {
    padding: 30px;
}

.form-control {
    border-radius: 8px;
    border: 2px solid #e9ecef;
    padding: 10px 15px;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
    transform: translateY(-1px);
}

/* Footer */
footer {
    background: linear-gradient(135deg, #212529 0%, #495057 100%) !important;
}

footer .social-links a {
    transition: all 0.3s ease;
}

footer .social-links a:hover {
    transform: translateY(-3px) scale(1.1);
    color: var(--warning-color) !important;
}

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

.animate-on-scroll {
    animation: fadeInUp 0.8s ease-out;
}

/* Responsive Design */
@media (max-width: 991px) {
    .navbar-nav {
        padding: 15px 0;
        background: rgba(255,255,255,0.1);
        border-radius: 10px;
        margin-top: 10px;
    }
    
    .navbar .form-control {
        min-width: 200px;
        margin-bottom: 10px;
    }
    
    .hero-section {
        min-height: 45vh; /* Reduced from 60vh */
        text-align: center;
        padding: 40px 0 30px; /* Reduced padding */
    }
    
    .hero-section h1 {
        font-size: 2.5rem;
        text-shadow: 3px 3px 10px rgba(0, 0, 0, 0.8) !important;
    }
    
    .hero-section .lead {
        background: rgba(0, 0, 0, 0.4) !important;
        padding: 12px 16px !important;
    }
    
    .hero-stats {
        margin-top: 15px; /* Reduced from 20px */
        padding: 12px; /* Reduced from 15px */
    }
    
    .hero-stats h4 {
        font-size: 1.5rem;
    }
    
    
    /* Secondary navigation mobile adjustments */
    .secondary-nav {
        padding: 8px 0 !important;
    }
    
    .secondary-link {
        font-size: 0.8rem;
        padding: 3px 6px;
        margin: 2px 0;
    }
    
    .secondary-nav .gap-3 {
        gap: 0.5rem !important;
    }
    
    .secondary-nav .gap-2 {
        gap: 0.25rem !important;
    }
    
    /* Directory dropdown mobile adjustments */
    .secondary-nav .dropdown-menu {
        font-size: 0.85rem;
    }
    
    .secondary-nav .dropdown-item {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
    
    .secondary-nav .dropdown-toggle::after {
        font-size: 0.7rem;
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 120px; /* Adjusted for mobile double-row header */
    }
    
    body {
        padding-top: var(--header-height);
    }
    
    .navbar-brand {
        font-size: 1.3rem !important;
    }
    
    .hero-section h1 {
        font-size: 2rem;
        text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8) !important;
    }
    
    .hero-section .lead {
        font-size: 1rem;
        background: rgba(0, 0, 0, 0.3) !important;
        padding: 10px 15px !important;
    }
    
    .btn-lg {
        padding: 10px 20px;
        font-size: 1rem;
    }
    
    
    .modal-body {
        padding: 20px;
    }
}

@media (max-width: 576px) {
    .hero-section {
        min-height: 35vh;
        padding: 30px 0 20px; /* More compact for small screens */
    }
    
    
    .hero-stats h4 {
        font-size: 1.3rem;
    }
    
    .hero-stats {
        padding: 8px; /* Further reduced for small screens */
        margin-top: 10px;
    }
    
    
    .business-card:hover {
        transform: none;
    }
    
    .card:hover {
        transform: translateY(-2px);
    }
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Utility Classes */
.text-shadow {
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.box-shadow-lg {
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.border-radius-lg {
    border-radius: 15px;
}

.transition-all {
    transition: all 0.3s ease;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #0b5cd5;
}

/* Store Gallery Styles */
.gallery-thumbnail img {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-thumbnail:hover img {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2) !important;
}

/* Print Styles */
@media print {
    .fixed-top,
    footer,
    .btn,
    .modal {
        display: none !important;
    }
    
    body {
        padding-top: 0 !important;
    }
}