/**
 * Bundle Product Page - Custom Overrides
 * 
 * This file contains bundle-specific styling that extends polo-custom.css
 * Only bundle-unique styles should be added here
 */

/* ============================================
   BUNDLE-SPECIFIC PRICE DISPLAY
   ============================================ */

/* Savings badge styling */
.polo-price-section .polo-discount-badge {
    background: linear-gradient(135deg, #27ae60, #229954);
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: 700;
    font-size: 1rem;
    display: inline-block;
    margin-left: 1rem;
    box-shadow: 0 4px 12px rgba(39, 174, 96, 0.3);
    animation: pulse-savings 2s ease-in-out infinite;
}

@keyframes pulse-savings {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 4px 12px rgba(39, 174, 96, 0.3);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 6px 16px rgba(39, 174, 96, 0.5);
    }
}

/* ============================================
   DUAL SIZE SELECTOR LAYOUT
   ============================================ */

/* Add spacing between the two size sections */
.polo-options .polo-size-section + .polo-size-section {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Label styling for dual selectors */
.polo-options .polo-size-section .polo-option-label {
    font-size: 1rem;
    font-weight: 600;
    color: var(--polo-accent);
    margin-bottom: 0.75rem;
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Size button groups - ensure they're visually distinct */
/* .polo-size-section[data-group="polo"] .polo-size-btn {
    border-color: rgba(241, 196, 15, 0.3);
}

.polo-size-section[data-group="jersey"] .polo-size-btn {
    border-color: rgba(52, 152, 219, 0.3);
}

.polo-size-section[data-group="polo"] .polo-size-btn.active {
    border-color: var(--polo-accent);
    background: rgba(241, 196, 15, 0.15);
}

.polo-size-section[data-group="jersey"] .polo-size-btn.active {
    border-color: #3498db;
    background: rgba(52, 152, 219, 0.15);
} */

/* ============================================
   IN-GAME NAME FIELD - BUNDLE CONTEXT
   ============================================ */

.polo-ingame-name-section .polo-ingame-name-help {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
    margin-top: 0.5rem;
    display: block;
    font-style: italic;
}

/* ============================================
   BUNDLE BENEFITS SECTION
   ============================================ */

/* Highlight bundle value in benefits grid */
.polo-benefit-item-desktop[data-benefit="value"],
.polo-benefit-item[data-benefit="value"] {
    position: relative;
}

.polo-benefit-item-desktop[data-benefit="value"]::before,
.polo-benefit-item[data-benefit="value"]::before {
    content: "🔥";
    position: absolute;
    top: -10px;
    right: -10px;
    font-size: 1.5rem;
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* ============================================
   BUNDLE SHOWCASE SECTION
   ============================================ */

/* Adjust showcase text for bundle context */

/* ============================================
   BUNDLE FAQ STYLING
   ============================================ */

/* Highlight bundle-specific FAQ items */
.polo-faq-item[data-bundle-specific="true"] .polo-faq-question {
    background: rgba(241, 196, 15, 0.05);
    border-left: 3px solid var(--polo-accent);
}

/* ============================================
   MOBILE OPTIMIZATIONS
   ============================================ */

@media (max-width: 768px) {
    .polo-showcase .polo-model-description p:first-of-type {
        background: linear-gradient(135deg, var(--polo-accent), #e67e22);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        font-weight: 700;
    }

    /* Reduce spacing between size sections on mobile */
    .polo-options .polo-size-section + .polo-size-section {
        margin-top: 1rem;
        padding-top: 1rem;
    }
    
    /* Adjust savings badge size on mobile */
    .polo-price-section .polo-discount-badge {
        font-size: 0.875rem;
        padding: 0.4rem 0.8rem;
        margin-left: 0.5rem;
        margin-top: 0.5rem;
        display: block;
        width: fit-content;
    }
    
    /* Stack size buttons more compactly on mobile */
    .polo-size-options {
        gap: 0.5rem;
    }
}

/* ============================================
   BUNDLE LOADING STATES
   ============================================ */

/* Show loading indicator when calculating bundle variation */
.polo-add-to-cart-btn.bundle-calculating {
    position: relative;
    pointer-events: none;
    opacity: 0.7;
}

.polo-add-to-cart-btn.bundle-calculating::after {
    content: "";
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to {
        transform: translateY(-50%) rotate(360deg);
    }
}

@media only screen and (min-width: 1024px) {
    .polo-gallery {
            bottom: 9%;
    }
}

/* ============================================
   BUNDLE VALIDATION MESSAGES
   ============================================ */

/* Error state for incomplete size selection */
.polo-size-section.incomplete {
    animation: shake 0.5s ease-in-out;
    border-color: #e74c3c;
}

@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(-10px);
    }
    75% {
        transform: translateX(10px);
    }
}

/* Success state when both sizes selected */
.polo-size-section.complete .polo-option-label::after {
    content: " ✓";
    color: #27ae60;
    margin-left: 0.5rem;
}

/* ============================================
   PRINT STYLES
   ============================================ */

@media print {
    .polo-discount-badge {
        background: #27ae60 !important;
        color: #fff !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}


.polo-ingame-name-section {
    margin-bottom: 1.5rem;
}

.polo-ingame-name-input {
    width: 100%;
    padding: 0.875rem 1rem;
    background: var(--polo-bg-light);
    border: 2px solid var(--polo-border);
    border-radius: var(--polo-border-radius);
    color: var(--polo-text-primary);
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

.polo-ingame-name-input:focus {
    outline: none;
    border-color: var(--polo-primary);
    background: var(--polo-bg-card);
    box-shadow: 0 0 0 3px rgba(241, 196, 15, 0.1);
}

.polo-ingame-name-input::placeholder {
    color: var(--polo-text-muted);
    opacity: 0.6;
}

.polo-ingame-name-help {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: var(--polo-text-secondary);
    font-style: italic;
}

.polo-ingame-name-input.error {
    border-color: #e74c3c;
    animation: shake 0.5s;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .polo-ingame-name-input {
        font-size: 16px; /* Prevents zoom on iOS */
    }
}


