/* ═══════════════════════════════════════════════════════════════
   VFA MEP Profile
   ═══════════════════════════════════════════════════════════════ */

/* ─── EP Header ─── */

.vfa-mep-header {
    padding: 48px 24px 24px;
}

.vfa-mep-header__logo {
    height: 80px;
    width: auto;
    margin: 0 auto 16px;
}

@media (max-width: 640px) {
    .vfa-mep-header__logo { height: 48px; }
}


/* ─── Profile Card ─── */

.vfa-mep-card {
    background: var(--vfa-white);
    border-radius: 16px;
    padding: 48px;
    max-width: 960px;
    margin: 0 auto 0;
}

@media (max-width: 768px) {
    .vfa-mep-card { padding: 24px 16px; }
}

.vfa-mep-card__top {
    display: flex;
    gap: 48px;
    align-items: flex-end;
}

@media (max-width: 768px) {
    .vfa-mep-card__top {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 24px;
    }
}

.vfa-mep-card__photo {
    flex-shrink: 0;
    width: 250px;
}

.vfa-mep-card__photo img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

@media (max-width: 768px) {
    .vfa-mep-card__photo { width: 200px; }
}

.vfa-mep-card__name {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--vfa-orange);
    margin-bottom: 24px;
}

.vfa-mep-card__detail {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.4;
}

.vfa-mep-card__label {
    color: var(--vfa-orange);
    font-style: italic;
}

.vfa-mep-card__divider {
    border: none;
    border-top: 1px solid #ddd;
    margin: 32px 0;
}


/* ─── Bottom Section ─── */

.vfa-mep-card__bottom {
    display: flex;
    gap: 48px;
}

@media (max-width: 768px) {
    .vfa-mep-card__bottom {
        flex-direction: column;
        gap: 32px;
    }
}

.vfa-mep-card__sidebar {
    flex: 0 0 33%;
}

.vfa-mep-card__punti {
    flex: 1;
}

.vfa-mep-card__section-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--vfa-orange);
    margin-bottom: 16px;
}

.vfa-mep-card__commissioni {
    font-size: .95rem;
    line-height: 1.5;
    margin-bottom: 24px;
}

.vfa-mep-card__commissioni p {
    margin-bottom: 4px;
}

.vfa-mep-card__commissioni #sigla {
    padding: 2px 4px;
    background: #efefef;
    margin-right: .2em;
    font-weight: 600;
}

.vfa-mep-card__links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.vfa-mep-card__links a {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .95rem;
    font-weight: 500;
    color: var(--vfa-dark);
}

.vfa-mep-card__links a:hover {
    color: var(--vfa-orange-deep);
}

/* 10 punti inside card */
.vfa-mep-card__punti .styled-paragraph {
    font-size: .95rem;
    padding: 8px 12px;
    margin: 6px 0;
    background: #f9f9f9;
    border-radius: 8px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, .06);
    transition: background .3s, transform .2s;
    display: flex;
    align-items: center;
}

.vfa-mep-card__punti .styled-paragraph:hover {
    background: var(--vfa-orange);
    color: var(--vfa-white);
    transform: scale(1.01);
}

.vfa-mep-card__punti .list-elem {
    font-size: 1.3em;
    font-weight: 700;
    color: var(--vfa-orange);
    margin-right: 12px;
    min-width: 36px;
    text-align: right;
    position: static;
    display: inline;
    width: auto;
    height: auto;
    background: none;
    border-radius: 0;
}

.vfa-mep-card__punti .styled-paragraph:hover .list-elem {
    color: var(--vfa-white);
}


/* ─── Tabs ─── */

.vfa-mep-tabs {
    background: var(--vfa-orange);
    padding: 48px 0 60px;
    margin-top: 0;
}

.vfa-tabs {
    background: var(--vfa-white);
    border-radius: 16px;
    overflow: hidden;
    max-width: 960px;
    margin: 0 auto;
}

.vfa-tabs__nav {
    display: flex;
}

.vfa-tabs__btn {
    flex: 1;
    padding: 18px 16px;
    font-family: var(--vfa-font-heading);
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .02em;
    background: var(--vfa-cream-light);
    border: none;
    cursor: pointer;
    color: var(--vfa-text);
    transition: background .2s, color .2s;
}

.vfa-tabs__btn:hover {
    background: var(--vfa-orange-light);
}

.vfa-tabs__btn.is-active {
    background: var(--vfa-orange);
    color: var(--vfa-white);
}

.vfa-tabs__panel {
    padding: 32px;
}

@media (max-width: 640px) {
    .vfa-tabs__btn { font-size: .8rem; padding: 14px 8px; }
    .vfa-tabs__panel { padding: 16px; }
}

/* Voting history table overrides */
.vfa-tabs__panel #mepVotingHistoryTable {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
}

.vfa-tabs__panel #mepVotingHistoryTable thead th {
    text-align: center;
    text-transform: uppercase;
    font-weight: 700;
    padding: 10px 8px;
    border-bottom: 2px solid #ddd;
    background: var(--vfa-orange) !important;
    color: var(--vfa-white) !important;
}

.vfa-tabs__panel #mepVotingHistoryTable,
.vfa-tabs__panel #mepVotingHistoryTable th,
.vfa-tabs__panel #mepVotingHistoryTable td {
    border: none !important;
    vertical-align: middle !important;
}

.vfa-tabs__panel #mepVotingHistoryTable td {
    padding: 10px 8px;
}

.vfa-tabs__panel #mepVotingHistoryTable td a {
    color: var(--vfa-dark) !important;
    text-decoration: none;
    font-weight: 500;
}

.vfa-tabs__panel #mepVotingHistoryTable td a:hover {
    text-decoration: underline;
}

/* Google Sheet table overrides */
.vfa-tabs__panel #mepsGoogleSheetTable {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
}

.vfa-tabs__panel #mepsGoogleSheetTable thead th {
    text-align: left;
    text-transform: uppercase;
    font-weight: 700;
    padding: 10px 8px;
    border-bottom: 2px solid #ddd;
    background: var(--vfa-orange) !important;
    color: var(--vfa-white) !important;
}

.vfa-tabs__panel #mepsGoogleSheetTable,
.vfa-tabs__panel #mepsGoogleSheetTable th,
.vfa-tabs__panel #mepsGoogleSheetTable td {
    border: none !important;
    vertical-align: middle !important;
}

.vfa-tabs__panel #mepsGoogleSheetTable td {
    padding: 10px 8px;
}

.vfa-tabs__panel #mepsGoogleSheetTable td a {
    color: var(--vfa-dark) !important;
    text-decoration: underline;
}

/* DataTables overrides */
.vfa-tabs__panel .dataTables_wrapper {
    border: none;
}

.vfa-tabs__panel .dataTables_filter input {
    padding: 6px 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 14px;
}

/* Vote circles */
.vote-circle {
    display: inline-block;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #ccc;
}

.vote-favorevole { background: var(--vfa-green) !important; }
.vote-contrario { background: var(--vfa-red) !important; }
.vote-astenuto { background: var(--vfa-yellow) !important; }
.vote-assente { background: var(--vfa-gray) !important; }
