/*
Theme Name: Georgescu Theme v9.8 (Full Restoration + Mobile Fix)
Author: Razvan Georgescu
*/

/* --- 1. RESET SI VARIABILE --- */
:root {
    --gold: #d4af37;
    --dark-bg: #161922;
    --glass-bg: rgba(22, 25, 34, 0.95);
    --glass-border: rgba(255, 255, 255, 0.15);
    
    /* Culori Module */
    --c-profil: #3498db;  
    --c-membri: #9b59b6;  
    --c-wallet: #2ecc71;  
    --c-fleet:  #f39c12;  
    --c-house:  #e67e22;  
    --c-docs:   #f1c40f;  
    --c-health: #e74c3c;  
    --c-gallery:#1abc9c;  
    --c-settings:#95a5a6; 
}

* { box-sizing: border-box; margin: 0; padding: 0; outline: none; }

a { text-decoration: none; color: inherit; transition: 0.3s; }
ul, li { list-style: none; margin: 0; padding: 0; }

body {
    font-family: 'Montserrat', sans-serif;
    overflow: hidden; /* Fără bare de scroll pe Home/Dash */
    color: #fff;
    background-color: #000;
    height: 100vh; 
    width: 100vw;
}

/* --- 2. HEADER --- */
.site-header {
    position: fixed; top: 0; left: 0; width: 100%;
    height: 60px;
    z-index: 9000;
    display: flex; align-items: center; justify-content: flex-end;
    background: linear-gradient(to bottom, rgba(0,0,0,0.9), rgba(0,0,0,0.6));
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding-right: 40px;
}

.site-header i, .site-header svg {
    color: var(--gold) !important;
    font-size: 1.2rem;
}

/* Utilitare pentru nume responsive */
.desktop-name { display: inline; }
.mobile-name { display: none; }

/* --- 3. DOCK (BARA DE SUS SUB HEADER) --- */
.app-dock {
    position: fixed; top: 60px; left: 0; width: 100%; height: 70px;
    background: rgba(0, 0, 0, 0.5); backdrop-filter: blur(5px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    display: flex; align-items: center; justify-content: center; z-index: 900;
}
.dock-scroll-wrapper { display: flex; align-items: center; gap: 20px; height: 100%; }
.dock-item { display: flex; flex-direction: column; align-items: center; opacity: 0.6; transition: 0.3s; cursor: pointer; }
.dock-item:hover, .dock-item.active { opacity: 1; transform: scale(1.1); }
.dock-icon-circle { font-size: 1.3rem; margin-bottom: 4px; display: flex; align-items: center; justify-content: center; }
.dock-label { font-size: 0.65rem; text-transform: uppercase; font-weight: 700; }

/* --- 4. HERO (HOME) --- */
.home-hero-wrapper {
    position: absolute; 
    top: 50%; 
    left: 50%; 
    transform: translate(-50%, -50%);
    text-align: center; 
    width: 100%; 
    padding: 20px;
    background: radial-gradient(closest-side, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0) 100%);
    z-index: 10;
}

.hero-logo {
    font-family: 'Great Vibes', cursive; 
    color: var(--gold);
    font-size: clamp(3rem, 12vw, 6rem); 
    margin: 0;
    text-shadow: 0 5px 25px rgba(0,0,0,0.9);
    font-weight: 400; 
    line-height: 1.2;
}

#clock {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(2.5rem, 9vw, 5rem);
    color: #ffffff;
    font-weight: 700; 
    text-shadow: 0 5px 20px rgba(0,0,0,1);
    margin-top: 5px;
    letter-spacing: 2px;
}

#date-box {
    font-size: clamp(0.8rem, 3.5vw, 1rem);
    color: var(--gold);
    margin-top: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 2px 10px rgba(0,0,0,1);
    opacity: 0.9;
}

/* --- 5. DASHBOARD GRID --- */
.dashboard-container {
    position: absolute;
    top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 90%; max-width: 900px;
    display: flex; align-items: center; justify-content: center;
    z-index: 20;
}

.app-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 20px;
    padding: 30px;
    width: 100%;
    background: rgba(22, 25, 34, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 30px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.4);
    max-height: 80vh; overflow-y: auto; 
    justify-items: center;
}

.app-card {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: 15px; border-radius: 20px; transition: 0.3s;
    background: rgba(255,255,255,0.02);
    width: 100%;
}
.app-card:hover { background: rgba(255, 255, 255, 0.1); transform: translateY(-5px); }
.app-icon { font-size: 2.5rem; margin-bottom: 10px; filter: drop-shadow(0 5px 5px rgba(0,0,0,0.5)); transition: 0.3s; }
.app-label { font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; color: rgba(255,255,255,0.9); text-align: center; }

