/* Vytvoř si potisk - Voucher Popup Styles v2.0 */
:root {
    --vp-pink: #E6007E;
    --vp-dark: #111827;
    --vp-gold: #FFD700;
    --vp-white: #ffffff;
    --vp-gray-bg: #F9FAFB;
}

#vp-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 2147483647; /* Max 32-bit integer to ensure it's on top of everything */
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

#vp-popup-overlay.vp-visible {
    opacity: 1;
    visibility: visible;
}

#vp-popup-container {
    background: white;
    width: 95%;
    max-width: 500px; /* More compact width */
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    position: relative;
    overflow: hidden;
    transform: scale(0.95);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    font-family: 'Roboto', sans-serif;
    display: flex;
    flex-direction: column;
    max-height: 95vh; /* Allow more height on mobile */
}

#vp-popup-overlay.vp-visible #vp-popup-container {
    transform: scale(1);
}

/* Close Button */
#vp-popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    color: #374151;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    transition: all 0.2s;
    z-index: 20;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

#vp-popup-close:hover {
    background: white;
    color: var(--vp-pink);
    transform: rotate(90deg);
}

/* New Header Section with Image */
.vp-popup-header {
    position: relative;
    height: 140px; /* Reduced height */
    background-color: #111827;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Background Zoom Animation */
@keyframes vp-zoom {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.vp-header-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    animation: vp-zoom 20s ease-in-out infinite;
}

/* Removed floating voucher element styles as it is now part of the background image */

.vp-header-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 60%, transparent 100%);
    padding: 60px 20px 20px;
    color: white;
    text-align: center;
}

.vp-header-title {
    font-size: 28px;
    font-weight: 900;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    line-height: 1.2;
    text-transform: uppercase;
}

.vp-header-subtitle {
    font-size: 14px;
    margin-top: 5px;
    opacity: 0.9;
    font-weight: 500;
}

/* Content Section */
.vp-popup-content {
    padding: 16px 20px; /* Reduced padding */
    overflow-y: auto;
    background: white;
    display: flex;
    flex-direction: column;
    gap: 12px; /* Reduced gap */
}

/* Warning Bar - Redesigned to be less aggressive */
.vp-status-bar {
    background: #FEF2F2;
    border: 1px solid #FEE2E2;
    border-radius: 12px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.vp-status-icon {
    background: #FEE2E2;
    color: #EF4444;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 16px;
    flex-shrink: 0;
}

.vp-status-text {
    color: #7F1D1D;
    font-size: 13px;
    line-height: 1.4;
    margin: 0;
    font-weight: 500;
    text-align: left;
}

.vp-status-text strong {
    display: block;
    color: #991B1B;
    text-transform: uppercase;
    font-size: 11px;
    margin-bottom: 2px;
}

/* Info Text */
.vp-intro-text {
    text-align: center;
    color: #4B5563;
    font-size: 14px; /* Slightly smaller font */
    line-height: 1.4;
    margin-bottom: 0;
}

.vp-intro-text strong {
    color: var(--vp-pink);
}

/* Value Proposition Grid */
.vp-value-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 25px;
}

.vp-value-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 6px;
}

.vp-value-icon {
    background-color: #FDF2F8;
    color: var(--vp-pink);
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.vp-value-text {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    color: #374151;
    line-height: 1.2;
}

/* Vouchers Grid */
.vp-vouchers-title {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
    margin: 4px 0 0 0;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.vp-vouchers-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px; /* Reduced gap */
}

.vp-voucher-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: white;
    border: 2px solid #E5E7EB;
    border-radius: 16px;
    padding: 16px;
    text-decoration: none;
    transition: all 0.2s ease;
    position: relative;
}

.vp-voucher-btn:hover {
    border-color: var(--vp-pink);
    background: #FDF2F8;
    transform: translateY(-2px);
}

.vp-voucher-price {
    font-size: 22px;
    font-weight: 800;
    color: #1F2937;
    margin-bottom: 4px;
}

.vp-voucher-btn:hover .vp-voucher-price {
    color: var(--vp-pink);
}

.vp-voucher-desc {
    font-size: 11px;
    color: #6B7280;
    text-transform: uppercase;
    font-weight: 600;
}

/* Footer */
.vp-footer {
    margin-top: 4px;
    text-align: center;
    border-top: 1px solid #E5E7EB;
    padding-top: 12px;
}

.vp-footer-text {
    font-size: 11px;
    color: #9CA3AF;
    margin: 0 0 10px 0;
}

.vp-action-buttons {
    display: flex;
    justify-content: center;
    gap: 12px;
    align-items: center;
}

.vp-btn-secondary {
    background: #F3F4F6;
    border: 1px solid #E5E7EB;
    color: #374151;
    font-size: 13px;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.vp-btn-secondary:hover {
    background: #E5E7EB;
    color: #111827;
}

.vp-btn-text {
    background: none;
    border: none;
    color: #9CA3AF;
    font-size: 12px;
    cursor: pointer;
    text-decoration: underline;
    padding: 4px;
}

.vp-btn-text:hover {
    color: #6B7280;
}

/* Mobile Responsiveness */
@media (max-width: 480px) {
    #vp-popup-container {
        width: 95%;
        height: auto;
        max-height: 85vh; /* Reduced height to show header */
        border-radius: 16px;
        margin-top: 60px; /* Push down to show header */
    }

    .vp-popup-header {
        height: 180px; /* Increased height for better visibility */
        flex-shrink: 0;
    }
    
    .vp-header-image {
        object-fit: contain; /* Ensure full image is visible */
        background-color: #111827; /* Match background to avoid white bars */
    }
    
    .vp-header-title {
        font-size: 20px;
    }
    
    .vp-popup-content {
        padding: 12px;
        gap: 10px;
    }

    .vp-status-bar {
        margin-bottom: 0;
        padding: 8px 12px;
    }

    .vp-intro-text {
        margin-bottom: 0;
        font-size: 12px;
    }

    .vp-value-grid {
        margin-bottom: 0;
        gap: 5px;
    }
    
    .vp-value-icon {
        width: 28px;
        height: 28px;
        font-size: 14px;
    }
    
    .vp-value-text {
        font-size: 9px;
    }

    .vp-vouchers-grid {
        grid-template-columns: 1fr 1fr; /* 2x2 Grid on mobile */
        gap: 8px;
    }
    
    .vp-voucher-btn {
        padding: 10px;
    }
    
    .vp-voucher-price {
        font-size: 18px;
    }
    
    .vp-voucher-desc {
        font-size: 9px;
    }
    
    .vp-action-buttons {
        flex-direction: row; /* Side by side buttons */
        gap: 8px;
        padding-bottom: 10px;
    }
    
    .vp-btn-secondary {
        width: auto;
        flex: 1;
        padding: 10px;
        font-size: 12px;
    }
    
    .vp-btn-text {
        font-size: 10px;
    }
}


