/**
 * Visitor Confirmation Popup - Stylesheet
 * 
 * Mobile-first responsive styles for the visitor confirmation popup modal.
 * Includes overlay, modal box, buttons, and animations.
 * 
 * @package Visitor_Confirmation_Popup
 * @since 1.0.0
 */

/* ==========================================================================
   Popup Container & Overlay
   ========================================================================== */

/**
 * Main popup container
 * Fixed position, full screen, centered with flexbox
 */
.vcp-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.vcp-popup.vcp-active {
    opacity: 1;
    visibility: visible;
}

/**
 * Overlay background
 * 75% opacity black overlay to dim the page behind modal
 */
.vcp-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.90);
    cursor: default;
}

/* ==========================================================================
   Modal Box
   ========================================================================== */
.vcp-modal {
    position: relative;
    background: #0b0b0b;
    border-radius: 16px;
    padding: 24px;
    max-width: 600px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    z-index: 1;
    transform: scale(0.9);
    transition: transform 0.3s ease;
    text-align: center;
}

.vcp-popup.vcp-active .vcp-modal {
    transform: scale(1);
}

/**
 * Modal title
 * White text, responsive font size using clamp()
 */
.vcp-title {
    color: #ffffff;
    font-size: clamp(27px, 4vw, 31px);
    font-weight: 600;
    margin: 0 0 16px 0;
    line-height: 1.4;
}

/**
 * Modal description text
 * Slightly muted white for visual hierarchy
 */
.vcp-description {
    color: rgba(255, 255, 255, 0.85);
    font-size: clamp(13px, 3.5vw, 14px);
    line-height: 1.6;
    margin: -5px -8px 20px -8px;
}

.vcp-description br {
    display: none;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

/**
 * Buttons container
 * Flexbox layout, stacked on mobile, side-by-side on desktop
 */
.vcp-buttons {
    display: flex;
    gap: 12px;
    flex-direction: column;
}

/**
 * Base button styles
 * Minimum 44px height for mobile touch targets
 */
.vcp-btn {
    min-height: 44px;
    padding: 12px 24px;
    border: none;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    font-family: inherit;
    text-transform: none;
    letter-spacing: 0;
}

/**
 * Yes button - Golden/Turmeric gradient
 * Eye-catching gradient with black text
 */
.vcp-btn-yes {
    background: linear-gradient(135deg, #ffc931, #ffb900);
    color: #000000;
    box-shadow: 0 4px 15px rgba(244, 197, 66, 0.3);
}

.vcp-btn-yes:hover {
    background: linear-gradient(135deg, #ffd254, #ffbd0e);
    box-shadow: 0 6px 20px rgba(244, 197, 66, 0.4);
    transform: translateY(-2px);
}

.vcp-btn-yes:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(244, 197, 66, 0.3);
}

/**
 * No button - White background
 * Clean white button with black text
 */
.vcp-btn-no {
    background: #ffffff;
    color: #000000;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.vcp-btn-no:hover {
    background: #f5f5f5;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.vcp-btn-no:active {
    transform: translateY(0);
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.1);
}

/* ==========================================================================
   Body Scroll Lock
   ========================================================================== */

/**
 * Prevent body scrolling when popup is active
 * Applied via JavaScript when modal opens
 */
body.vcp-no-scroll {
    overflow: hidden;
    position: fixed;
    width: 100%;
}

/* ==========================================================================
   Responsive Design - Desktop
   ========================================================================== */

/**
 * Desktop styles (768px and above)
 * Buttons side-by-side, larger padding and fonts
 */
@media (min-width: 768px) {
    .vcp-modal {
        padding: 32px;
        width: clamp(300px, 90%, 600px);
    }
    
    .vcp-buttons {
        flex-direction: row;
        gap: 12px;
    }
    
    .vcp-btn {
        flex: 1;
        width: auto;
        font-size: 20px;
    }
    
    .vcp-title {
        font-size: 32px;
    }
    
    .vcp-description {
        font-size: 18px;
    }
	
	.vcp-description br {
    display: unset;
	}
}

/* ==========================================================================
   Accessibility
   ========================================================================== */

/**
 * Focus styles for keyboard navigation
 * Visible outline for accessibility compliance
 */
.vcp-btn:focus {
    outline: 3px solid rgba(244, 197, 66, 0.5);
    outline-offset: 2px;
}

.vcp-btn:focus:not(:focus-visible) {
    outline: none;
}

/* ==========================================================================
   Animations
   ========================================================================== */

/**
 * Fade-in and scale animation for modal appearance
 * Smooth entrance effect
 */
@keyframes vcp-fade-in {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.vcp-popup.vcp-active .vcp-modal {
    animation: vcp-fade-in 0.3s ease;
}
