/* ============================================
   UNIQUE GIFT IDEAS HUB - CSS v5.0
   Modern 2025 Design Standards
   Enhanced Readability & Premium UI
   ============================================ */

:root {
    /* Primary Colors */
    --primary: #FF6B6B;
    --primary-dark: #E63946;
    --primary-light: #FFE5E5;
    
    /* Secondary Colors */
    --secondary: #FFD93D;
    --secondary-dark: #F4A300;
    --secondary-light: #FFF5CC;
    
    /* Accent Colors */
    --accent: #6BCB77;
    --accent-light: #D4F1D4;
    
    /* Neutral Colors */
    --dark: #1A1A1A;
    --dark-gray: #2D3436;
    --text: #2D3436;
    --text-light: #636E72;
    --light-bg: #F8F9FA;
    --white: #FFFFFF;
    --border: #E0E0E0;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #FF6B6B 0%, #FFD93D 100%);
    --gradient-secondary: linear-gradient(135deg, #6BCB77 0%, #4D96FF 100%);
    --gradient-dark: linear-gradient(180deg, #1A1A1A 0%, #2D3436 100%);
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 12px 32px rgba(0, 0, 0, 0.2);
    
    /* Spacing - Consistent & Balanced */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-2xl: 4rem;
    
    /* Typography */
    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    
    /* Line Heights - Enhanced Readability */
    --line-height-tight: 1.2;
    --line-height-normal: 1.6;
    --line-height-relaxed: 1.8;
}

/* ============================================
   GLOBAL STYLES
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-secondary);
    color: var(--text);
    background-color: var(--white);
    line-height: var(--line-height-normal);
    font-size: 1rem;
    letter-spacing: 0.3px;
}

/* ============================================
   TYPOGRAPHY - ENHANCED READABILITY
   ============================================ */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 700;
    line-height: var(--line-height-tight);
    margin-bottom: var(--space-md);
    color: var(--text);
    letter-spacing: -0.5px;
}

h1 {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: var(--space-lg);
}

h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: var(--space-lg);
}

h3 {
    font-size: 1.875rem;
    font-weight: 700;
    margin-bottom: var(--space-md);
}

h4 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: var(--space-md);
}

h5 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: var(--space-sm);
}

h6 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: var(--space-sm);
}

p {
    color: var(--text-light);
    margin-bottom: var(--space-md);
    line-height: var(--line-height-relaxed);
    font-size: 1rem;
}

.lead {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--text-light);
    line-height: var(--line-height-relaxed);
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--primary-dark);
}

.text-muted {
    color: var(--text-light) !important;
}

.small {
    font-size: 0.875rem;
    line-height: var(--line-height-normal);
}

/* ============================================
   NAVBAR
   ============================================ */

