/* ============================================================================
   PROMOTION STYLES - Universal Promotion Display System
   Supports: Popup, Banner, Slide-in, Full-screen
   ============================================================================ */

/* ============================================================================
   BASE STYLES & VARIABLES
   ============================================================================ */

:root {
    --promotion-accent: #c9a961;
    --promotion-accent-dark: #b89851;
    --promotion-accent-light: #f5f5f0;
    --promotion-overlay-bg: rgba(0, 0, 0, 0.7);
    --promotion-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================================================
   POPUP MODAL STYLES
   ============================================================================ */

.promotion-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--promotion-transition);
}

.promotion-modal.active {
    opacity: 1;
    visibility: visible;
}

.promotion-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--promotion-overlay-bg);
    backdrop-filter: blur(4px);
    cursor: pointer;
}

.promotion-content {
    position: relative;
    background: white;
    border-radius: 16px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: translateY(-20px) scale(0.95);
    transition: var(--promotion-transition);
}

.promotion-modal.active .promotion-content {
    transform: translateY(0) scale(1);
}

.promotion-content-popup {
    animation: popupSlideIn 0.4s ease-out;
}

@keyframes popupSlideIn {
    from {
        transform: translateY(-30px) scale(0.9);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

/* ============================================================================
   BANNER STYLES
   ============================================================================ */

.promotion-banner {
    position: fixed;
    left: 0;
    width: 100%;
    z-index: 9998;
    background: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.promotion-banner.promotion-banner-top {
    top: 0;
    transform: translateY(-100%);
}

.promotion-banner.promotion-banner-bottom {
    bottom: 0;
    top: auto;
    transform: translateY(100%);
}

.promotion-banner.active {
    transform: translateY(0);
}

.promotion-banner-content {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* ============================================================================
   SLIDE-IN STYLES
   ============================================================================ */

.promotion-slide-in {
    position: fixed;
    z-index: 9998;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    max-width: 400px;
    width: 90%;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.promotion-slide-in.promotion-slide-right {
    right: 20px;
    bottom: 20px;
    transform: translateX(calc(100% + 40px));
}

.promotion-slide-in.promotion-slide-left {
    left: 20px;
    bottom: 20px;
    transform: translateX(calc(-100% - 40px));
}

.promotion-slide-in.active {
    transform: translateX(0);
}

/* ============================================================================
   FULL-SCREEN STYLES
   ============================================================================ */

.promotion-fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    background: linear-gradient(135deg, var(--promotion-accent) 0%, var(--promotion-accent-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--promotion-transition);
}

.promotion-fullscreen.active {
    opacity: 1;
    visibility: visible;
}

.promotion-fullscreen-content {
    max-width: 700px;
    width: 90%;
    text-align: center;
    color: white;
}

.promotion-fullscreen .promotion-title {
    color: white;
    font-size: 3rem;
}

.promotion-fullscreen .promotion-description {
    color: rgba(255, 255, 255, 0.95);
}

/* ============================================================================
   CLOSE BUTTON
   ============================================================================ */

.promotion-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(0, 0, 0, 0.1);
    color: #333;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 10;
    font-weight: 300;
}

.promotion-close:hover {
    background: rgba(0, 0, 0, 0.2);
    transform: rotate(90deg);
}

.promotion-fullscreen .promotion-close,
.promotion-banner .promotion-close {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.promotion-fullscreen .promotion-close:hover,
.promotion-banner .promotion-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* ============================================================================
   CONTENT ELEMENTS
   ============================================================================ */

.promotion-image {
    width: 100%;
    max-height: 300px;
    overflow: hidden;
    border-radius: 16px 16px 0 0;
}

.promotion-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.promotion-body {
    padding: 2.5rem;
    text-align: center;
}

.promotion-body-compact {
    padding: 1rem 1.5rem;
    text-align: left;
}

.promotion-slide-in .promotion-body {
    padding: 2rem;
}

.promotion-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 2rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.promotion-body-compact .promotion-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.promotion-description {
    font-size: 1rem;
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.promotion-body-compact .promotion-description {
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.promotion-promo-code {
    background: var(--promotion-accent-light);
    border: 2px dashed var(--promotion-accent);
    border-radius: 8px;
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
    display: inline-block;
    min-width: 200px;
}

.promotion-body-compact .promotion-promo-code {
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
}

.promotion-promo-label {
    display: block;
    font-size: 0.875rem;
    color: #666;
    margin-bottom: 0.25rem;
}

.promotion-promo-value {
    display: block;
    color: var(--promotion-accent);
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.promotion-body-compact .promotion-promo-value {
    font-size: 1.25rem;
}

/* ============================================================================
   BUTTONS
   ============================================================================ */

.promotion-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: stretch;
}

.promotion-body-compact .promotion-buttons {
    flex-direction: row;
    gap: 0.5rem;
}

.promotion-button {
    display: inline-block;
    padding: 1rem 3rem;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    text-align: center;
    white-space: nowrap;
}

.promotion-body-compact .promotion-button {
    padding: 0.625rem 1.5rem;
    font-size: 0.875rem;
}

.promotion-button-primary {
    background: var(--promotion-accent);
    color: white;
}

.promotion-button-primary:hover {
    background: var(--promotion-accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(201, 169, 97, 0.3);
}

.promotion-button-secondary {
    background: transparent;
    color: #666;
    border: 2px solid #ddd;
}

.promotion-button-secondary:hover {
    background: #f5f5f5;
    border-color: #ccc;
}

/* ============================================================================
   STYLE VARIANTS
   ============================================================================ */

/* Minimal Style */
.promotion-minimal .promotion-content,
.promotion-minimal.promotion-slide-in {
    max-width: 400px;
}

.promotion-minimal .promotion-body {
    padding: 2rem;
}

.promotion-minimal .promotion-title {
    font-size: 1.5rem;
}

.promotion-minimal .promotion-description {
    font-size: 0.875rem;
}

/* Bold Style */
.promotion-bold .promotion-content,
.promotion-bold.promotion-slide-in,
.promotion-bold.promotion-banner {
    background: linear-gradient(135deg, var(--promotion-accent) 0%, var(--promotion-accent-dark) 100%);
    color: white;
}

.promotion-bold .promotion-title {
    color: white;
}

.promotion-bold .promotion-description {
    color: rgba(255, 255, 255, 0.95);
}

.promotion-bold .promotion-promo-code {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

.promotion-bold .promotion-promo-value {
    color: white;
}

.promotion-bold .promotion-button-primary {
    background: white;
    color: var(--promotion-accent);
}

.promotion-bold .promotion-button-primary:hover {
    background: var(--promotion-accent-light);
}

.promotion-bold .promotion-button-secondary {
    border-color: rgba(255, 255, 255, 0.5);
    color: white;
}

.promotion-bold .promotion-button-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Elegant Style */
.promotion-elegant .promotion-body {
    font-family: Georgia, serif;
}

.promotion-elegant .promotion-title {
    font-style: italic;
}

/* Modern Style */
.promotion-modern .promotion-content,
.promotion-modern.promotion-slide-in {
    border-radius: 24px;
}

.promotion-modern .promotion-button {
    border-radius: 50px;
}

/* ============================================================================
   RESPONSIVE STYLES
   ============================================================================ */

@media (max-width: 768px) {
    .promotion-content {
        width: 95%;
        max-width: none;
        margin: 1rem;
    }

    .promotion-body {
        padding: 1.5rem;
    }

    .promotion-title {
        font-size: 1.5rem;
    }

    .promotion-description {
        font-size: 0.875rem;
    }

    .promotion-button {
        width: 100%;
        padding: 0.875rem 2rem;
    }

    .promotion-banner-content {
        flex-direction: column;
        text-align: center;
        padding: 1rem;
    }

    .promotion-slide-in {
        max-width: calc(100% - 40px);
        width: calc(100% - 40px);
    }

    .promotion-fullscreen .promotion-title {
        font-size: 2rem;
    }

    .promotion-promo-code {
        min-width: auto;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .promotion-body {
        padding: 1rem;
    }

    .promotion-title {
        font-size: 1.25rem;
    }

    .promotion-promo-value {
        font-size: 1.5rem;
    }

    .promotion-slide-in.promotion-slide-right,
    .promotion-slide-in.promotion-slide-left {
        right: 10px;
        left: 10px;
        bottom: 10px;
        max-width: calc(100% - 20px);
        width: calc(100% - 20px);
    }
}

/* ============================================================================
   ACCESSIBILITY
   ============================================================================ */

@media (prefers-reduced-motion: reduce) {
    .promotion-modal,
    .promotion-banner,
    .promotion-slide-in,
    .promotion-fullscreen,
    .promotion-content,
    .promotion-button,
    .promotion-close {
        transition: none !important;
        animation: none !important;
    }
}

/* Focus states for accessibility */
.promotion-close:focus,
.promotion-button:focus {
    outline: 2px solid var(--promotion-accent);
    outline-offset: 2px;
}

/* ============================================================================
   LOADING STATE
   ============================================================================ */

.promotion-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.promotion-loading::after {
    content: '';
    width: 40px;
    height: 40px;
    border: 4px solid var(--promotion-accent-light);
    border-top-color: var(--promotion-accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ============================================================================
   PRINT STYLES
   ============================================================================ */

@media print {
    .promotion-modal,
    .promotion-banner,
    .promotion-slide-in,
    .promotion-fullscreen {
        display: none !important;
    }
}
