/**
 * Welcome Page Styles
 * Used for the country selection welcome page on main domain (radigin.com)
 */

/* Ensure parent containers have full height */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

/* Main container */
.welcome-page {
    height: 100vh; /* Fallback */
    height: 100dvh; /* Dynamic viewport height - accounts for mobile browser UI */
    min-height: -webkit-fill-available; /* iOS Safari fallback */
    font-family: 'Lora', 'Inter', Georgia, serif;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* When admin is logged in (admin bar present), reduce height to accommodate admin bar */
.show-admin-bar-height {
    height: 96vh;
    height: 96dvh;
}

/* Header */
.welcome-header {
    background-color: #002456;
    flex-shrink: 0;
    position: relative;
}

.welcome-header .logo {
    max-height: 60px;
    margin: 0;
}

.welcome-header .tagline {
    font-size: 14px;
}

.welcome-header .tagline-mobile {
    font-size: 12px;
}

/* Navigation */
.welcome-nav {
    padding: 8px 0;
    position: relative;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
}

.welcome-nav .nav-link {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.nav-link {
    font-size: 1rem !important;
}

.nav-left {
    font-size: 0.75rem !important;
}

.welcome-nav .nav-link:hover {
    opacity: 0.8;
}

/* Swiper/Slider */
.welcome-slider {
    flex: 1 1 auto;
    position: relative;
    overflow: hidden;
    min-height: 0; /* Important for flex children */
}

.welcome-slider .swiper-wrapper {
    height: 100%;
}

.welcome-slider .swiper-slide {
    height: 100%;
    width: 100%;
}

.welcome-slider .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.welcome-slider .slide-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

/* Swiper pagination - vertical dots on left */
.welcome-slider .swiper-pagination {
    position: absolute;
    left: 20px !important;
    top: 50% !important;
    transform: translateY(-50%);
    width: auto !important;
    right: auto !important;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.welcome-slider .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: transparent;
    opacity: 1;
    border: 2px solid white;
    transform: rotate(45deg);
    border-radius: 0;
    margin: 8px 0 !important;
    display: block;
    cursor: pointer;
}

.welcome-slider .swiper-pagination-bullet-active {
    background: white;
}

/* Footer */
.welcome-footer {
    background-color: #002456;
    color: white;
    padding: 8px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.welcome-footer p {
    margin: 0;
    font-size: 13px;
}

.welcome-footer .contact-links {
    display: flex;
    gap: 25px;
    align-items: center;
    font-size: 13px;
}

.welcome-footer .contact-links a {
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: opacity 0.3s ease;
}

.welcome-footer .contact-links a:hover {
    opacity: 0.8;
}

/* Mobile menu */
.mobile-menu-wrapper {
    display: none;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.mobile-menu-btn {
    background: transparent;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 5px 10px;
}

.mobile-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #002456;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    z-index: 9999;
}

.mobile-dropdown.show {
    display: block;
}

.mobile-dropdown a {
    display: block;
    color: white;
    text-decoration: none;
    padding: 12px 20px;
    transition: background-color 0.3s ease;
}

.mobile-dropdown a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Responsive styles */
@media (max-width: 768px) {
    .hide-mobile {
        display: none !important;
    }
    
    .mobile-menu-wrapper {
        display: block !important;
    }
    
    .welcome-nav {
        position: relative;
        padding-left: 1.5rem !important;
        justify-content: start !important;
    }
    
    .swiper-pagination-bullet {
        width: 4px;
        height: 4px;
        border: 1px solid white;
        margin: 3px 0 !important;
    }
    
    .welcome-footer {
        flex-direction: column-reverse !important;
        gap: 10px;
        text-align: center;
        padding: 12px 15px !important;
        padding-bottom: max(12px, env(safe-area-inset-bottom)) !important;
    }
    
    .welcome-footer > div {
        justify-content: center !important;
    }
    
    .welcome-footer .contact-links {
        justify-content: center;
    }
}
