/* Deals Page Specific Styles */
.deals-page {
    margin-top: 80px;
}

/* Deals Hero Section */
.deals-hero {
    position: relative;
    height: 60vh;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.deals-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: brightness(0.7);
}

.deals-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(220, 38, 38, 0.85) 0%, 
        rgba(251, 146, 60, 0.75) 100%);
}

.deals-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
}

.deals-hero-content h1 {
    font-family: var(--font-display);
    font-size: 5rem;
    letter-spacing: 5px;
    margin-bottom: 1rem;
    text-shadow: 4px 4px 0 rgba(0,0,0,0.3);
    animation: flash 2s infinite;
}

.deals-hero-content p {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

/* Countdown Timer */
.countdown-timer {
    background: rgba(0,0,0,0.3);
    backdrop-filter: blur(10px);
    padding: 1.5rem;
    border-radius: 15px;
    display: inline-block;
}

.timer-label {
    font-family: var(--font-heading);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

.timer {
    display: flex;
    gap: 2rem;
    justify-content: center;
}

.time-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.time-value {
    font-family: var(--font-display);
    font-size: 3rem;
    color: var(--yellow-accent);
    text-shadow: 2px 2px 0 rgba(0,0,0,0.3);
}

.time-label {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Deals Tabs */
.deals-tabs {
    background: var(--white);
    padding: 2rem 0;
    border-bottom: 2px solid var(--light-gray);
    position: sticky;
    top: 80px;
    z-index: 100;
}

.tab-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.tab-btn {
    background: transparent;
    border: 2px solid var(--primary-red);
    color: var(--primary-red);
    padding: 0.75rem 2rem;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s;
}

.tab-btn:hover {
    background: rgba(220, 38, 38, 0.1);
}

.tab-btn.active {
    background: linear-gradient(135deg, var(--primary-red), var(--orange-accent));
    color: var(--white);
    border-color: transparent;
}

/* Deals Content */
.deals-content {
    padding: 3rem 0;
    background: var(--light-gray);
    min-height: 60vh;
}

.tab-content {
    display: none;
    animation: fadeIn 0.5s;
}

.tab-content.active {
    display: block;
}

.deals-section-title {
    font-family: var(--font-display);
    font-size: 3rem;
    color: var(--dark-gray);
    text-align: center;
    margin-bottom: 3rem;
    letter-spacing: 2px;
}

/* Deals Grid */
.deals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.deal-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    position: relative;
    transition: all 0.3s;
}

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

.deal-card.featured {
    grid-column: span 2;
    background: linear-gradient(135deg, #FEF3C7, #FDE68A);
    border: 3px solid var(--yellow-accent);
}

.deal-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--primary-red);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 1px;
    z-index: 2;
    animation: pulse 1s infinite;
}

.deal-timer {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: rgba(0,0,0,0.7);
    color: var(--yellow-accent);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.8rem;
    z-index: 2;
}

.deal-image {
    height: 250px;
    overflow: hidden;
    position: relative;
}

.deal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.deal-card:hover .deal-image img {
    transform: scale(1.1);
}

.deal-content {
    padding: 1.5rem;
}

.deal-content h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--dark-gray);
    margin-bottom: 0.5rem;
}

.deal-description {
    color: #6B7280;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.deal-price {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.original-price {
    font-family: var(--font-body);
    font-size: 1.2rem;
    color: #9CA3AF;
    text-decoration: line-through;
}

.sale-price {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--primary-red);
}

.deal-code {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--light-gray);
    padding: 0.75rem 1rem;
    border-radius: 10px;
    margin-bottom: 1rem;
}

.deal-code span {
    font-family: monospace;
    font-size: 1.1rem;
    color: var(--dark-gray);
    flex: 1;
}

.copy-btn {
    background: var(--primary-red);
    color: var(--white);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    font-family: var(--font-heading);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.copy-btn:hover {
    background: var(--dark-red);
}

.deal-cta {
    width: 100%;
    background: linear-gradient(135deg, var(--primary-red), var(--orange-accent));
    color: var(--white);
    border: none;
    padding: 1rem;
    border-radius: 10px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s;
}

.deal-cta:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-lg);
}

.deal-cta.urgent {
    background: linear-gradient(135deg, var(--orange-accent), var(--yellow-accent));
    color: var(--dark-gray);
    animation: pulse 1s infinite;
}

/* Student Verification */
.student-verification {
    background: linear-gradient(135deg, #6366F1, #8B5CF6);
    color: var(--white);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    margin-bottom: 2rem;
}

.student-verification p {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.verify-btn {
    background: var(--white);
    color: #6366F1;
    border: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s;
}

.verify-btn:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
}

.student-note {
    font-size: 0.9rem;
    color: #6366F1;
    font-style: italic;
    margin-bottom: 0.5rem;
}

/* Loyalty Program */
.loyalty-program {
    padding: 4rem 0;
    background: linear-gradient(135deg, var(--dark-gray), var(--black));
}

.loyalty-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.loyalty-text h2 {
    font-family: var(--font-display);
    font-size: 3rem;
    color: var(--white);
    margin-bottom: 1rem;
    letter-spacing: 2px;
}

.loyalty-text p {
    color: rgba(255,255,255,0.8);
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.loyalty-benefits {
    list-style: none;
    margin-bottom: 2rem;
}

.loyalty-benefits li {
    color: var(--white);
    font-family: var(--font-heading);
    font-weight: 600;
    padding: 0.5rem 0;
    font-size: 1.1rem;
}

.join-btn {
    background: linear-gradient(135deg, var(--yellow-accent), var(--orange-accent));
    color: var(--dark-gray);
    border: none;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: var(--shadow-lg);
}

.join-btn:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-xl);
}

.loyalty-image img {
    width: 100%;
    max-width: 500px;
    border-radius: 20px;
    box-shadow: var(--shadow-xl);
}

/* Newsletter Deals */
.newsletter-deals {
    padding: 4rem 0;
    background: var(--white);
    border-top: 2px solid var(--light-gray);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .deal-card.featured {
        grid-column: span 1;
    }
    
    .loyalty-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .loyalty-image {
        order: -1;
    }
}

@media (max-width: 768px) {
    .deals-hero-content h1 {
        font-size: 3rem;
    }
    
    .timer {
        gap: 1rem;
    }
    
    .time-value {
        font-size: 2rem;
    }
    
    .tab-buttons {
        justify-content: flex-start;
        overflow-x: auto;
    }
    
    .deals-grid {
        grid-template-columns: 1fr;
    }
    
    .deals-tabs {
        position: static;
    }
}
