/* Great Deal Orbit - Modern CSS Styles 2025 */

/* Color Palette */
:root {
    --primary-color: #0B2749;
    --secondary-color: #1565C0;
    --accent-color: #00695C;
    --background-color: #F7FAFC;
    --light-bg: #EEF2F7;
    --text-color: #0A2540;
    --text-muted: #5B6B80;
    --border-color: #D4D9E2;
    --shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    --shadow-lg: 0 1rem 3rem rgba(0, 0, 0, 0.175);
}

/* Typography */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    font-weight: 400;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
}

.display-4, .display-5 {
    font-weight: 800;
}

/* Custom Bootstrap Colors */
.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);
    font-weight: 600;
    transition: all 0.3s ease;
}
.btn-primary:hover {
    background-color: #08223A;
    border-color: #08223A;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.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);
    font-weight: 600;
}

.text-accent { color: var(--accent-color) !important; }
.bg-accent { background-color: var(--accent-color) !important; }
.btn-accent {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: white;
    font-weight: 600;
    transition: all 0.3s ease;
}
.btn-accent:hover {
    background-color: #065F46;
    border-color: #065F46;
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Navigation */
.navbar {
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 800;
}

.nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

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

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

.dropdown-item {
    padding: 0.5rem 1.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.dropdown-item:hover {
    background-color: var(--light-bg);
    color: var(--primary-color);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #09314D 100%);
    position: relative;
    overflow: hidden;
}

.bg-gradient-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, #09314D 100%) !important;
}

.min-vh-75 {
    min-height: 75vh;
}

.hero-image {
    position: relative;
    display: inline-block;
}

.orbit-rings {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.orbit-ring {
    position: absolute;
    border: 2px solid rgba(46, 204, 113, 0.3);
    border-radius: 50%;
    animation: rotate 20s linear infinite;
}

.ring-1 {
    width: 200px;
    height: 200px;
    top: -100px;
    left: -100px;
    animation-duration: 15s;
}

.ring-2 {
    width: 300px;
    height: 300px;
    top: -150px;
    left: -150px;
    animation-duration: 25s;
    animation-direction: reverse;
}

.ring-3 {
    width: 400px;
    height: 400px;
    top: -200px;
    left: -200px;
    animation-duration: 35s;
}

/* Animations */
@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

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

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

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

.animate-fade-in-delay {
    animation: fadeIn 1s ease-out 0.3s both;
}

.animate-fade-in-delay-2 {
    animation: fadeIn 1s ease-out 0.6s both;
}

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

/* Cards and Hover Effects */
.card {
    border-radius: 1rem;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

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

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

.deal-card {
    position: relative;
    overflow: hidden;
}

.deal-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.deal-card:hover::before {
    left: 100%;
}

.store-item {
    background: var(--background-color);
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
}

.store-item:hover {
    border-color: var(--primary-color);
    background: var(--light-bg);
}

/* Badges */
.badge {
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
}

/* Trending Cards */
.trending-card {
    border-left: 4px solid var(--accent-color);
    position: relative;
    overflow: hidden;
}

.trending-card::after {
    content: '';
    position: absolute;
    top: 0;
    right: -50px;
    width: 100px;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(46, 204, 113, 0.1));
    transform: skewX(-15deg);
    transition: right 0.3s ease;
}

.trending-card:hover::after {
    right: -20px;
}

/* Testimonials */
.testimonial-card {
    background: var(--light-bg);
    border-radius: 2rem;
    position: relative;
}

.testimonial-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
}

.carousel-control-prev,
.carousel-control-next {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.8;
    transition: all 0.3s ease;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
}

.carousel-control-prev {
    left: -25px;
}

.carousel-control-next {
    right: -25px;
}

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

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

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

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

/* Footer */
footer {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%) !important;
}

.social-links a {
    transition: all 0.3s ease;
    display: inline-block;
}

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

/* Modal */
.modal-content {
    border: none;
    border-radius: 1.5rem;
    box-shadow: var(--shadow-lg);
}

.modal-header {
    padding: 2rem 2rem 0;
}

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

.coupon-code {
    border: 2px dashed var(--primary-color);
    cursor: pointer;
    transition: all 0.3s ease;
}

.coupon-code:hover {
    background-color: var(--primary-color) !important;
    color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
    .display-4 {
        font-size: 2.5rem;
    }
    
    .hero-section {
        padding: 3rem 0;
    }
    
    .min-vh-75 {
        min-height: auto;
    }
    
    .orbit-ring {
        display: none;
    }
    
    .carousel-control-prev,
    .carousel-control-next {
        display: none;
    }
    
    .newsletter-form .input-group {
        flex-direction: column;
        border-radius: 1rem;
    }
    
    .newsletter-form .form-control {
        border-radius: 1rem 1rem 0 0;
        margin-bottom: -1px;
    }
    
    .newsletter-form .btn {
        border-radius: 0 0 1rem 1rem;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 1rem;
    }
    
    .card-body {
        padding: 1.5rem;
    }
    
    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
}

/* Accessibility */
.btn:focus,
.form-control:focus {
    box-shadow: 0 0 0 0.2rem rgba(10, 61, 98, 0.25);
}

.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;
}

/* Loading States */
.btn.loading {
    position: relative;
    color: transparent;
}

.btn.loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Utility Classes */
.text-gradient {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.border-gradient {
    border: 2px solid;
    border-image: linear-gradient(135deg, var(--primary-color), var(--accent-color)) 1;
}

.shadow-custom {
    box-shadow: 0 10px 40px rgba(10, 61, 98, 0.1);
}

/* Print Styles */
@media print {
    .navbar,
    .hero-section,
    footer,
    .modal {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    .container {
        max-width: none;
        padding: 0;
    }
}