/* source/shared/auth-panel.css */

/* --- Navbar User Dropdown / Controls --- */
.user-menu-container {
    position: relative;
    display: inline-block;
}

.btn-user-toggle {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: transparent;
    border: none;
    color: #e0d0c0 !important;
    padding: 0.4rem 0.6rem;
    font-family: 'Cinzel', serif;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 1.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.btn-user-toggle:hover {
    color: #ffaa00 !important;
}

.nav-coin-pill {
    background: linear-gradient(135deg, #d49524 0%, #ffc845 100%);
    color: #1a0f00;
    font-size: 0.75rem;
    padding: 0.15rem 0.6rem;
    border-radius: 12px;
    font-weight: 900;
    font-family: 'Roboto', sans-serif;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
    letter-spacing: 0.5px;
}

.user-dropdown {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 10px);
    background: #131722;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.8), 0 0 1px rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    min-width: 190px;
    z-index: 10000;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.user-dropdown.show {
    display: block;
}

.nav-links .user-dropdown-item {
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.8rem 1.2rem;
    color: #c4c9d4;
    text-decoration: none;
    font-family: 'Noto Sans', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.8px;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-links .user-dropdown-item:last-child {
    border-bottom: none;
}

.nav-links .user-dropdown-item:hover {
    background: rgba(0, 120, 255, 0.15);
    color: #ffffff;
    padding-left: 1.4rem;
}

/* --- Account Modal / Window (Blizzard Style) --- */
.account-modal-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(4, 7, 12, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 99999;
    justify-content: center;
    align-items: center;
}

.account-modal-backdrop.open {
    display: flex;
}

.account-modal {
    position: relative;
    width: 90%;
    max-width: 470px;
    background: linear-gradient(145deg, #181d29, #11141c);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.85), 0 0 1px rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 2.5rem;
    color: #ffffff;
    font-family: 'Noto Sans', sans-serif;
    animation: modalPop 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    box-sizing: border-box;
}

@keyframes modalPop {
    from { transform: scale(0.92); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.modal-close-btn {
    position: absolute;
    top: 1.2rem;
    right: 1.4rem;
    background: transparent;
    border: none;
    color: #8c94a2;
    font-size: 1.6rem;
    cursor: pointer;
    transition: color 0.2s, transform 0.2s;
    line-height: 1;
}

.modal-close-btn:hover {
    color: #ffffff;
    transform: scale(1.1);
}

.account-modal-header {
    text-align: center;
    margin-bottom: 2rem;
}

.account-modal-header .modal-subtitle {
    font-family: 'Noto Sans', sans-serif;
    font-size: 0.75rem;
    font-weight: 800;
    color: #f2a900;
    letter-spacing: 3px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 0.4rem;
}

.account-modal-header h2 {
    font-family: 'Cinzel', serif;
    font-size: 1.8rem;
    font-weight: 900;
    color: #ffffff;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin: 0;
    line-height: 1.2;
}

.account-modal-header h2 span {
    color: #f2a900;
}

.account-modal-divider {
    width: 50px;
    height: 2px;
    background: #f2a900;
    margin: 0.8rem auto 0;
    border-radius: 2px;
}

.account-details {
    background: #0d1017;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
    margin-bottom: 1.8rem;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.92rem;
}

.detail-label {
    color: #8c94a2;
    font-family: 'Noto Sans', sans-serif;
    letter-spacing: 1px;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
}

.detail-value {
    color: #ffffff;
    font-weight: 600;
    font-size: 0.95rem;
}

.detail-value.highlight-user {
    color: #f2a900;
    font-weight: 800;
    font-size: 1.15rem;
    letter-spacing: 1px;
}

.detail-value.coins-badge {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(242, 169, 0, 0.12);
    border: 1.5px solid #f2a900;
    padding: 0.25rem 0.85rem;
    border-radius: 20px;
    color: #f2a900;
    font-size: 0.95rem;
    font-weight: 800;
}

.account-modal-actions {
    display: flex;
    gap: 1rem;
}

.btn-modal-shop, .btn-modal-logout {
    flex: 1;
    text-align: center;
    padding: 0.85rem;
    border-radius: 6px;
    font-family: 'Noto Sans', sans-serif;
    font-weight: 800;
    font-size: 0.85rem;
    letter-spacing: 1.5px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
    text-transform: uppercase;
    box-sizing: border-box;
}

.btn-modal-shop {
    background: linear-gradient(135deg, #0078ff, #0056cc);
    border: 1px solid #3399ff;
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(0, 120, 255, 0.35);
}

.btn-modal-shop:hover {
    background: linear-gradient(135deg, #1a8cff, #0066ee);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 120, 255, 0.55);
    color: #ffffff;
}

.btn-modal-logout {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #a1a6b0;
}

.btn-modal-logout:hover {
    background: rgba(255, 60, 60, 0.15);
    border-color: #ff4444;
    color: #ff5555;
    transform: translateY(-2px);
}

/* =========================================
   SITE FOOTER
   ========================================= */
.site-footer {
    background-color: #0a0d14;
    border-top: 1px solid rgba(255,255,255,0.05);
    padding: 3rem 2rem;
    text-align: center;
    font-family: 'Roboto', sans-serif;
    color: #888;
    margin-top: 4rem;
    position: relative;
    z-index: 10;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-logo {
    font-family: 'Cinzel', serif;
    font-size: 1.5rem;
    color: #ffffff;
    margin-bottom: 1rem;
    letter-spacing: 2px;
}

.footer-logo span {
    color: #ffcc00;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: #bbaaaa;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #ffcc00;
}

.footer-copyright {
    font-size: 0.8rem;
    color: #666;
    line-height: 1.6;
}

/* =========================================
   GLOBAL MOBILE RESPONSIVENESS
   ========================================= */
@media (max-width: 900px) {
    /* Navbar */
    .navbar {
        flex-direction: column !important;
        padding: 1rem !important;
        gap: 1.5rem !important;
    }
    .nav-links {
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 1rem !important;
    }
    .nav-links a {
        font-size: 0.85rem !important;
    }
    .logo {
        font-size: 1.6rem !important;
    }
    
    /* Typography */
    .section-title { font-size: 1.8rem !important; white-space: normal !important; text-align: center; }
    .hero-title { font-size: 1.8rem !important; white-space: normal !important; text-align: center; }
    .hero-subtitle { font-size: 1.1rem !important; text-align: center; }
    .hero-desc { font-size: 0.95rem !important; text-align: center; }
    .hero-actions { flex-direction: column; gap: 1rem !important; }
    .btn-hero-primary, .btn-hero-secondary { width: 100%; box-sizing: border-box; text-align: center; padding: 1rem 1rem !important; font-size: 1rem !important; }
    
    /* Layout Containers */
    .shop-wrapper, .auth-wrapper, .htc-wrapper, .main-wrapper {
        height: auto !important;
        min-height: 100vh;
        padding-top: 1rem;
    }
    html, body {
        height: auto !important;
        overflow: auto !important;
    }
    
    /* Shop */
    .coin-grid {
        grid-template-columns: 1fr !important;
    }
    .custom-input-group {
        flex-direction: column !important;
        gap: 0.5rem !important;
    }
    .custom-input-group .equals-sign {
        transform: rotate(90deg);
        margin: 0.5rem 0;
    }
    
    /* Auth Boxes & Panels */
    .auth-box, .htc-container, .shop-container {
        width: 95% !important;
        padding: 1.5rem 1rem !important;
        margin: 1rem auto !important;
    }
}

@media (max-width: 480px) {
    .nav-links {
        gap: 0.5rem !important;
    }
    .nav-links a {
        font-size: 0.75rem !important;
        padding: 0.3rem !important;
    }
    .btn-login, .btn-register, .btn-user-toggle {
        padding: 0.3rem 0.5rem !important;
        font-size: 0.75rem !important;
    }
    .hero-content h1 { font-size: 2rem !important; }
}

/* =========================================
   GLOBAL NAVBAR (Modern Blizzard Style)
   ========================================= */
.global-header {
    background: rgba(13, 16, 23, 0.95);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    font-family: 'Noto Sans', -apple-system, sans-serif;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    height: 70px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.global-header .brand {
    font-family: 'Cinzel', serif;
    font-size: 1.8rem;
    font-weight: 900;
    color: #ffffff;
    text-decoration: none;
    letter-spacing: 2px;
}

.global-header .brand span {
    color: #f2a900;
}

.global-nav {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.global-nav .nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
}

.global-nav .nav-links a {
    color: #a1a6b0;
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.2s ease;
    padding: 0.45rem 0.6rem;
}

.global-nav .nav-links a:hover,
.global-nav .nav-links a.active {
    color: #ffffff;
}

.global-nav .nav-links .btn-register {
    background: linear-gradient(135deg, #0078ff, #0056cc);
    color: #ffffff !important;
    padding: 0.5rem 1.25rem !important;
    border-radius: 5px;
    border: 1px solid #3399ff;
    font-weight: 800;
    box-shadow: 0 3px 10px rgba(0, 120, 255, 0.35);
}

.global-nav .nav-links .btn-register:hover {
    background: linear-gradient(135deg, #1a8cff, #0066ee);
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(0, 120, 255, 0.55);
}

.global-nav .nav-links .btn-login {
    border: 1.5px solid #f2a900;
    color: #f2a900 !important;
    padding: 0.45rem 1.15rem !important;
    border-radius: 5px;
    background: rgba(242, 169, 0, 0.08);
    font-weight: 700;
}

.global-nav .nav-links .btn-login:hover {
    background: rgba(242, 169, 0, 0.2);
    color: #ffc233 !important;
    transform: translateY(-1px);
}

/* Auth Panel Container inside new Nav */
#auth-panel-container {
    display: flex;
    align-items: center;
}

/* =========================================
   GLOBAL BODY & MOBILE RESPONSIVENESS
   ========================================= */
body {
    background-color: #0d1017;
    color: #e4e6eb;
    font-family: 'Noto Sans', sans-serif;
    margin: 0;
    overflow-x: hidden;
}

@media (max-width: 900px) {
    .header-container {
        flex-direction: column;
        height: auto;
        padding: 1rem;
        gap: 1rem;
    }
    .global-nav {
        flex-direction: column;
        gap: 1rem;
    }
    .global-nav .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }
}
