﻿/* =====================================================
   PROMOTIONS.CSS - Promotions Page Styles
   ===================================================== */

/* ============================================
   PAGE HEADER 
   ============================================ */
.page-header {
    background: linear-gradient(135deg, #b71c1c, #d32f2f);
    color: #fff;
    text-align: center;
    padding: 80px 20px 70px;
    position: relative;
    overflow: hidden;
    border-bottom: 4px solid #a31515;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.15);
}

    .page-header h1 {
        font-family: 'Cormorant Garamond', serif;
        font-size: 2.8rem;
        font-weight: 600;
        color: #fff;
        letter-spacing: 1px;
        margin-bottom: 12px;
        text-shadow: 0 3px 15px rgba(0, 0, 0, 0.4);
    }

    .page-header .page-subtitle {
        font-family: 'Poppins', sans-serif;
        font-size: 1.15rem;
        font-weight: 400;
        color: #fffdfd;
        opacity: 0.95;
        text-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
    }

/* ============================================
   PROMOTIONS PAGE - CLEAN & CONSISTENT
   ============================================ */
.promotions-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #fff8f5, #ffeaea);
}

/* Statistics Bar */
.promo-stats {
    background: white;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 40px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    text-align: center;
}

.stat-item {
    padding: 15px;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #d32f2f;
    display: block;
    margin-bottom: 5px;
}

.stat-label {
    color: #666;
    font-size: 0.95rem;
}

/* Filter Tabs */
.filter-tabs {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-tab {
    padding: 10px 25px;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 25px;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    transition: all 0.3s;
}

    .filter-tab:hover {
        border-color: #d32f2f;
        color: #d32f2f;
        transform: translateY(-2px);
    }

    .filter-tab.active {
        background: #d32f2f;
        color: white;
        border-color: #d32f2f;
    }

/* ============================================
   PROMO CARDS - TWO LAYOUTS
   ============================================ */

/* === HORIZONTAL LAYOUT (for Promotions.cshtml) === */
.promotions-grid .promo-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    display: flex;
    flex-direction: row;
}

    .promotions-grid .promo-card:hover {
        transform: translateX(5px);
        box-shadow: 0 12px 30px rgba(211,47,47,0.2);
        border-color: #d32f2f;
    }

    .promotions-grid .promo-card.expired {
        opacity: 0.65;
    }

        .promotions-grid .promo-card.expired:hover {
            transform: none;
            box-shadow: 0 6px 20px rgba(0,0,0,0.08);
        }

.promotions-grid .promo-card-header {
    flex-shrink: 0;
    min-width: 300px;
    background: linear-gradient(135deg, #fff4f4, #fffafa);
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.promotions-grid .promo-card-body {
    flex: 1;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* === VERTICAL LAYOUT (for Index.cshtml homepage) === */
.promotions-section .promo-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    border: 3px solid #ffcc80;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    min-height: 200px;
    display: flex;
    flex-direction: column;
}

    .promotions-section .promo-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 15px 40px rgba(211, 47, 47, 0.2);
    }

    .promotions-section .promo-card h3 {
        color: #ff6b35;
        font-size: 1.35rem;
        margin-bottom: 12px;
        padding-right: 80px;
        line-height: 1.3;
    }

    .promotions-section .promo-card p {
        color: #666;
        margin-bottom: 10px;
        line-height: 1.6;
        font-size: 0.95rem;
    }

/* Promotions Grid Layout */
.promotions-grid {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-bottom: 60px;
}

/* Header Top Row */
.promo-header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

/* Promo Badge */
.promo-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #d32f2f;
    color: white;
    padding: 8px 20px;
    border-radius: 25px;
    font-weight: 700;
    font-size: 1.1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    z-index: 10;
}

/* For horizontal cards in promotions page */
.promo-card-header .promo-badge {
    position: static;
    display: inline-block;
    padding: 10px 20px;
    font-size: 1.2rem;
}

/* Type Tag */
.promo-type {
    display: inline-block;
    padding: 6px 16px;
    background: #fff3e0;
    color: #ff6b35;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
}

/* Title */
.promo-title {
    color: #d32f2f;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.3;
}