/* --- 6. MODULE WRAPPER --- */
.module-card-wrap {
    position: absolute; top: 150px; left: 50%; transform: translateX(-50%);
    width: 95%; max-width: 1600px; bottom: 30px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(20px);
    border-radius: 25px;
    padding: 30px; overflow-y: auto; overflow-x: hidden;
    animation: slideUp 0.4s ease-out; z-index: 50;
}
@keyframes slideUp { from { opacity:0; transform:translate(-50%, 30px); } to { opacity:1; transform:translate(-50%, 0); } }

/* --- 7. TOOLTIP CUSTOM --- */
.geo-tooltip {
    position: fixed; background: rgba(0, 0, 0, 0.95);
    color: var(--gold); padding: 8px 14px;
    border-radius: 6px; font-size: 0.75rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 1px;
    pointer-events: none; z-index: 10000;
    opacity: 0; transform: scale(0.8);
    transition: opacity 0.2s, transform 0.2s;
    border: 1px solid rgba(212, 175, 55, 0.4);
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
    white-space: nowrap;
}
.geo-tooltip.visible { opacity: 1; transform: scale(1); }

/* --- 8. FOOTER --- */
.site-footer { 
    width: 100%; height: 40px; 
    display: flex; justify-content: center; align-items: center; 
    z-index: 100; 
    background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
    font-size: 0.75rem; color: rgba(255,255,255,0.5); letter-spacing: 1px;
    position: fixed; bottom: 0; left: 0; 
}

/* --- 9. STILURI LOGIN --- */
.login-card { 
    position: absolute; 
    top: 50%; left: 50%; transform: translate(-50%, -50%);
    background-color: #161922; 
    padding: 50px 40px; 
    border-radius: 20px; 
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    width: 90%; max-width: 400px; 
    text-align: center; 
    border: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 50;
    animation: floatUp 0.6s ease-out;
}
@keyframes floatUp { from { opacity: 0; transform: translate(-50%, -40%); } to { opacity: 1; transform: translate(-50%, -50%); } }

.login-card input { transition: all 0.3s ease; }
.login-card input:focus { border-color: var(--gold) !important; box-shadow: 0 0 8px rgba(212, 175, 55, 0.2); }
.login-card button:hover { background-color: #eac14d !important; transform: translateY(-2px); }

/* --- 10. MEDIA QUERIES (MOBILE FIX REZOLVAT) --- */
@media (max-width: 768px) {
    /* 1. Ascunde widget-ul DOAR dacă este în mod Dashboard (header) */
    .desktop-only-widget { display: none !important; }

    /* 2. Asigură-te că footer-ul e jos sau ascuns dacă încurcă */
    .site-footer { display: none; } /* Pe mobil ascundem footer-ul "Secure Private Cloud" ca să nu se bată cu widgetul */

    .site-header { padding-right: 15px; height: 50px; }
    .desktop-name { display: none !important; }
    .mobile-name { display: inline !important; font-size: 0.8rem; }
    
    .hero-logo { width: 100%; white-space: nowrap; font-size: 3rem; } 
    #date-box { letter-spacing: 0 !important; white-space: nowrap; }

    .dashboard-container {
        position: absolute !important; 
        top: 60px !important; bottom: 40px !important; left: 0 !important;
        width: 100% !important; height: auto !important; 
        transform: none !important; 
        display: flex !important; flexDirection: column; justifyContent: center; alignItems: center;     
        padding-top: 10px; padding-bottom: 10px;
    }

    .app-grid {
        grid-template-columns: repeat(2, 1fr) !important; 
        gap: 12px; padding: 15px; max-height: 100% !important; 
    }
    
    .app-card { padding: 10px; }
    .app-icon { font-size: 2rem; margin-bottom: 5px; }
    .app-label { font-size: 0.65rem; }
    
    .app-dock { 
        top: 50px !important; height: 60px !important; 
        background: transparent !important; border: none;
        justify-content: flex-start !important; overflow-x: auto !important;
        padding-left: 15px;
    }
    .app-dock::-webkit-scrollbar { display: none; }
    .dock-scroll-wrapper { gap: 15px !important; padding-right: 20px; }
    .dock-icon-circle { width: 40px; height: 40px; font-size: 1rem; }
    
    .module-card-wrap { top: 120px !important; width: 100%; border-radius: 20px 20px 0 0; border: none; padding: 15px; }
}

/* --- 11. WEATHER ENGINE ANIMATIONS (NOU) --- */
#geo-live-wrapper {
    /* Z-Index critic pentru a fi peste Welcome Wrapper */
    z-index: 99999;
}

@keyframes geo-pulse {
    0% { transform: scale(1); text-shadow: 0 0 5px #ff4d4d; }
    50% { transform: scale(1.05); text-shadow: 0 0 20px #ff0000; }
    100% { transform: scale(1); text-shadow: 0 0 5px #ff4d4d; }
}

.geo-pulse {
    animation: geo-pulse 1.2s infinite alternate ease-in-out;
    color: #ff4d4d !important;
}

#geo-weather-canvas {
    pointer-events: none;
    z-index: -1;
}