/* =========================================
   1. VARIABILE SI SETARI GENERALE
   ========================================= */
:root {
    --text-main: #1a202c;
    --text-muted: #4a5568;
    --primary-blue: #00478F;
    --hover-blue: #003366;
    --white: #ffffff;
    --shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    
    --fb-color: #1877F2;
    --ig-color: #E1306C;
    --tk-color: #000000;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
}

body {
    background: linear-gradient(135deg, #e0eafc 0%, #cfdef3 100%);
    background-attachment: fixed;
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 100px 20px 40px; 
}

/* =========================================
   2. FIXARE STRICTA LOGO-URI (SA NU EXPLODEZE)
   ========================================= */
.nav-logo, .small-logo, .top-logo {
    max-height: 45px !important; /* Limita ferma de inaltime */
    max-width: 250px !important; /* Limita ferma de latime */
    width: auto !important;
    object-fit: contain;
    display: inline-block;
    margin: 0 auto;
}

/* =========================================
   3. NAVBAR (MENIUL DE SUS PE PRIMA PAGINA)
   ========================================= */
.top-navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.lang-switcher {
    background: var(--white);
    border-radius: 20px;
    padding: 4px;
    box-shadow: var(--shadow);
    display: flex;
}

.lang-switcher button {
    background: transparent;
    border: none;
    padding: 6px 12px;
    border-radius: 15px;
    cursor: pointer;
    font-weight: 600;
    font-size: 12px;
    color: var(--text-muted);
    transition: 0.3s ease;
}

.lang-switcher button.active {
    background: var(--primary-blue);
    color: var(--white);
}

/* =========================================
   4. CONTAINER PRINCIPAL (STICLA MATA)
   ========================================= */
.container {
    max-width: 600px;
    width: 100%;
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(12px);
    border-radius: 24px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.8);
}

/* =========================================
   5. AVATAR SI TEXTE
   ========================================= */
.avatar {
    width: 120px;
    max-width: 120px !important;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--white);
    box-shadow: var(--shadow);
    margin-bottom: 15px;
    background-color: #fff;
}

.title {
    font-size: 26px;
    font-weight: 800;
    color: var(--primary-blue);
    margin-bottom: 5px;
}

.subtitle {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 25px;
}

.about-box {
    background: var(--white);
    padding: 20px;
    border-radius: 16px;
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-muted);
    margin-bottom: 30px;
}

/* =========================================
   6. SOCIAL MEDIA BUTOANE (FARA QR)
   ========================================= */
.social-wrapper {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--white);
    color: var(--text-muted);
    font-size: 20px;
    text-decoration: none;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.social-btn.facebook:hover { background: var(--fb-color); color: white; transform: translateY(-3px); }
.social-btn.instagram:hover { background: var(--ig-color); color: white; transform: translateY(-3px); }
.social-btn.tiktok:hover { background: var(--tk-color); color: white; transform: translateY(-3px); }

/* =========================================
   7. BUTOANE PRINCIPALE & FOOTER
   ========================================= */
.links { display: flex; flex-direction: column; gap: 15px; }

.link-btn {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    background: var(--primary-blue); color: var(--white); text-decoration: none;
    padding: 16px 20px; border-radius: 12px; font-weight: 600; font-size: 16px;
    transition: all 0.3s ease; box-shadow: 0 4px 6px rgba(0, 71, 143, 0.2);
}

.link-btn:hover { background: var(--hover-blue); transform: translateY(-3px); }

.outline-btn {
    background: transparent; color: var(--primary-blue);
    border: 2px solid var(--primary-blue); box-shadow: none;
}
.outline-btn:hover { background: var(--primary-blue); color: var(--white); }

.footer { margin-top: 40px; font-size: 12px; color: #64748b; }
.discrete-info { margin-top: 5px; font-family: monospace; letter-spacing: 0.5px; }

/* =========================================
   8. PAGINILE PIF & PARTNERSHIP (REGLAJE)
   ========================================= */
.wide-container { max-width: 800px; padding: 40px; margin-top: -60px; /* Ridica continutul pe paginile fara navbar */ }
.back-btn { display: inline-block; text-decoration: none; color: var(--text-muted); font-weight: 600; font-size: 14px; margin-bottom: 20px; transition: color 0.3s ease; }
.back-btn:hover { color: var(--primary-blue); }

.header-section { text-align: center; margin-bottom: 30px; border-bottom: 1px solid rgba(0, 0, 0, 0.05); padding-bottom: 20px; }
.header-section .title { margin-top: 15px; }

/* Tabel PIF */
.pif-table-wrapper { background: var(--white); border-radius: 12px; padding: 20px; box-shadow: var(--shadow); margin-bottom: 40px; border: 1px solid #e2e8f0; }
.pif-clean-table { width: 100%; border-collapse: collapse; }
.pif-clean-table tr { border-bottom: 1px solid #f1f5f9; }
.pif-clean-table tr:last-child { border-bottom: none; }
.pif-clean-table td { padding: 12px 10px; font-size: 14px; text-align: left; }
.table-label { width: 35%; color: var(--text-muted); font-weight: 600; }
.table-value { width: 65%; color: var(--text-main); }

/* Sectiuni text PIF */
.pif-content-sections { display: flex; flex-direction: column; gap: 40px; text-align: left; }
.long-text-section { background: var(--white); padding: 30px; border-radius: 16px; box-shadow: var(--shadow); }
.section-title { color: var(--primary-blue); font-size: 20px; font-weight: 800; margin-bottom: 15px; padding-bottom: 10px; border-bottom: 2px solid #f1f5f9; }
.text-body { font-size: 15px; line-height: 1.8; color: var(--text-muted); }
.text-body p { margin-bottom: 15px; text-align: justify; }

/* =========================================
   9. RESPONSIVITATE (TELEFOANE)
   ========================================= */
@media (max-width: 768px) {
    .top-navbar { padding: 12px 20px; }
    .container { padding: 30px 20px; }
    body { padding-top: 85px; }
    .wide-container { margin-top: -30px; }
    
    .table-label, .table-value { display: block; width: 100%; padding: 8px 0; }
    .table-label { padding-bottom: 2px; font-size: 12px; text-transform: uppercase; }
    .table-value { padding-top: 0; margin-bottom: 10px; }
    .long-text-section { padding: 20px; }
}