.navbar {
    background: var(--white);
    border-bottom: 2px solid var(--border);
    padding: 1rem 0;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-brand {
    font-family: var(--font-primary);
    font-size: 1.5rem;
    font-weight: 900;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: all 0.3s ease;
}

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

.nav-link {
    font-weight: 600;
    color: var(--text) !important;
    margin: 0 0.75rem;
    position: relative;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.dropdown-menu {
    border: none;
    box-shadow: var(--shadow-lg);
    border-radius: 1rem;
    padding: var(--space-sm) 0;
}

.dropdown-item {
    padding: var(--space-sm) var(--space-md);
    color: var(--text);
    transition: all 0.3s ease;
    font-weight: 500;
}

.dropdown-item:hover {
    background: var(--primary-light);
    color: var(--primary-dark);
    padding-left: var(--space-lg);
}

/* ============================================
   HERO SECTION - REDESIGNED
   ============================================ */

.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
    padding: 6rem 0;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.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 1440 320"><path fill="rgba(255,255,255,0.1)" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,144C960,149,1056,139,1152,128C1248,117,1344,107,1392,101.3L1440,96L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
    opacity: 0.3;
}

.hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.hero-content h1 {
    color: var(--white);
    font-size: 4rem;
    margin-bottom: var(--space-md);
    animation: slideInDown 0.8s ease-out;
    line-height: var(--line-height-tight);
}

.hero-content .lead {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.5rem;
    margin-bottom: var(--space-xl);
    animation: slideInUp 0.8s ease-out 0.2s both;
    line-height: var(--line-height-relaxed);
}

.hero-cta {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeIn 0.8s ease-out 0.4s both;
}

.hero-cta .btn {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 1rem;
    transition: all 0.3s ease;
}

.hero-cta .btn-primary-gradient {
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: var(--shadow-lg);
}

.hero-cta .btn-primary-gradient:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.hero-cta .btn-outline {
    border: 2px solid var(--white);
    color: var(--white);
    background: transparent;
}

.hero-cta .btn-outline:hover {
    background: var(--white);
    color: var(--primary);
}

/* Floating decorative elements */
.floating-icon {
    position: absolute;
    font-size: 4rem;
    opacity: 0.15;
    animation: float 6s ease-in-out infinite;
}

.floating-icon:nth-child(1) { top: 10%; left: 5%; animation-delay: 0s; }
.floating-icon:nth-child(2) { top: 60%; right: 10%; animation-delay: 1s; }
.floating-icon:nth-child(3) { top: 30%; right: 5%; animation-delay: 2s; }
.floating-icon:nth-child(4) { bottom: 10%; left: 10%; animation-delay: 3s; }

/* ============================================
   FOOTER
   ============================================ */

.footer-section {
    background: var(--gradient-dark);
    color: #E0E0E0;
    padding: var(--space-2xl) 0 var(--space-lg);
    margin-top: var(--space-2xl);
    border-top: 4px solid var(--primary);
}

.footer-section h5 {
    color: var(--white);
    font-weight: 700;
    margin-bottom: var(--space-lg);
    font-size: 1.1rem;
}

.footer-brand {
    color: var(--secondary);
    font-size: 1.5rem;
    font-weight: 900;
    margin-bottom: var(--space-md);
}

.footer-section p {
    color: #B0B0B0;
    margin-bottom: var(--space-sm);
    font-size: 0.95rem;
    line-height: var(--line-height-normal);
}

.footer-section a {
    color: #B0B0B0;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.footer-section a:hover {
    color: var(--secondary);
    transform: translateX(5px);
}

.footer-section ul li {
    margin-bottom: var(--space-sm);
}

.footer-section hr {
    border-color: rgba(255, 255, 255, 0.1);
    margin: var(--space-xl) 0;
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 1rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    font-family: var(--font-primary);
}

.btn-primary-gradient {
    background: var(--gradient-primary);
    color: var(--white) !important;
    box-shadow: var(--shadow-md);
}

.btn-primary-gradient:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.btn-warning {
    background-color: var(--secondary);
    color: var(--text) !important;
    font-weight: 700;
}

.btn-warning:hover {
    background-color: var(--secondary-dark);
    transform: translateY(-3px);
}

.btn-secondary {
    background-color: var(--accent);
    color: var(--white) !important;
}

.btn-secondary:hover {
    background-color: #5AB86B;
    transform: translateY(-3px);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

/* ============================================
   CARDS
   ============================================ */

.card-premium {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: var(--space-lg);
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.card-premium:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

/* ============================================
   COUPON CARDS
   ============================================ */

.coupon-card {
    background: var(--white);
    border: 2px solid var(--border);
    border-radius: 1rem;
    padding: var(--space-lg);
    transition: all 0.4s ease;
    cursor: pointer;
    position: relative;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: var(--shadow-md);
}

.coupon-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.coupon-card .badge {
    font-weight: 700;
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
}

.coupon-brand-logo {
    background: var(--gradient-primary);
    color: var(--white);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.8rem;
    text-align: center;
    width: 50px;
    height: 50px;
    flex-shrink: 0;
}

.coupon-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
    margin: var(--space-md) 0;
    line-height: var(--line-height-normal);
}

.coupon-discount {
    display: flex;
    gap: var(--space-md);
    margin: var(--space-md) 0;
}

.coupon-discount .badge {
    font-size: 1.25rem;
    padding: 0.75rem 1.25rem;
    background: var(--gradient-primary);
    color: var(--white);
}

/* ============================================
   GRIDS
   ============================================ */

.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-xl);
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-xl);
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-xl);
}

