/**
 * Guest Welcome Pop-up Styles - Minimalist Design
 * 
 * Compact, sleek preferences card for language and currency selection
 * 
 * @package Sokna
 * @since 1.0.0
 */

/* ============================================
   POP-UP OVERLAY & CONTAINER
   ============================================ */

.sokna-welcome-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000001 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.sokna-welcome-popup.is-active {
    pointer-events: auto;
}

.sokna-popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sokna-welcome-popup.is-active .sokna-popup-overlay {
    opacity: 1;
}

.sokna-popup-content {
    position: relative;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
    max-width: 600px;
    width: 90%;
    transform: translateY(20px) scale(0.95);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000002 !important;
    pointer-events: auto;
    padding: 24px;
}

.sokna-welcome-popup.is-active .sokna-popup-content {
    transform: translateY(0) scale(1);
    opacity: 1;
}

/* Close Button */
.sokna-popup-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    color: #666666;
    transition: all 0.2s ease;
    z-index: 10;
    pointer-events: auto !important;
}

.sokna-popup-close:hover {
    background: #f5f5f5;
    color: #000000;
}

.sokna-popup-close svg {
    width: 16px;
    height: 16px;
}

/* ============================================
   POP-UP BODY - MINIMALIST LAYOUT
   ============================================ */

.sokna-popup-body {
    padding: 0;
}

.sokna-popup-greeting {
    font-size: 14px;
    font-weight: 500;
    color: #666666;
    margin: 0 0 24px;
    text-align: center;
    line-height: 1.5;
}

/* Preference Sections - Separated Rows */
.sokna-preference-section {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
}

.sokna-preference-section:last-of-type {
    margin-bottom: 0;
}

/* Instructional Text */
.sokna-popup-instruction {
    font-size: 12px;
    font-style: italic;
    color: #999999;
    margin: 0 0 16px;
    text-align: center;
    line-height: 1.5;
    padding: 0 20px;
}

/* ============================================
   LANGUAGE SELECTOR - HORIZONTAL ROW 1
   ============================================ */

.sokna-language-selector {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.sokna-lang-option {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 6px;
    text-decoration: none;
    color: #000000;
    transition: all 0.2s ease;
    pointer-events: auto !important;
    cursor: pointer !important;
    font-size: 13px;
    white-space: nowrap;
}

.sokna-lang-option:hover {
    background-color: #f8f8f8;
    border-color: rgba(0, 0, 0, 0.15);
}

.sokna-lang-option.active {
    background-color: #000000;
    border-color: #000000;
    color: #ffffff;
}

.sokna-lang-flag {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sokna-lang-flag svg {
    width: 18px;
    height: 13px;
    border-radius: 2px;
}

.sokna-lang-name {
    font-size: 13px;
    font-weight: 400;
    line-height: 1;
}

.sokna-lang-option.active .sokna-lang-name {
    color: #ffffff;
}

/* ============================================
   CURRENCY SELECTOR - HORIZONTAL ROW 2
   ============================================ */

.sokna-currency-selector {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.sokna-currency-option {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px 14px;
    min-width: 50px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 6px;
    background-color: #ffffff;
    text-decoration: none;
    color: #000000;
    transition: all 0.2s ease;
    pointer-events: auto !important;
    cursor: pointer !important;
    font-size: 13px;
    font-weight: 500;
}

.sokna-currency-option:hover {
    background-color: #f8f8f8;
    border-color: rgba(0, 0, 0, 0.15);
}

.sokna-currency-option.active {
    background-color: #000000;
    border-color: #000000;
    color: #ffffff;
}

.sokna-currency-code {
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    color: #000000;
    transition: color 0.2s ease;
}

.sokna-currency-option.active .sokna-currency-code {
    color: #ffffff;
}

/* Remove currency symbol for minimalist design */
.sokna-currency-symbol {
    display: none;
}

/* ============================================
   POP-UP FOOTER
   ============================================ */

.sokna-popup-footer {
    padding: 0;
    margin-top: 20px;
    text-align: center;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    padding-top: 16px;
}

.sokna-popup-continue {
    width: 100%;
    padding: 10px 24px;
    background: #000000;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    pointer-events: auto !important;
}

.sokna-popup-continue:hover {
    background: #333333;
}

.sokna-popup-continue:active {
    transform: translateY(1px);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 640px) {
    .sokna-popup-content {
        width: 95%;
        max-width: none;
        margin: 20px;
        padding: 20px;
    }
    
    .sokna-popup-greeting {
        font-size: 13px;
        margin-bottom: 20px;
    }
    
    .sokna-popup-instruction {
        font-size: 11px;
        margin-bottom: 14px;
        padding: 0 10px;
    }
    
    .sokna-preference-section {
        margin-bottom: 16px;
    }
    
    .sokna-language-selector,
    .sokna-currency-selector {
        width: 100%;
        justify-content: center;
        gap: 6px;
    }
    
    .sokna-lang-option,
    .sokna-currency-option {
        flex: 1;
        min-width: 0;
        justify-content: center;
        padding: 8px 10px;
    }
    
    .sokna-popup-footer {
        margin-top: 16px;
        padding-top: 16px;
    }
}

/* ============================================
   RTL SUPPORT
   ============================================ */

html[dir="rtl"] .sokna-popup-close {
    right: auto;
    left: 12px;
}

html[dir="rtl"] .sokna-lang-option {
    text-align: right;
}