.promo-title-link {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s;
}

    .promo-title-link:hover .promo-title {
        color: #b71c1c;
    }

.promo-description {
    color: #555;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.promo-condition {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 10px;
    border-left: 4px solid #d32f2f;
    margin-bottom: 20px;
}

    .promo-condition strong {
        color: #d32f2f;
        display: block;
        margin-bottom: 8px;
        font-size: 0.95rem;
    }

    .promo-condition p {
        color: #666;
        font-size: 0.95rem;
        margin: 0;
        line-height: 1.5;
    }

/* Footer Meta */
.promo-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 2px dashed #e5e7eb;
    gap: 20px;
}

.promo-date {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #999;
    font-size: 0.9rem;
}

/* For vertical cards */
.promotions-section .promo-date {
    color: #999;
    font-size: 0.85rem;
    font-style: italic;
    margin-top: auto;
}

.promo-date-icon {
    color: #d32f2f;
    font-size: 1.1rem;
}

/* Promo Actions */
.promo-actions {
    display: flex;
    gap: 10px;
}

.btn-detail-promo {
    padding: 8px 20px;
    background: transparent;
    color: #2196f3;
    border: 2px solid #2196f3;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    font-size: 0.95rem;
    white-space: nowrap;
}

    .btn-detail-promo:hover {
        background: #2196f3;
        color: white;
    }

.btn-use-promo {
    background: #d32f2f;
    color: white;
    padding: 10px 25px;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.95rem;
    white-space: nowrap;
}

    .btn-use-promo:hover {
        background: #b71c1c;
        transform: scale(1.05);
        box-shadow: 0 5px 15px rgba(211, 47, 47, 0.3);
    }

/* Expired Section */
.expired-section {
    margin-top: 60px;
}

.section-title {
    text-align: center;
    color: #999;
    font-size: 1.8rem;
    margin-bottom: 30px;
    font-weight: 600;
}

.promo-card.expired .btn-use-promo {
    background: #ccc;
    cursor: not-allowed;
}

    .promo-card.expired .btn-use-promo:hover {
        transform: none;
    }

/* Empty State */
.empty-state {
    text-align: center;
    padding: 80px 20px;
}

.empty-icon {
    font-size: 5rem;
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-state h3 {
    color: #666;
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.empty-state p {
    color: #999;
    font-size: 1rem;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .page-header {
        padding: 60px 20px 50px;
    }

        .page-header h1 {
            font-size: 2rem;
        }

        .page-header .page-subtitle {
            font-size: 1rem;
        }

    /* Horizontal cards become vertical on mobile */
    .promotions-grid .promo-card {
        flex-direction: column;
    }

    .promotions-grid .promo-card-header {
        min-width: unset;
    }

    .promo-header-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .promo-title {
        font-size: 1.3rem;
    }

    .promotions-grid .promo-card-body {
        padding: 25px 20px;
    }

    .promo-meta {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }

    .filter-tabs {
        gap: 8px;
    }

    .filter-tab {
        padding: 8px 20px;
        font-size: 0.9rem;
    }

    .promo-stats {
        grid-template-columns: 1fr;
    }

    /* Vertical cards on homepage */
    .promotions-section .promo-card h3 {
        font-size: 1.3rem;
        padding-right: 70px;
    }
}

@media (max-width: 480px) {
    .page-header {
        padding: 50px 15px 40px;
    }

        .page-header h1 {
            font-size: 1.5rem;
        }

    .promo-title {
        font-size: 1.2rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .promo-actions {
        flex-direction: column;
    }

    .btn-detail-promo,
    .btn-use-promo {
        width: 100%;
        text-align: center;
        justify-content: center;
    }

    /* Vertical cards adjustments */
    .promotions-section .promo-card {
        padding: 25px;
        min-height: 160px;
    }

        .promotions-section .promo-card h3 {
            font-size: 1.2rem;
            padding-right: 65px;
        }

    .promo-badge {
        top: 15px;
        right: 15px;
        padding: 5px 14px;
        font-size: 0.9rem;
    }

    .promotions-section .promo-card p {
        font-size: 0.9rem;
    }

    .promotions-section .promo-date {
        font-size: 0.8rem;
    }
}
