/* First Order Coupon Deals - Custom CSS */
/* 2025 Design Standards with Modern Color Palette */

:root {
    /* Color Palette */
    --primary-color: #6C5CE7;      /* Royal Purple */
    --secondary-color: #FDCB6E;    /* Bright Yellow */
    --accent-color: #00B894;       /* Teal Blue */
    --background-light: #F5F6FA;   /* Light Gray */
    --background-white: #FFFFFF;   /* White */
    --text-dark: #2D3436;          /* Dark Text */
    --text-muted: #636E72;         /* Muted Text */
    --text-light: #DDD;            /* Light Text */
    --success-color: #00B894;
    --warning-color: #FDCB6E;
    --danger-color: #E17055;
    
    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-secondary: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    
    /* Spacing */
    --section-padding: 80px 0;
    --border-radius: 12px;
    --border-radius-lg: 20px;
    --box-shadow: 0 4px 20px rgba(108, 92, 231, 0.1);
    --box-shadow-hover: 0 8px 30px rgba(108, 92, 231, 0.15);
    
    /* Transitions */
    --transition-fast: all 0.2s ease;
    --transition-smooth: all 0.3s ease;
    --transition-slow: all 0.5s ease;
}

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

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--background-white);
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-secondary);
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
}

.display-1, .display-2, .display-3, .display-4, .display-5, .display-6 {
    font-family: var(--font-secondary);
    font-weight: 700;
}

/* Custom Bootstrap Color Classes */
.text-primary { color: var(--primary-color) !important; }
.bg-primary { background-color: var(--primary-color) !important; }
.btn-primary { 
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transition: var(--transition-fast);
}
.btn-primary:hover {
    background-color: #5A4FCF;
    border-color: #5A4FCF;
    transform: translateY(-2px);
}

.text-secondary { color: var(--secondary-color) !important; }
.bg-secondary { background-color: var(--secondary-color) !important; }
.btn-secondary {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: var(--text-dark);
    font-weight: 600;
    transition: var(--transition-fast);
}
.btn-secondary:hover {
    background-color: #FDC048;
    border-color: #FDC048;
    color: var(--text-dark);
    transform: translateY(-2px);
}

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

.text-white-75 { color: rgba(255, 255, 255, 0.75) !important; }

/* Gradient Backgrounds */
.bg-gradient-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, #5A4FCF 100%);
}

.bg-gradient-secondary {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #FDC048 100%);
}

.bg-gradient-accent {
    background: linear-gradient(135deg, var(--accent-color) 0%, #00A085 100%);
}

/* Navigation Styles */
.navbar {
    padding: 1rem 0;
    transition: var(--transition-smooth);
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 800;
    font-family: var(--font-secondary);
}

.navbar-nav .nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem;
    margin: 0 0.25rem;
    border-radius: var(--border-radius);
    transition: var(--transition-fast);
}

.navbar-nav .nav-link:hover {
    background-color: rgba(108, 92, 231, 0.1);
    color: var(--primary-color) !important;
}

.navbar-nav .nav-link.active {
    color: var(--primary-color) !important;
    font-weight: 600;
}

.dropdown-menu {
    border: none;
    box-shadow: var(--box-shadow);
    border-radius: var(--border-radius);
    padding: 0.5rem 0;
}

.dropdown-item {
    padding: 0.75rem 1.5rem;
    transition: var(--transition-fast);
}

.dropdown-item:hover {
    background-color: rgba(108, 92, 231, 0.1);
    color: var(--primary-color);
}

/* Hero Section */
.hero-section {
    min-height: 70vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.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"><defs><radialGradient id="a" cx=".5" cy=".5" r=".5"><stop offset="0%" stop-color="%23ffffff" stop-opacity=".1"/><stop offset="100%" stop-color="%23ffffff" stop-opacity="0"/></radialGradient></defs><circle cx="200" cy="200" r="100" fill="url(%23a)"/><circle cx="800" cy="300" r="150" fill="url(%23a)"/><circle cx="400" cy="700" r="120" fill="url(%23a)"/></svg>') no-repeat center center;
    background-size: cover;
    opacity: 0.1;
}

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

.hero-buttons .btn {
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: var(--border-radius);
    transition: var(--transition-fast);
}

.hero-stats .stat-item h3 {
    font-size: 2rem;
    margin-bottom: 0.25rem;
}

.hero-image img {
    border-radius: var(--border-radius-lg);
    transition: var(--transition-smooth);
}

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

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

