/* 
   Super Sale Month - Main Stylesheet
   Theme: Vibrant Urgency (Crimson/Indigo/Gold)
   Font: 'Poppins', sans-serif
*/

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700;800&display=swap');

:root {
    --primary-color: #DC143C; /* Crimson Red */
    --secondary-color: #4B0082; /* Indigo */
    --accent-color: #FFD700; /* Gold */
    --light-bg: #F8F9FA;
    --dark-text: #212529;
    --light-text: #FFFFFF;
    --card-shadow: 0 10px 20px rgba(0,0,0,0.08);
    --hover-shadow: 0 15px 30px rgba(220, 20, 60, 0.15);
    --border-radius: 12px;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #f4f4f4;
    color: var(--dark-text);
    overflow-x: hidden;
}

/* Navigation */
.navbar {
    background-color: #fff;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    padding: 1rem 0;
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.8rem;
    color: var(--secondary-color) !important;
    letter-spacing: -1px;
}

.navbar-brand span {
    color: var(--primary-color);
}

.nav-link {
    font-weight: 600;
    color: var(--dark-text) !important;
    margin: 0 10px;
    transition: color 0.3s;
}

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

.btn-primary-custom {
    background-color: var(--primary-color);
    color: white;
    font-weight: 700;
    padding: 10px 25px;
    border-radius: 50px;
    border: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(220, 20, 60, 0.3);
}

.btn-primary-custom:hover {
    background-color: #b90e31;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 20, 60, 0.4);
    color: white;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #2a004a 100%);
    color: white;
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(220, 20, 60, 0.2) 0%, rgba(0,0,0,0) 70%);
    border-radius: 50%;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 30px;
    font-weight: 300;
}

/* Search Bar */
.search-container {
    background: white;
    padding: 10px;
    border-radius: 50px;
    display: flex;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    max-width: 600px;
}

.search-input {
    border: none;
    padding: 10px 20px;
    flex-grow: 1;
    border-radius: 50px;
    outline: none;
}

.search-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 30px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.search-btn:hover {
    background: #b90e31;
}

/* Section Styling */
.section-padding {
    padding: 80px 0;
}

.section-title {
    font-weight: 800;
    text-align: center;
    margin-bottom: 50px;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--primary-color);
    margin: 15px auto 0;
    border-radius: 2px;
}

/* Cards */
.deal-card {
    background: white;
    border-radius: var(--border-radius);
    border: none;
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
    overflow: hidden;
    box-shadow: var(--card-shadow);
}

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

.deal-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--accent-color);
    color: var(--dark-text);
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    z-index: 2;
}

.card-img-top {
    height: 200px;
    object-fit: cover;
    background-color: #f8f9fa;
    padding: 20px;
    transition: transform 0.5s;
}

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

.card-body {
    padding: 25px;
}

.brand-logo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: contain;
    background: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: absolute;
    top: 180px;
    right: 20px;
    padding: 2px;
}

.coupon-code-box {
    background: #f0f2f5;
    border: 2px dashed #cbd5e0;
    border-radius: 8px;
    padding: 10px;
    text-align: center;
    margin-top: 15px;
    font-family: monospace;
    font-weight: 700;
    color: var(--secondary-color);
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

.coupon-code-box:hover {
    background: #e2e8f0;
    border-color: var(--secondary-color);
}

.coupon-code-box.copied {
    background: #d1fae5;
    border-color: #10b981;
    color: #065f46;
}

.coupon-code-box.copied::after {
    content: 'COPIED!';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #10b981;
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-family: 'Poppins', sans-serif;
}

/* New Sections */
.deal-of-day {
    background: var(--primary-color);
    color: white;
    border-radius: 20px;
    padding: 40px;
    position: relative;
    overflow: hidden;
}

.countdown-item {
    background: rgba(255,255,255,0.2);
    padding: 15px;
    border-radius: 10px;
    min-width: 80px;
    text-align: center;
}

.countdown-number {
    font-size: 2rem;
    font-weight: 800;
    display: block;
}

.top-brands-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 20px;
}

.brand-item {
    background: white;
    padding: 20px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s;
    box-shadow: var(--card-shadow);
}

.brand-item:hover {
    transform: scale(1.1);
}

.brand-item img {
    max-width: 100%;
    max-height: 50px;
    filter: grayscale(100%);
    transition: filter 0.3s;
}

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

.savings-leaderboard {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: var(--card-shadow);
}

.leaderboard-item {
    display: flex;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.leaderboard-rank {
    font-size: 1.5rem;
    font-weight: 800;
    color: #cbd5e0;
    width: 40px;
}

.leaderboard-rank.top-3 {
    color: var(--accent-color);
}

/* Footer */
.footer {
    background-color: #1a1a1a;
    color: #a0a0a0;
    padding: 80px 0 30px;
}

.footer-title {
    color: white;
    font-weight: 700;
    margin-bottom: 25px;
}

.footer-link {
    color: #a0a0a0;
    display: block;
    margin-bottom: 12px;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-link:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    .section-title {
        font-size: 2rem;
    }
}
