/* promo.css - Clean & Modern Version with Countdown */

.promo-header {
    text-align: center;
    margin-bottom: 50px;
    animation: fadeInDown 0.8s ease;
}

.gradient-text {
    font-size: 42px;
    font-weight: 800;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
}

.promo-subtitle {
    font-size: 18px;
    color: #666;
    font-weight: 400;
}

.flyer-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    padding: 20px;
    max-width: 1400px;
    margin: 0 auto;
}

/* Card Styling */
.flyer-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: white;
    cursor: pointer;
    opacity: 0;
    transform: translateY(30px);
}

.flyer-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(102, 126, 234, 0.2);
}

/* Promo Badge */
.promo-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: linear-gradient(135deg, #ff6b6b, #ee5a6f);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(238, 90, 111, 0.4);
    display: flex;
    align-items: center;
    gap: 6px;
}

.badge-icon {
    font-size: 14px;
}

/* Image Section */
.image-wrapper {
    position: relative;
    overflow: hidden;
    height: 240px;
    background: #f5f5f5;
}

.image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.flyer-card:hover .image-wrapper img {
    transform: scale(1.08);
}

.image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 100%);
    padding: 20px;
    display: flex;
    align-items: flex-end;
}

/* Countdown Badge */
.countdown-badge {
    width: 100%;
}

.countdown-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.countdown-label {
    font-size: 12px;
    color: rgba(255,255,255,0.9);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.countdown-timer {
    display: flex;
    gap: 8px;
    align-items: center;
}

.time-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    padding: 8px 12px;
    border-radius: 8px;
    min-width: 60px;
}

.time-unit.urgent {
    background: rgba(255, 107, 107, 0.25);
    animation: pulse 1s infinite;
}

.time-value {
    font-size: 24px;
    font-weight: 700;
    color: white;
    line-height: 1;
}

.time-label {
    font-size: 10px;
    color: rgba(255,255,255,0.8);
    margin-top: 4px;
    font-weight: 500;
}

.time-separator {
    font-size: 20px;
    color: white;
    font-weight: 600;
}

.expired {
    color: #ff6b6b;
    font-weight: 700;
    font-size: 14px;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    padding: 10px 20px;
    border-radius: 8px;
}

.countdown-badge.expired {
    opacity: 0.7;
}

.countdown-badge.urgent .countdown-label {
    color: #ffeb3b;
}

/* Title Section */
.flyer-title-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: white;
    border-bottom: 1px solid #f0f0f0;
}

.title-content {
    flex: 1;
}

.flyer-title {
    margin: 0 0 6px 0;
    font-size: 20px;
    font-weight: 700;
    color: #222;
    line-height: 1.3;
}

.promo-period {
    font-size: 13px;
    color: #999;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
}

.promo-period::before {
    content: '📅';
    font-size: 14px;
}

.expand-icon {
    width: 24px;
    height: 24px;
    color: #667eea;
    transition: transform 0.3s ease;
    flex-shrink: 0;
    margin-left: 12px;
}

.expand-icon svg {
    width: 100%;
    height: 100%;
    stroke-width: 2.5;
}

.flyer-card.active .expand-icon {
    transform: rotate(180deg);
}

/* Body Section */
.flyer-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.5s ease;
    opacity: 0;
    background: white;
}

.flyer-card.active .flyer-body {
    max-height: 600px;
    opacity: 1;
}

.promo-content {
    padding: 20px;
}

/* Description Section */
.description-section {
    margin-bottom: 20px;
}

.section-title {
    font-size: 14px;
    font-weight: 700;
    color: #667eea;
    margin: 0 0 12px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.promo-description {
    color: #555;
    line-height: 1.7;
    font-size: 15px;
    margin: 0;
}

/* Footer Buttons */
.promo-footer {
    display: flex;
    gap: 12px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}

.btn-share,
.btn-copy {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-share {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-share:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.btn-copy {
    background: #f8f9fa;
    color: #667eea;
    border: 2px solid #667eea;
}

.btn-copy:hover {
    background: #667eea;
    color: white;
}

.btn-share svg,
.btn-copy svg {
    width: 18px;
    height: 18px;
    stroke-width: 2.5;
}

/* Copy Notification */
.copy-notification {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #10b981;
    color: white;
    padding: 16px 24px;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(16, 185, 129, 0.4);
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    font-size: 14px;
    z-index: 1000;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.copy-notification.show {
    opacity: 1;
    transform: translateY(0);
}

.copy-notification svg {
    width: 20px;
    height: 20px;
    stroke-width: 3;
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% { 
        transform: scale(1);
        opacity: 1;
    }
    50% { 
        transform: scale(1.03);
        opacity: 0.9;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .flyer-container {
        grid-template-columns: 1fr;
        padding: 15px;
        gap: 20px;
    }
    
    .gradient-text {
        font-size: 32px;
    }
    
    .promo-subtitle {
        font-size: 16px;
    }

    .image-wrapper {
        height: 200px;
    }

    .time-unit {
        min-width: 50px;
        padding: 6px 10px;
    }

    .time-value {
        font-size: 20px;
    }

    .copy-notification {
        bottom: 20px;
        right: 20px;
        left: 20px;
        font-size: 13px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .flyer-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1400px) {
    .flyer-container {
        grid-template-columns: repeat(3, 1fr);
    }
}