@media (max-width: 768px) {
    .grid-2, .grid-3, .grid-4 {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
}

/* ============================================
   SECTIONS
   ============================================ */

.light-bg {
    background-color: var(--light-bg);
}

.featured-title {
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: var(--space-xl);
    text-align: center;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: var(--line-height-tight);
}

/* ============================================
   FORMS
   ============================================ */

.form-control, .form-select {
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: var(--font-secondary);
    line-height: var(--line-height-normal);
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(255, 107, 107, 0.25);
}

.form-label {
    color: var(--text);
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

/* ============================================
   BADGES
   ============================================ */

.badge {
    font-weight: 700;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.85rem;
}

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

.bg-success {
    background-color: var(--accent) !important;
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

/* ============================================
   UTILITIES
   ============================================ */

.text-center { text-align: center; }
.text-end { text-align: right; }
.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: var(--space-xs) !important; }
.mb-2 { margin-bottom: var(--space-sm) !important; }
.mb-3 { margin-bottom: var(--space-md) !important; }
.mb-4 { margin-bottom: var(--space-lg) !important; }
.mb-5 { margin-bottom: var(--space-xl) !important; }
.mt-3 { margin-top: var(--space-md) !important; }
.mt-4 { margin-top: var(--space-lg) !important; }
.mt-5 { margin-top: var(--space-xl) !important; }
.me-2 { margin-right: var(--space-sm) !important; }
.me-3 { margin-right: var(--space-md) !important; }
.py-4 { padding-top: var(--space-lg) !important; padding-bottom: var(--space-lg) !important; }
.py-5 { padding-top: var(--space-xl) !important; padding-bottom: var(--space-xl) !important; }
.px-3 { padding-left: var(--space-md) !important; padding-right: var(--space-md) !important; }
.p-4 { padding: var(--space-lg) !important; }
.p-5 { padding: var(--space-xl) !important; }
.fw-bold { font-weight: 700 !important; }
.d-flex { display: flex !important; }
.align-items-center { align-items: center !important; }
.justify-content-center { justify-content: center !important; }
.overflow-hidden { overflow: hidden !important; }
.position-relative { position: relative !important; }
.position-absolute { position: absolute !important; }
.top-0 { top: 0 !important; }
.end-0 { right: 0 !important; }
.m-2 { margin: var(--space-sm) !important; }
.w-100 { width: 100% !important; }
.h-100 { height: 100% !important; }

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 1200px) {
    h1 { font-size: 3rem; }
    h2 { font-size: 2rem; }
    .hero-content h1 { font-size: 3rem; }
    .featured-title { font-size: 2rem; }
}

@media (max-width: 992px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 1.875rem; }
    .hero-section { padding: 4rem 0; min-height: 600px; }
    .hero-content h1 { font-size: 2.5rem; }
    .featured-title { font-size: 1.75rem; }
}

@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.375rem; }
    
    .hero-section { padding: 3rem 0; min-height: 500px; }
    .hero-content h1 { font-size: 2rem; }
    .hero-content .lead { font-size: 1.25rem; }
    .hero-cta { flex-direction: column; }
    .hero-cta .btn { width: 100%; }
    
    .featured-title { font-size: 1.5rem; }
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    
    .navbar { padding: 0.75rem 0; }
    .nav-link { margin: 0.25rem 0; font-size: 0.95rem; }
    
    .footer-section { padding: var(--space-xl) 0 var(--space-md); }
}

@media (max-width: 576px) {
    h1 { font-size: 1.5rem; }
    h2 { font-size: 1.25rem; }
    h3 { font-size: 1.125rem; }
    h4 { font-size: 1rem; }
    
    p { font-size: 0.95rem; }
    .lead { font-size: 1.1rem; }
    
    .hero-section { padding: 2rem 0; min-height: 400px; }
    .hero-content h1 { font-size: 1.5rem; }
    .hero-content .lead { font-size: 1rem; }
    .hero-cta .btn { padding: 0.75rem 1.5rem; font-size: 1rem; }
    
    .btn { padding: 0.6rem 1.2rem; font-size: 0.9rem; }
    .btn-lg { padding: 0.75rem 1.5rem; font-size: 1rem; }
    
    .featured-title { font-size: 1.25rem; margin-bottom: var(--space-lg); }
    .coupon-card { min-height: 250px; padding: var(--space-md); }
    
    .footer-section h5 { font-size: 1rem; }
    .footer-section p { font-size: 0.9rem; }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */

.keyboard-nav *:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: more) {
    body {
        color: var(--dark);
    }
    
    .text-muted {
        color: var(--text) !important;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ============================================
   PRINT STYLES
   ============================================ */

@media print {
    .navbar, .footer-section {
        display: none;
    }
    
    body {
        background: var(--white);
    }
}
