/* Welcome Page - Professional QR Menu */

:root {
    --welcome-bg-start: #0048ad;
    --welcome-bg-end: #00a3ff;
    --button-bg: #ffffff;
    --button-text: #0048ad;
    --logo-radius: 0px;
    --menu-font: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    width: 100%;
}

body {
    font-family: var(--menu-font), -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    min-height: 100vh;
    min-height: -webkit-fill-available;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    margin: 0;
    padding: 0;
}

/* Container - Full Screen */
.welcome-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    background: linear-gradient(135deg, var(--welcome-bg-start) 0%, var(--welcome-bg-end) 100%);
    overflow: hidden;
}

/* Background Pattern - Subtle */
.bg-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 20%, rgba(255,255,255,0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255,255,255,0.03) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

/* Main Content Area */
.welcome-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    flex: 1;
    padding: 40px 32px;
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
}

/* Logo */
.logo-wrapper {
    width: 140px;
    height: 140px;
    background: transparent;
    border-radius: var(--logo-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 32px;
    overflow: hidden;
}

.logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.logo-placeholder {
    color: rgba(255, 255, 255, 0.8);
}

.logo-placeholder i {
    width: 56px;
    height: 56px;
}

/* Brand Name */
.brand-name {
    font-size: 32px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
}

/* Slogan */
.slogan {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 0;
    font-weight: 400;
    letter-spacing: 0.2px;
}

/* Welcome Text */
.welcome-text {
    margin-bottom: 0;
}

.welcome-text p {
    font-size: 18px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 8px;
}

.welcome-text span {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.5;
}

/* Menu Button - Premium Design */
.btn-menu {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 40px;
    padding: 18px 52px;
    background: var(--button-bg);
    color: var(--button-text);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: var(--button-radius, 50px);
    border: none;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.1),
        0 8px 16px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

/* Gradient overlay for depth */
.btn-menu::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(255,255,255,0.15) 0%, transparent 50%, rgba(0,0,0,0.05) 100%);
    pointer-events: none;
}

/* Shine effect */
.btn-menu::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -100%;
    width: 60%;
    height: 200%;
    background: linear-gradient(
        90deg, 
        transparent, 
        rgba(255, 255, 255, 0.25), 
        transparent
    );
    transform: skewX(-20deg);
    transition: left 0.6s ease;
}

.btn-menu:hover::after {
    left: 150%;
}

.btn-menu:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 4px 8px rgba(0, 0, 0, 0.15),
        0 12px 24px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.btn-menu:active {
    transform: translateY(0);
    box-shadow: 
        0 1px 2px rgba(0, 0, 0, 0.1),
        0 4px 8px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.btn-menu span {
    position: relative;
    z-index: 1;
}

.btn-menu i {
    display: none;
}

/* Menu Text Link - Soft Pulse Animation */
.btn-menu-text {
    display: inline-block;
    margin-top: 48px;
    color: var(--button-bg, #fff);
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 20px;
    font-weight: 500;
    font-style: italic;
    letter-spacing: 2px;
    text-decoration: none;
    cursor: pointer;
    animation: softPulse 2.5s ease-in-out infinite;
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.2);
}

@keyframes softPulse {
    0%, 100% {
        opacity: 0.7;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.03);
    }
}

/* Divider Line */
.welcome-divider {
    width: 60px;
    height: 2px;
    background: rgba(255, 255, 255, 0.25);
    margin: 32px 0;
    border-radius: 1px;
}

/* Footer */
.welcome-footer {
    position: relative;
    z-index: 1;
    padding: 24px;
    text-align: center;
}

.welcome-footer p {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.35);
    letter-spacing: 0.3px;
}

.welcome-footer .brand {
    color: rgba(255, 255, 255, 0.5);
    font-weight: 500;
}

/* Wi-Fi Info */
.wifi-info {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 32px;
    padding: 16px 24px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.wifi-icon {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.wifi-icon i {
    width: 22px;
    height: 22px;
}

.wifi-details {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.wifi-label {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 2px;
}

.wifi-name {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
}

.wifi-password {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    font-family: 'SF Mono', 'Fira Code', monospace;
}


/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.92);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.loading-overlay.active {
    opacity: 1;
    visibility: visible;
}

.loading-spinner {
    position: relative;
    width: 56px;
    height: 56px;
}

.spinner-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 2px solid transparent;
    border-top-color: var(--button-bg, #fff);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.spinner-ring:nth-child(2) {
    width: 75%;
    height: 75%;
    top: 12.5%;
    left: 12.5%;
    border-top-color: rgba(255, 255, 255, 0.5);
    animation-duration: 0.8s;
    animation-direction: reverse;
}

.spinner-ring:nth-child(3) {
    width: 50%;
    height: 50%;
    top: 25%;
    left: 25%;
    border-top-color: rgba(255, 255, 255, 0.25);
    animation-duration: 0.6s;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-text {
    margin-top: 20px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* Responsive - Tablet & Desktop */
@media (min-width: 768px) {
    .logo-wrapper {
        width: 160px;
        height: 160px;
    }
    
    .brand-name {
        font-size: 38px;
    }
    
    .slogan {
        font-size: 16px;
    }
    
    .welcome-text p {
        font-size: 20px;
    }
    
    .btn-menu {
        padding: 20px 64px;
        font-size: 17px;
    }
}

/* Responsive - Small phones */
@media (max-width: 360px) {
    .welcome-content {
        padding: 32px 24px;
    }
    
    .logo-wrapper {
        width: 120px;
        height: 120px;
        margin-bottom: 24px;
    }
    
    .brand-name {
        font-size: 26px;
    }
    
    .btn-menu {
        padding: 16px 44px;
        font-size: 15px;
    }
}

/* Safe area for notched phones */
@supports (padding-top: env(safe-area-inset-top)) {
    .welcome-content {
        padding-top: max(40px, env(safe-area-inset-top));
    }
    
    .welcome-footer {
        padding-bottom: max(24px, env(safe-area-inset-bottom));
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .btn-menu,
    .btn-menu::before {
        transition: none;
    }
    
    .btn-menu:hover {
        transform: none;
    }
    
    .spinner-ring {
        animation: none;
    }
}
