/* ==========================================
   1. ANTET ȘI LOGO (HEADER)
   ========================================== */
.pkp_site_name .is_img {
    margin-left: 0rem;
    max-width: 100%;
    height: auto;
}

/* ==========================================
   2. SUBSOLUL PAGINII (FOOTER)
   ========================================== */
.site-footer {
    color: black;
    padding: 20px 0;
}

.container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.footer-column {
    flex: 1;
    min-width: 160px;
    margin-right: 20px;
}

.footer-column h4 {
    margin-top: 0;
}

.footer-column ul {
    list-style: none;
    padding: 0;
}

.footer-column ul li a {
    color: black;
    text-decoration: none;
}

.footer-column ul li a:hover {
    text-decoration: underline;
}

.footer-column ul li {
    margin-bottom: 5px;
}

.footer-bottom {
    border-top: 1px solid #444;
    padding-top: 10px;
    text-align: center;
}

@media (max-width: 600px) {
    .container {
        flex-direction: column;
    }
    .footer-column {
        margin-bottom: 20px;
    }
}

/* ==========================================
   3. RESETARE TOTALĂ ȘI DEFINITIVĂ INĂLȚIME NATIVĂ OJS
   ========================================== */
body .pkp_structure_main .page_masthead ul.user_listing li,
body .pkp_structure_main ul.user_listing li,
.page_masthead ul.user_listing li {
    float: none !important;
    width: auto !important;
    height: auto !important;         /* Distruge limitarea nativă de înălțime a temei */
    min-height: unset !important;
    max-height: none !important;
    background: none !important;
    border: none !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;   
}

/* ==========================================
   4. CONSTRUIRE GRILĂ ȘI CARD PREMIUM
   ========================================== */
/* Grila pe două coloane paralele */
body .pkp_structure_main ul.editorial-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 20px !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 25px 0 45px 0 !important;
    width: 100% !important;
}

/* Cardul alb - Expandabil dinamic la maximum */
body .pkp_structure_main .page_masthead ul.user_listing li.editorial-card,
body .pkp_structure_main ul.editorial-grid li.editorial-card,
li.editorial-card {
    background: #ffffff !important;
    border: 1px solid #eef2f6 !important;
    border-radius: 10px !important;
    padding: 24px 20px !important;
    display: flex !important;
    flex-direction: row !important;    /* Poza în stânga, textul în dreapta */
    align-items: flex-start !important;
    justify-content: flex-start !important;
    text-align: left !important;
    box-shadow: 0 4px 15px rgba(218, 224, 235, 0.4) !important;
    transition: all 0.3s ease !important;
    
    height: auto !important;           /* Crește automat după text și butoane */
    min-height: 180px !important;      
    max-height: none !important;
    overflow: visible !important;      
    box-sizing: border-box !important;
}

li.editorial-card:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 10px 25px rgba(180, 195, 215, 0.6) !important;
    border-color: #cbd5e1 !important;
}

/* Fotografia Portret (Stânga) */
.editorial-avatar {
    margin-right: 20px !important;
    flex-shrink: 0 !important;
}
.editorial-avatar img {
    width: 85px !important;
    height: 85px !important;
    object-fit: cover !important;
    border-radius: 8px !important;
    border: 2px solid #f1f5f9 !important;
    display: block !important;
}

/* Zona de detalii text (Dreapta) */
.editorial-details {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    height: auto !important;           
    overflow: visible !important;
}

.editorial-details .name {
    font-weight: 700 !important;
    font-size: 1.15rem !important;
    color: #0f172a !important;
    margin: 0 0 2px 0 !important;
}

.editorial-details .affiliation {
    font-size: 0.88rem !important;
    color: #475569 !important;
    line-height: 1.4 !important;
    margin: 0 0 8px 0 !important;
}

/* DOMENII DE INTERES (Tag-urile verzi) */
.editor-interests {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 6px !important;
    margin: 6px 0 14px 0 !important;
    height: auto !important;
}
.interest-badge {
    background-color: #f0fdf4 !important;
    color: #166534 !important;
    font-size: 0.78rem !important;
    font-weight: 500 !important;
    padding: 3px 10px !important;
    border-radius: 4px !important;
    border: 1px solid #bbf7d0 !important;
}

/* ==========================================
   5. REPARAT: INSIGNE PE UN RÂND EXTENSIBIL, ALINIATE LA STÂNGA
   ========================================== */
.editor-badges {
    display: flex !important;
    flex-direction: row !important;  /* Linie orizontală */
    flex-wrap: wrap !important;     /* Permite trecerea pe linia 2 DOAR dacă spațiul lateral se termină, împingând cardul în jos */
    align-items: center !important;
    justify-content: flex-start !important; /* Aliniere strictă la stânga în card */
    gap: 8px 10px !important;       /* Spațiu între insigne (orizontal și vertical) */
    margin: 15px 0 0 0 !important;
    height: auto !important;
    width: 100% !important;
    overflow: visible !important;
}

.badge-link {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 0.8rem !important;
    font-weight: bold !important;
    padding: 4px 10px !important;
    border-radius: 4px !important;
    text-decoration: none !important;
    border: 1px solid #e2e8f0 !important;
    background: #f8fafc !important;
    color: #475569 !important;
    white-space: nowrap !important; /* Textul din interiorul insignei nu se rupe */
}

.badge-icon {
    min-width: 18px !important;
    height: 18px !important;
    padding: 0 4px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 9px !important;
    font-size: 0.62rem !important;
    color: #ffffff !important;
    margin-right: 6px !important;
    font-weight: bold !important;
    flex-shrink: 0 !important;
    box-sizing: border-box !important;
}

/* Culori insigne */
.orcid-badge .badge-icon { background-color: #a6ce39 !important; }
.orcid-badge { border-color: #e2e8f0 !important; color: #475569 !important; }
.orcid-badge:hover { background-color: #f1f5f9 !important; color: #a6ce39 !important; }

.web-badge .badge-icon { background-color: #6366f1 !important; }
.web-badge { border-color: #e2e8f0 !important; color: #475569 !important; }
.web-badge:hover { background-color: #f1f5f9 !important; color: #4f46e5 !important; }

.wos-badge .badge-icon { background-color: #2b2b2b !important; color: #f59e0b !important; }
.wos-badge { border-color: #cbd5e1 !important; color: #1e293b !important; }
.wos-badge:hover { background-color: #f1f5f9 !important; color: #d97706 !important; }

.scopus-badge .badge-icon { background-color: #ff6600 !important; }
.scopus-badge { border-color: #e2e8f0 !important; color: #475569 !important; }
.scopus-badge:hover { background-color: #f1f5f9 !important; color: #ff6600 !important; }

/* Mobil responsiv */
@media (max-width: 992px) {
    body .pkp_structure_main ul.editorial-grid { grid-template-columns: 1fr !important; }
}
