/**
 * Location Modal Styles - Omega/Tag Heuer Inspired
 * Clean, minimal, professional
 */

/* Import Lipis Flag Icons */
@import url('https://cdn.jsdelivr.net/npm/flag-icons@6.6.6/css/flag-icons.min.css');

/* Header Button */
.location-button {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 14px;
    font-weight: 500;
}

.location-button:hover {
    border-color: var(--gray-400);
    background: var(--gray-50);
}

.location-flag {
    width: 24px;
    height: 18px;
    object-fit: cover;
    border-radius: 2px;
}

.location-currency {
    font-weight: 600;
    color: var(--gray-900);
    min-width: 20px;
    text-align: center;
}

/* Modal Overlay */
.location-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s;
}

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

/* Modal Container */
.location-modal {
    background: white;
    border-radius: 16px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: slideUp 0.3s;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Modal Close Button */
.location-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border: none;
    background: var(--gray-100);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    z-index: 10;
}

.location-modal-close:hover {
    background: var(--gray-200);
    transform: rotate(90deg);
}

/* Modal Header */
.location-modal-header {
    padding: 32px;
    text-align: center;
    border-bottom: 1px solid var(--gray-200);
}

.location-modal-header h2 {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 8px 0;
    color: var(--gray-900);
}

.location-modal-header p {
    font-size: 16px;
    color: var(--gray-600);
    margin: 0;
}

/* Modal Content */
.location-modal-content {
    flex: 1;
    overflow-y: auto;
    padding: 32px;
}

/* Location Sections */
.location-section {
    margin-bottom: 40px;
}

.location-section:last-child {
    margin-bottom: 0;
}

.location-section h3 {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--gray-700);
    margin: 0 0 20px 0;
}

/* Language Options */
.language-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
}

/* Region Options */
.region-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
}

/* Option Cards */
.option-card {
    position: relative;
    display: block;
    padding: 16px;
    border: 2px solid var(--gray-200);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
    background: white;
}

.option-card:hover {
    border-color: var(--gray-400);
    background: var(--gray-50);
}

.option-card.active {
    border-color: #667eea;
    background: #667eea08;
}

.option-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.option-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.option-details {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.option-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-900);
}

.option-price {
    font-size: 12px;
    color: var(--gray-600);
    margin-top: 2px;
}

.discount-badge {
    display: inline-block;
    padding: 2px 6px;
    background: var(--success);
    color: white;
    font-size: 10px;
    font-weight: 600;
    border-radius: 4px;
    margin-top: 4px;
}

/* Modal Footer */
.location-modal-footer {
    padding: 24px 32px;
    border-top: 1px solid var(--gray-200);
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    background: var(--gray-50);
}

/* Responsive */
@media (max-width: 768px) {
    .location-modal {
        width: 95%;
        max-height: 95vh;
    }
    
    .location-modal-header {
        padding: 24px;
    }
    
    .location-modal-content {
        padding: 24px;
    }
    
    .language-options {
        grid-template-columns: 1fr;
    }
    
    .region-options {
        grid-template-columns: 1fr;
    }
}