/**
 * Korbel Age Gate Styles
 * Inspired by elegant champagne branding
 */

/* Age Gate Overlay */
.korbel-age-gate-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ffffff;
    z-index: 2147483647; /* Maximum z-index value */
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

/* Main Container */
.korbel-age-gate-container {
    max-width: 600px;
    width: 90%;
    text-align: center;
    padding: 40px 20px;
}

/* Content Wrapper */
.korbel-age-gate-content {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    padding: 40px 30px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Fallback for browsers without backdrop-filter support */
@supports not (backdrop-filter: blur(5px)) {
    .korbel-age-gate-content {
        background: rgba(255, 255, 255, 0.98);
    }
}

/* Logo */
.korbel-age-gate-logo {
    margin-bottom: 40px;
}

.korbel-age-gate-logo img {
    max-width: 200px;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* Header */
.korbel-age-gate-header {
    margin-bottom: 30px;
}

.korbel-age-gate-header h1 {
    font-size: 2.5rem;
    font-weight: 300;
    color: #2c2c2c;
    margin: 0;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

/* Question */
.korbel-age-gate-question {
    margin-bottom: 40px;
}

.korbel-age-gate-question p {
    font-size: 1.25rem;
    color: #555555;
    margin: 0;
    font-weight: 400;
    line-height: 1.4;
}

/* Buttons */
.korbel-age-gate-buttons {
    margin-bottom: 40px;
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.korbel-age-gate-btn {
    background: #d4af37;
    border: 2px solid #d4af37;
    color: #ffffff;
    padding: 15px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 0;
    min-width: 120px;
    font-family: inherit;
}

.korbel-age-gate-btn:hover {
    background: #b8941f;
    border-color: #b8941f;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

.korbel-age-gate-btn:active {
    transform: translateY(0);
}

.korbel-age-gate-btn:focus {
    outline: 2px solid #d4af37;
    outline-offset: 2px;
}

/* No Button Alternative Style */
.korbel-age-gate-btn-no {
    background: transparent;
    color: #666666;
    border-color: #cccccc;
}

.korbel-age-gate-btn-no:hover {
    background: #f5f5f5;
    border-color: #999999;
    color: #333333;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Underage Message */
.korbel-age-gate-underage-message {
    background: #f8f8f8;
    border: 1px solid #e0e0e0;
    padding: 30px;
    margin-bottom: 30px;
    border-radius: 4px;
}

.korbel-age-gate-underage-message p {
    color: #555555;
    font-size: 1.1rem;
    line-height: 1.6;
    margin: 0 0 15px 0;
}

.korbel-age-gate-underage-message p:last-child {
    margin-bottom: 0;
}

/* Footer */
.korbel-age-gate-footer {
    border-top: 1px solid #e0e0e0;
    padding-top: 30px;
}

.korbel-age-gate-footer p {
    font-size: 0.9rem;
    color: #888888;
    line-height: 1.5;
    margin: 0;
}

/* Loading State */
.korbel-age-gate-loading .korbel-age-gate-btn {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .korbel-age-gate-container {
        padding: 20px 15px;
        width: 95%;
    }
    
    .korbel-age-gate-header h1 {
        font-size: 2rem;
    }
    
    .korbel-age-gate-question p {
        font-size: 1.1rem;
    }
    
    .korbel-age-gate-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .korbel-age-gate-btn {
        width: 100%;
        max-width: 280px;
        padding: 12px 30px;
    }
    
    .korbel-age-gate-logo img {
        max-width: 150px;
    }
}

@media (max-width: 480px) {
    .korbel-age-gate-container {
        padding: 15px 10px;
    }
    
    .korbel-age-gate-header h1 {
        font-size: 1.75rem;
    }
    
    .korbel-age-gate-question p {
        font-size: 1rem;
    }
    
    .korbel-age-gate-footer p {
        font-size: 0.85rem;
    }
}

/* Animation for smooth transitions */
.korbel-age-gate-overlay {
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Hide scrollbars when overlay is active */
body.korbel-age-gate-active {
    overflow: hidden !important;
}

/* Accessibility improvements */
.korbel-age-gate-btn:focus-visible {
    outline: 3px solid #d4af37;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .korbel-age-gate-overlay {
        background: #ffffff;
        border: 2px solid #000000;
    }
    
    .korbel-age-gate-btn {
        border-width: 3px;
    }
    
    .korbel-age-gate-header h1 {
        color: #000000;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .korbel-age-gate-overlay {
        animation: none;
    }
    
    .korbel-age-gate-btn {
        transition: none;
    }
    
    .korbel-age-gate-btn:hover {
        transform: none;
    }
}