/* ==========================================
   SITE POLISH (HEADER & FOOTER) - FLOATING ISLAND
   ========================================== */

/* --- 1. FLOATING HEADER --- */
.site-header {
    position: fixed;
    top: 24px; /* Floating from top */
    left: 50%;
    transform: translateX(-50%); /* Centered */
    width: 95%;
    max-width: 1600px;
    height: 72px; /* Compact & Sleek */
    background: rgba(15, 15, 15, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08); 
    border-radius: 20px; /* Island Look */
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
    box-sizing: border-box;
    
    /* ANIMATION: Unfold / Fall In */
    animation: headerEntrance 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

@keyframes headerEntrance {
    0% {
        top: -100px;
        opacity: 0;
        width: 80%;
    }
    100% {
        top: 24px;
        opacity: 1;
        width: 95%;
    }
}

/* Offset Fix for body content */
body #app-wrapper {
    padding-top: 130px; /* Space for floating header */
}

/* --- BRANDING --- */
.brand-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    transition: opacity 0.2s;
    min-width: 200px;
}

.brand-wrapper:hover { opacity: 0.8; }

.brand-logo {
    width: 36px;
    height: 36px;
    filter: drop-shadow(0 0 10px rgba(255, 183, 0, 0.2));
}

.brand-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.02em;
    font-family: 'Inter', sans-serif;
}

/* --- HEADER ACTIONS (Buttons Row) --- */
.header-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem; /* Tighter gap for cohesion */
    height: 100%;
}

/* Premium Button Base */
.header-actions button {
    background: rgba(255, 255, 255, 0.03) !important; /* Subtle visible backing */
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    color: #aeaeae !important;
    font-size: 0.8rem !important;
    padding: 0 1rem !important; /* Horizontal padding only */
    height: 36px !important; /* Sleek height */
    border-radius: 8px !important;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 500;
    transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
    cursor: pointer;
}

/* Hover State - Glow */
.header-actions button:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
    color: #fff !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* Active / Pressed */
.header-actions button:active {
    transform: translateY(0);
    opacity: 0.8;
}

/* Action Group Wrapper */
.action-group {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

/* Primary Action (Login/Account) - FIX: Use Accent Color */
#login-btn, #account-btn {
    background: var(--accent) !important;
    color: #000 !important;
    border: none !important;
    font-weight: 700 !important;
    box-shadow: 0 0 15px rgba(255, 183, 0, 0.15);
}

#login-btn:hover, #account-btn:hover {
    background: #ffc400 !important; /* Slightly lighter gold */
    box-shadow: 0 0 20px rgba(255, 183, 0, 0.4);
    transform: translateY(-1px);
}

/* Clock styling inside header - Minimalist Pill */
#clock {
    font-family: 'JetBrains Mono', monospace;
    color: #fff;
    font-weight: 600;
    font-size: 0.85rem;
    background: rgba(0,0,0,0.5);
    padding: 0 0.8rem;
    height: 36px;
    display: flex;
    align-items: center;
    border-radius: 8px;
    margin-right: 0.5rem;
    border: 1px solid rgba(255,255,255,0.1);
    letter-spacing: -0.05em;
}

/* Currency - Gold Text */
.currency-display {
    color: #FFB700 !important; 
    border-color: rgba(255, 183, 0, 0.15) !important;
    background: rgba(255, 183, 0, 0.05) !important;
}
.currency-display:hover {
    border-color: #FFB700 !important;
    background: rgba(255, 183, 0, 0.1) !important;
}

/* --- 2. PROFESSIONAL FOOTER (REVAMPED) --- */
.site-footer {
    width: 100%;
    background: #050505;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 6rem 5% 3rem;
    margin-top: 6rem;
    font-family: 'Inter', sans-serif;
    text-align: left !important;
    position: relative;
    z-index: 10;
}

.footer-content {
    max-width: 1600px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 4rem;
}

.footer-col {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-col h3 {
    font-size: 0.85rem;
    font-weight: 600;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
    opacity: 0.6;
}

.footer-col p { text-align: left !important; }

/* Link Styles */
.footer-link, .site-footer a {
    color: #888 !important;
    text-decoration: none !important;
    font-size: 0.95rem;
    margin-bottom: 0.8rem;
    transition: color 0.2s ease, transform 0.2s ease;
    display: inline-block;
    cursor: pointer;
    text-align: left;
}

.footer-link:hover, .site-footer a:hover {
    color: #fff !important;
    transform: translateX(2px);
}

.footer-bottom {
    max-width: 1600px;
    margin: 5rem auto 0;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #444;
    font-size: 0.85rem;
}

.legal-row { display: flex; gap: 2rem; }
.legal-row button {
    background: none;
    border: none;
    color: #555;
    cursor: pointer;
    font-size: 0.85rem;
    padding: 0;
    transition: color 0.2s;
    font-family: inherit;
}
.legal-row button:hover { color: #888; }

@media (max-width: 768px) {
    .site-header { padding: 0 1rem; }
    .brand-title { display: none; } /* Hide text on mobile */
    .footer-content { grid-template-columns: 1fr; gap: 2rem; }
}