.animate-fade-in {
    animation: fadeIn 0.8s ease-out;
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

/* Card Styles */
.card {
    border-radius: var(--border-radius);
    transition: var(--transition-smooth);
    border: none;
    overflow: hidden;
}

.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: var(--box-shadow-hover);
}

/* Deal Cards */
.deal-card {
    position: relative;
    overflow: hidden;
}

.deal-card .card-header {
    border: none;
    position: relative;
}

.deal-card .card-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--secondary-color);
}

.discount-badge .badge {
    font-size: 1rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    font-weight: 700;
    letter-spacing: 0.5px;
}

.coupon-code code {
    font-size: 1.1rem;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    border: 2px dashed var(--primary-color);
    background-color: rgba(108, 92, 231, 0.05);
    color: var(--primary-color);
    letter-spacing: 1px;
}

/* Category Cards */
.category-card {
    transition: var(--transition-smooth);
    cursor: pointer;
}

.category-card:hover {
    background-color: rgba(108, 92, 231, 0.02);
}

.category-icon i {
    transition: var(--transition-fast);
}

.category-card:hover .category-icon i {
    transform: scale(1.1);
    color: var(--secondary-color) !important;
}

/* Brand Logos */
.brand-logo {
    transition: var(--transition-fast);
    cursor: pointer;
}

.brand-logo:hover {
    transform: translateY(-5px);
}

.brand-logo img {
    filter: grayscale(100%);
    transition: var(--transition-fast);
}

.brand-logo:hover img {
    filter: grayscale(0%);
}

/* Newsletter Section */
.newsletter-form .input-group {
    box-shadow: var(--box-shadow);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.newsletter-form .form-control {
    border: none;
    padding: 1rem 1.5rem;
    font-size: 1.1rem;
}

.newsletter-form .form-control:focus {
    box-shadow: none;
    border-color: transparent;
}

.newsletter-form .btn {
    padding: 1rem 2rem;
    font-weight: 600;
    border: none;
}

/* Footer */
footer {
    background: linear-gradient(135deg, #2D3436 0%, #1E2124 100%);
}

footer h5, footer h6 {
    color: var(--background-white);
    margin-bottom: 1.5rem;
}

footer .social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    transition: var(--transition-fast);
}

footer .social-links a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

footer ul li {
    margin-bottom: 0.5rem;
}

footer ul li a:hover {
    color: var(--secondary-color) !important;
    padding-left: 5px;
    transition: var(--transition-fast);
}

/* Modal Styles */
.modal-content {
    border-radius: var(--border-radius);
    border: none;
    overflow: hidden;
}

.modal-header {
    border: none;
    padding: 2rem 2rem 1rem;
}

.modal-body {
    padding: 1rem 2rem 2rem;
}

.coupon-reveal h3 {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: 2px;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    border: 3px dashed var(--primary-color);
    border-radius: var(--border-radius);
    margin-bottom: 1.5rem;
}

/* Utility Classes */
.min-vh-50 {
    min-height: 50vh;
}

.section-padding {
    padding: var(--section-padding);
}

.border-radius {
    border-radius: var(--border-radius);
}

.border-radius-lg {
    border-radius: var(--border-radius-lg);
}

.shadow-custom {
    box-shadow: var(--box-shadow);
}

.shadow-custom-hover {
    box-shadow: var(--box-shadow-hover);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        min-height: 60vh;
        text-align: center;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-buttons .btn {
        display: block;
        width: 100%;
        margin-bottom: 1rem;
    }
    
    .hero-stats .row {
        margin-top: 2rem;
    }
    
    .navbar-brand {
        font-size: 1.25rem;
    }
    
    .display-5 {
        font-size: 2rem;
    }
    
    .newsletter-form .input-group {
        flex-direction: column;
    }
    
    .newsletter-form .btn {
        margin-top: 1rem;
        border-radius: var(--border-radius) !important;
    }
}

@media (max-width: 576px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-stats .stat-item h3 {
        font-size: 1.5rem;
    }
    
    .deal-card .card-body {
        padding: 1.5rem 1rem;
    }
    
    .category-card .card-body {
        padding: 2rem 1rem;
    }
    
    .coupon-reveal h3 {
        font-size: 2rem;
        padding: 0.75rem 1rem;
    }
}

/* Loading Animation */
.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

/* Accessibility Improvements */
.btn:focus,
.form-control:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Print Styles */
@media print {
    .navbar,
    .hero-section,
    .newsletter-form,
    footer {
        display: none;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    .card {
        break-inside: avoid;
        margin-bottom: 1rem;
    }
}