/* Custom CSS - Taras Shevchenko Staff Page cu Imagine de Fundal */

:root {
    --bg-color: #e616ca;
    --text-main: #f3f4f6;
    --text-muted: #9ca3af;
    --amber-main: #f59e0b;
    --amber-light: #fde68a;
    /* Carduri semitransparente cu efect de sticlă */
    --card-bg: rgba(18, 18, 26, 0.75);
    --card-border: rgba(255, 255, 255, 0.12);
}

body {
    background-color: #08080c;
    background-image:
        linear-gradient(rgba(8, 8, 12, 0.75), rgba(8, 8, 12, 0.85)),
        url('../../images/background.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: var(--text-main);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

html[data-theme="light"] body {
    background-image:
        radial-gradient(circle at top left, rgba(255, 90, 191, 0.22), transparent 28%),
        radial-gradient(circle at top right, rgba(120, 120, 255, 0.17), transparent 30%),
        linear-gradient(180deg, #fffafc 0%, #f1edf9 100%);
}

html[data-theme="light"] .hero-tag,
html[data-theme="light"] .badge-count,
html[data-theme="light"] .filter-btn,
html[data-theme="light"] .staff-card,
html[data-theme="light"] .filter-card,
html[data-theme="light"] .empty-state{
    background: rgba(255, 255, 255, 0.78);
    border-color: rgba(60, 41, 70, 0.12);
    color: #1f1728;
}

html[data-theme="light"] .hero-title,
html[data-theme="light"] .staff-name,
html[data-theme="light"] .staff-title,
html[data-theme="light"] .staff-bio,
html[data-theme="light"] .hero-subtitle,
html[data-theme="light"] .role-badge,
html[data-theme="light"] .search-input,
html[data-theme="light"] .btn-back,
html[data-theme="light"] .instagram-btn,
html[data-theme="light"] .empty-title,
html[data-theme="light"] .empty-subtitle {
    color: #1f1728;
}

html[data-theme="light"] .search-input {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(60, 41, 70, 0.12);
}

html[data-theme="light"] .staff-card,
html[data-theme="light"] .filter-card,
html[data-theme="light"] .empty-state {
    box-shadow: 0 16px 40px rgba(60, 41, 70, 0.08);
}

.site-navbar {
    position: relative;
    z-index: 50;
    width: calc(100% - 18px);
    min-height: 84px;
    margin: 10px auto 0;
    padding: 16px 18px;
    display: grid;
    grid-template-columns: minmax(210px, 1fr) auto auto auto;
    align-items: center;
    gap: 18px;
    color: #fff;
    background: rgba(12, 8, 17, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    font-family: Arial, sans-serif;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
}

.site-navbar .site-brand { color: #fff; text-decoration: none; width: max-content; }
.site-navbar .site-brand strong { display: block; margin: 0; font-size: clamp(18px, 2vw, 42px); line-height: 0.9; letter-spacing: 5px; font-weight: 900; }
.site-navbar .site-brand span { display: block; margin-top: 7px; text-align: center; color: #ff2ebd; letter-spacing: 7px; font-size: 10px; font-weight: 900; }

.site-navbar .site-nav {
    width: auto;
    height: auto;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(20px, 3vw, 42px);
    border: 0;
    background: transparent;
    backdrop-filter: none;
}

.site-navbar .site-nav a {
    position: relative;
    padding: 8px 0;
    color: #fff;
    text-decoration: none;
    font-size: 15px;
    font-weight: 700;
    white-space: nowrap;
    transition: color .25s ease;
}
.site-navbar .site-nav a:hover,
.site-navbar .site-nav a.active { color: #ff2ebd; }
.site-navbar .site-nav a.active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -8px;
    height: 3px;
    background: #ff2ebd;
    border-radius: 3px;
    box-shadow: 0 0 16px #ff2ebd;
}

.site-navbar .site-socials {
    justify-self: end;
    display: none;
    gap: 10px;
}

.site-navbar .site-socials a {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    color: #fff;
    border: 1px solid rgba(255,255,255,.25);
    border-radius: 50%;
    text-decoration: none;
    font-size: 18px;
    transition: transform .25s, color .25s, border-color .25s, box-shadow .25s;
}
.site-navbar .site-socials a:hover { color: #ff2ebd; border-color: #ff2ebd; box-shadow: 0 0 18px rgba(255,46,189,.65); transform: translateY(-3px); }

.site-preferences {
    justify-self: end;
    display: flex;
    align-items: center;
    gap: 10px;
}

.site-preferences button {
    width: 42px;
    height: 42px;
    padding: 0;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    font-weight: 800;
    cursor: pointer;
}

.site-preferences .language-toggle {
    width: 52px;
    border-radius: 999px;
    padding: 0 12px;
    font-size: 0.88rem;
    letter-spacing: 0.12em;
}

.site-menu-toggle {
    width: 42px;
    height: 42px;
    padding: 10px 9px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
}

@media (max-width: 560px) {
    .site-navbar { width: calc(100% - 18px); min-height: 0; padding: 14px 16px; grid-template-columns: 1fr auto auto; gap: 10px; text-align: left; }
    .site-navbar .site-brand { justify-self: start; }
    .site-navbar .site-brand strong { font-size: 18px; letter-spacing: 3px; }
    .site-navbar .site-brand span { margin-top: 5px; font-size: 9px; letter-spacing: 5px; }
    .site-navbar .site-socials { display: none; }
    .site-menu-toggle { display:block; justify-self:end; color:inherit; }
    .site-preferences { justify-self: end; }
    .site-navbar .site-nav { display:none; grid-column:1/-1; grid-row:2; gap:0; overflow:visible; flex-direction:column; align-items:stretch; padding:8px; border:1px solid rgba(255,255,255,.12); border-radius:16px; background:rgba(9,5,18,.96); box-shadow:0 18px 40px rgba(0,0,0,.35); }
    .site-navbar.menu-open .site-nav{ display:flex; }
    .site-navbar .site-nav a { padding:13px 14px; font-size:14px; border-radius:10px; }
    .site-navbar .site-nav a:hover, .site-navbar .site-nav a.active { background:rgba(255,46,189,.12); }
    .site-navbar .site-nav a.active::after{ display:none; }
}
/* Structura principală */
.main-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 2.5rem 1.5rem;
}

/* Hero Section */
.hero-section {
    text-align: center;
    max-width: 42rem;
    margin: 0 auto 2.5rem auto;
}

.hero-tag {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--amber-main);
    background-color: rgba(245, 158, 11, 0.15);
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    border: 1px solid rgba(245, 158, 11, 0.3);
    backdrop-filter: blur(4px);
}

.hero-title {
    font-size: 2rem;
    font-weight: 800;
    margin: 0.75rem 0 0 0;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    color: #d1d5db;
    margin-top: 0.5rem;
    font-size: 0.875rem;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.5);
}

/* Container Filtre și Căutare */
.filter-card {
    background-color: rgba(15, 15, 23, 0.65);
    border: 1px solid var(--card-border);
    border-radius: 1rem;
    padding: 1rem;
    margin-bottom: 2.5rem;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

.filter-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

@media (min-width: 768px) {
    .filter-wrapper {
        flex-direction: row;
    }
}

.filter-tabs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
}

@media (min-width: 768px) {
    .filter-tabs {
        width: auto;
    }
}

.filter-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    background-color: rgba(255, 255, 255, 0.08);
    color: #e5e7eb;
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: all 0.2s;
}

.filter-btn:hover {
    background-color: rgba(255, 255, 255, 0.18);
}

.filter-btn.active {
    background-color: var(--amber-main);
    color: #000;
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
}

.badge-count {
    margin-left: 0.25rem;
    padding: 0.125rem 0.375rem;
    font-size: 10px;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 9999px;
}

.filter-btn.active .badge-count {
    background-color: rgba(0, 0, 0, 0.25);
}

.icon-red { color: #f87171; }
.icon-purple { color: #c084fc; }
.icon-emerald { color: #34d399; }
.icon-cyan { color: #67e8f9; }

/* Căutare */
.search-box {
    position: relative;
    width: 100%;
}

@media (min-width: 768px) {
    .search-box {
        width: 18rem;
    }
}

.search-icon {
    position: absolute;
    left: 0.875rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.875rem;
}

.search-input {
    width: 100%;
    box-sizing: border-box;
    padding: 0.5rem 1rem 0.5rem 2.5rem;
    background-color: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    font-size: 0.75rem;
    color: #fff;
    outline: none;
    transition: all 0.2s;
}

.search-input:focus {
    border-color: rgba(245, 158, 11, 0.6);
}

/* Carduri Membri Staff */
.staff-grid {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 1.5rem;
}

@media (min-width: 640px) {
    .staff-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
    .staff-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 1280px) {
    .staff-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.staff-card {
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 1rem;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.staff-card:hover {
    transform: translateY(-50px);
    border-color: rgba(245, 158, 11, 0.4);
    box-shadow: 0 15px 35px -5px rgba(0, 0, 0, 0.7), 0 0 20px 0 rgba(245, 158, 11, 0.15);
}

.image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 4;
    overflow: hidden;
    background-color: #df17ce;
    
}

.staff-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    transition: transform 0.5s;
}

.staff-card:hover .staff-photo {
    transform: scale(1.05);
}

.badge-icon-overlay {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    height: 2.25rem;
    padding: 0 0.6rem; /* Se extinde automat pe orizontală dacă sunt 2 pictograme */
    border-radius: 12px;
    background-color: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem; /* Spațiul dintre cele două pictograme */
    color: var(--amber-main);
    font-size: 0.875rem;
}

.image-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(18, 18, 26, 0.95), transparent);
}

.card-info {
    padding: 1.25rem;
}

.staff-name {
    font-size: 1.125rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
}

.staff-title {
    font-size: 0.75rem;
    color: rgba(245, 158, 11, 0.9);
    font-weight: 600;
    margin: 0.25rem 0 0.75rem 0;
}

.staff-bio {
    font-size: 0.75rem;
    color: #d1d5db;
    line-height: 1.5;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-bottom {
    padding: 0 1.25rem 1.25rem 1.25rem;
}

.badges-wrapper {
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
}

.role-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 11px;
    font-weight: 600;
    padding: 0.25rem 0.625rem;
    border-radius: 6px;
}

.badge-organizator {
    background-color: rgba(239, 68, 68, 0.18);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.badge-prezentator {
    background-color: rgba(168, 85, 247, 0.18);
    color: #d8b4fe;
    border: 1px solid rgba(168, 85, 247, 0.3);
}

.badge-mentor {
    background-color: rgba(16, 185, 129, 0.18);
    color: #6ee7b7;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-web-developing {
    background-color: rgba(34, 211, 238, 0.14);
    color: #a5f3fc;
    border: 1px solid rgba(34, 211, 238, 0.3);
}

.badge-default {
    background-color: rgba(255, 255, 255, 0.1);
    color: #d1d5db;
}

/* Stare Căutare Goală & Modal */
.empty-state {
    text-align: center;
    padding: 4rem 1rem;
    background-color: rgba(18, 18, 26, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1rem;
    backdrop-filter: blur(12px);
}

.empty-icon { font-size: 3rem; color: #6b7280; margin-bottom: 0.75rem; }
.empty-title { font-size: 1rem; font-weight: 600; color: #d1d5db; margin: 0; }
.empty-subtitle { font-size: 0.75rem; color: #9ca3af; margin-top: 0.25rem; }

.hidden { display: none !important; }
/* Stil Buton Înapoi */
.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 10px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #e5e7eb;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    backdrop-filter: blur(8px);
    transition: all 0.2s ease;
    margin-bottom: 1.5rem;
}

.btn-back:hover {
    background-color: rgba(245, 158, 11, 0.15);
    border-color: rgba(245, 158, 11, 0.4);
    color: #f59e0b;
    transform: translateX(-3px);
}
.card-divider {
    border: none;
    height: 1px;
    background: rgba(255, 255, 255, 0.1); /* Linie subtilă albă/transparentă */
    margin: 0.5rem 0;
    width: 100%;
}
/* Buton Instagram Sub Roluri */
.card-bottom {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1rem;
}

.instagram-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    width: 100%;
    padding: 0.6rem 1.2rem;
    border-radius: 10px;
    
    /* Stil Glassmorphism cu tenta de mov */
    background: rgba(168, 85, 247, 0.12);
    border: 1px solid rgba(168, 85, 247, 0.35);
    color: #c084fc !important;
    
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    text-decoration: none;
    
    /* Previne bug-urile vizuale la colturi */
    box-sizing: border-box;
    overflow: hidden;
    position: relative;
    z-index: 1;
    
    /* Tranzitii line */
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.instagram-btn i {
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.instagram-btn:hover {
    /* Gradient violet/neon fin la hover */
    background: linear-gradient(135deg, #8b5cf6 0%, #d946ef 100%);
    border-color: rgba(217, 70, 239, 0.6);
    color: #ffffff !important;
    
    /* Ridicare si umbra de tip glow */
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.4);
}

.instagram-btn:hover i {
    transform: scale(1.15) rotate(-5deg);
}

.instagram-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(139, 92, 246, 0.3);
}
