/* Reset và Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans Khmer', sans-serif;
    background: linear-gradient(135deg, #0a1628 0%, #1a2f4f 50%, #0a1628 100%);
    min-height: 100vh;
    cursor: pointer;
    overflow-x: hidden;
    padding-bottom: 100px; /* Space for fixed CTA button */
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
header {
    background: rgba(10, 22, 40, 0.95);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
}

header .container {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 15px;
}

.logo {
    height: 60px;
    width: auto;
    filter: drop-shadow(0 4px 10px rgba(255, 153, 0, 0.3));
}

header h1 {
    color: #ff9900;
    font-size: 28px;
    font-weight: 900;
    text-align: center;
    text-shadow: 0 2px 10px rgba(255, 153, 0, 0.5);
}

/* Promotions Container */
.promotions-container {
    padding: 40px 20px;
}

/* Promo Grid - Mobile First */
.promo-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.promo-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 153, 0, 0.2);
}

.promo-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 12px 40px rgba(255, 153, 0, 0.4);
    border-color: rgba(255, 153, 0, 0.6);
}

.promo-card img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Fixed CTA Button */
.cta-wrapper {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    width: calc(100% - 40px);
    max-width: 600px;
}

.cta-button {
    width: 100%;
    padding: 20px 40px;
    background: linear-gradient(135deg, #ff9900 0%, #ff6600 100%);
    border: none;
    border-radius: 50px;
    color: white;
    font-size: 22px;
    font-weight: 900;
    font-family: 'Noto Sans Khmer', sans-serif;
    cursor: pointer;
    box-shadow: 0 10px 40px rgba(255, 153, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* Pulse Animation */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 10px 40px rgba(255, 153, 0, 0.6);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 15px 60px rgba(255, 153, 0, 0.9);
    }
}

.cta-button {
    animation: pulse 2s ease-in-out infinite;
}

/* Glow Effect */
.cta-button::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    animation: rotate 3s linear infinite;
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.cta-button:hover {
    transform: scale(1.08);
    box-shadow: 0 15px 60px rgba(255, 153, 0, 1);
}

.cta-button:active {
    transform: scale(0.98);
}

.cta-text {
    position: relative;
    z-index: 1;
}

.cta-icon {
    font-size: 28px;
    position: relative;
    z-index: 1;
    animation: bounce 1s ease-in-out infinite;
}

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

/* Footer */
footer {
    background: rgba(10, 22, 40, 0.95);
    padding: 20px;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    margin-top: 40px;
}

/* Tablet - 2 Columns */
@media (min-width: 768px) {
    .promo-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    header h1 {
        font-size: 32px;
    }

    .logo {
        height: 70px;
    }

    .cta-button {
        font-size: 24px;
        padding: 22px 50px;
    }

    .cta-wrapper {
        max-width: 700px;
    }
}

/* Desktop - 3 Columns */
@media (min-width: 1200px) {
    .promo-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 40px;
    }

    header .container {
        flex-direction: row;
        justify-content: space-between;
    }

    header h1 {
        font-size: 36px;
    }

    .logo {
        height: 80px;
    }

    .promotions-container {
        padding: 60px 40px;
    }

    .cta-button {
        font-size: 26px;
        padding: 24px 60px;
    }

    .cta-wrapper {
        max-width: 800px;
    }

    .promo-card {
        border-radius: 25px;
    }
}

/* Large Desktop - 2 Columns (Better for wide images) */
@media (min-width: 1600px) {
    .promo-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 50px;
    }

    .container {
        max-width: 1600px;
    }
}

/* Loading State */
.promo-card img {
    background: linear-gradient(90deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.1) 50%, rgba(255,255,255,0.05) 100%);
    background-size: 200% 100%;
    animation: loading 1.5s ease-in-out infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

.promo-card img[src] {
    animation: none;
    background: none;
}

/* Ripple Effect on Click */
.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    transform: scale(0);
    animation: ripple-animation 0.6s ease-out;
    pointer-events: none;
}

@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}
