:root {
    --primary-color: #132d4e;
    --secondary-color: #15b7bf;
    --page-background: #ffffff;
    --light-gray: #f8f9fa; /* Un gri foarte deschis */
    --dark-text: #343a40;
}

/* Wrapper-ul adăugat în index.php pentru paginile de profil */
.profile-page-background {
    background-color: var(--light-gray);
    padding-top: 2rem;
    padding-bottom: 4rem; /* Spațiu generos deasupra footer-ului */
}

.profile-page-background.profile-embed-mode {
    padding-top: 0;
    padding-bottom: 0;
    background-color: transparent;
    padding-top: 7rem;
}

/* Embed scope "contact": pastram doar antetul minim + cardul de contact/calendar.
   Ascundem restul (social share, statistici, QR, tab-uri, descriere, specializari,
   materiale, alte tab-uri) pentru un widget compact orientat pe conversie. */
.profile-page-background.embed-scope-contact { padding-top: 2.5rem; }
.embed-scope-contact .social-share-container,
.embed-scope-contact .profil-stats-row,
.embed-scope-contact .qr-code-container-wrapper,
.embed-scope-contact .profile-materials,
.embed-scope-contact .profil-main-content > .nav-tabs,
.embed-scope-contact #bio-tab-pane > .card:not(:first-child),
.embed-scope-contact .tab-pane:not(#bio-tab-pane) {
    display: none !important;
}
.embed-scope-contact .profil-main-content { margin-top: 1rem !important; }

/* Containerul principal al profilului (ajustat să nu mai aibă margini verticale proprii) */
.profil-container {
    max-width: 900px;
}

.profile-switcher-card {
    border-radius: 0.75rem;
}

.profile-switcher-control {
    width: 100%;
    max-width: 360px;
}

/* Antetul Profilului - Piesa centrală a designului */
.profil-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 3rem 1.5rem 2rem 1.5rem; /* Padding ajustat */
    border-radius: 0.75rem;
    position: relative;
    text-align: center;
    box-shadow: 0 10px 30px -10px rgba(0,0,0,0.3);
}

.profil-avatar {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid white; /* Schimbat din var(--page-background) în alb solid */
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    margin-top: -105px; /* Scoate avatarul în afara header-ului */
    background-color: var(--light-gray);
}

.profil-name {
    font-weight: 700;
    font-size: 2.5rem;
    margin-top: 1rem;
    color: white;
}

.profil-subtype {
    font-weight: 300;
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0;
}

/* Statistici integrate în header */
.profil-header .profil-stats-row {
    margin-top: 2rem;
    background-color: rgba(0,0,0,0.15); /* Fundal semi-transparent pentru a ieși în evidență */
    border-radius: 0.5rem;
    padding: 1rem 0;
}
.profil-header .profil-stats-row h5 {
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: white;
}
.profil-header .profil-stats-row small {
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    font-size: 0.75rem;
}

/* Stil pentru Navigarea cu Tab-uri */
.profil-main-content .nav-tabs {
    border-bottom: 2px solid #dee2e6;
}

.profil-main-content .nav-tabs .nav-link {
    border: none;
    border-bottom: 3px solid transparent;
    color: #6c757d;
    font-weight: 600;
    padding: 1rem;
    transition: all 0.2s ease-in-out;
}

.profil-main-content .nav-tabs .nav-link.active,
.profil-main-content .nav-tabs .nav-link:hover {
    color: var(--primary-color);
    border-bottom-color: var(--secondary-color);
    background-color: var(--light-gray);
}

/* Carduri de Conținut */
.tab-content .card {
    border: 1px solid #e9ecef; /* O bordură subtilă */
    border-radius: 0.5rem;
    box-shadow: none; /* Eliminăm umbra de pe carduri pentru un look mai plat și curat */
}

.card-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)) !important;
}

.tab-content .card-header {
    background-color: white; /* Header-ul cardului alb pentru a contrasta cu fundalul paginii */
    border-bottom: 1px solid #e9ecef;
    font-weight: 600;
    color: var(--primary-color);
}

.badge.bg-primary {
    background-color: var(--secondary-color) !important;
    font-weight: 500;
    padding: 0.4em 0.8em;
}

/* Stil pentru hover pe liste */
.service-item, .review-item {
    transition: background-color 0.2s ease;
}

.service-item:hover, .review-item:hover {
    background-color: #fdfdfd; /* Un hover foarte subtil */
}

.rating-star { color: #ffc107; }

.activity-card {
    display: flex;
    align-items: center;
    background-color: #fff;
    border: 1px solid #e9ecef;
    border-radius: 0.5rem;
    padding: 1rem;
    gap: 1.5rem;
    transition: box-shadow 0.2s ease-in-out, transform 0.2s ease-in-out;
}

.activity-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.07);
}

.activity-card-img {
    width: 120px;
    height: 80px;
    object-fit: cover;
    border-radius: 0.375rem;
    flex-shrink: 0; /* Previne micșorarea imaginii */
}

.activity-card-body {
    flex-grow: 1; /* Permite corpului cardului să ocupe spațiul rămas */
}

.activity-card-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.activity-card-details {
    font-size: 0.9rem;
    margin-bottom: 0;
}

.activity-card .btn {
    white-space: nowrap; /* Previne trecerea pe rândul următor a textului din buton */
}

/* Stiluri pentru noul calendar */
    .calendar-wrapper { 
        margin-top: 2rem; 
        border-top: 1px solid #dee2e6; 
        padding-top: 1.5rem;
        max-width: 500px; /* Limitează lățimea maximă pe ecrane mari */
        margin-left: auto; /* Centrează pe ecrane mari */
        margin-right: auto;
    }
    .calendar-grid .day { 
        position: relative; 
        text-align: center; 
        border-radius: 50%; 
        cursor: pointer; 
        transition: background-color 0.2s;
        aspect-ratio: 1 / 1;
        display: flex;
        justify-content: center;
        align-items: center;
        font-size: 0.9em;
    }
    .calendar-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
    .calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
    .calendar-grid .day-name { font-weight: bold; text-align: center; font-size: 0.8em; color: #6c757d; }
    .calendar-grid .day.outside-month { color: #ced4da; cursor: default; }
    .calendar-grid .day.available:not(.outside-month) { background-color: #e9f5e9; font-weight: bold; }
    .calendar-grid .day.available:not(.outside-month):hover { background-color: #d4edd4; }
    .calendar-grid .day.selected { background-color: var(--primaryColor); color: white; }
    .calendar-grid .day.disabled { background-color: #f8f9fa; color: #ced4da; cursor: not-allowed; pointer-events: none; }
    .time-slots-container { display: none; }
    .time-slots-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(80px, 1fr)); gap: 10px; margin-top: 1rem; }
    .time-slot { padding: 8px; border: 1px solid #dee2e6; border-radius: 4px; text-align: center; cursor: pointer; }
    .time-slot:hover { background-color: #e9ecef; }
    .time-slot.selected { background-color: var(--primaryColor); color: white; border-color: var(--primaryColor); }
    .time-slot.disabled { background-color: #f8f9fa; color: #ced4da; cursor: not-allowed; text-decoration: line-through; }


.social-share-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.social-share-container * {
    color: var(--white) !important;
}

/* Stil de bază pentru toate butoanele de share (<a> și <button>) */
.social-share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    font-size: 1.1rem;
    text-decoration: none;
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    border: none; /* Important pentru elementele <button> */
    padding: 0; /* Resetează padding-ul implicit al butoanelor */
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

.social-share-btn:hover {
    transform: translateY(-2px) scale(1.1);
    background-color: rgba(255, 255, 255, 0.25);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Culori inițiale pentru icon-uri */
.social-share-btn .bi-facebook  { color: #1877F2; }
.social-share-btn .bi-whatsapp  { color: #25D366; }
.social-share-btn .bi-linkedin  { color: #0A66C2; }
.social-share-btn .bi-instagram { color: #E1306C; }
.social-share-btn .bi-tiktok    { color: #010101; }
.social-share-btn .bi-link-45deg{ color: #adb5bd; }

/* Feedback vizual pentru copiere */
.social-share-btn.copied {
    background-color: #28a745 !important; /* Verde la succes */
    color: white !important;
}
.social-share-btn.copied .bi { /* Asigură că icon-ul devine alb */
    color: white !important; 
}

/* Styling pentru containerul QR */
.qr-code-container-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 1.5rem;
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
}

.qr-code-display-area,
.qr-code-generate-area,
.qr-code-embed-area {
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.5rem;
    border-radius: 0.5rem;
    transition: background-color 0.2s ease-in-out;
}

.qr-code-display-area:hover,
.qr-code-generate-area:hover,
.qr-code-embed-area:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.qr-code-image {
    width: 100px;
    height: 100px;
    border-radius: 0.375rem;
    background-color: white; /* Fundal alb pentru vizibilitate */
    padding: 4px;
    border: 1px solid #ddd;
}

.qr-code-edit-text,
.qr-code-generate-area small {
    color: var(--white);
    font-size: 0.75rem;
    opacity: 0.8;
}

.qr-code-generate-button {
    width: 100px;
    height: 100px;
    border: 2px dashed rgba(255, 255, 255, 0.5);
    border-radius: 0.375rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: rgba(255, 255, 255, 0.7);
}

.qr-code-embed-button {
    width: 100px;
    height: 100px;
    border: 2px solid rgba(255, 255, 255, 0.45);
    border-radius: 0.375rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    color: rgba(255, 255, 255, 0.88);
}

/* Stiluri pentru modal */
#qr-code-preview {
    border: 1px solid #dee2e6;
    padding: 10px;
    border-radius: 0.5rem;
    background-color: #f8f9fa;
}
#qr-code-preview canvas,
#qr-code-preview img {
    max-width: 100%;
    height: auto;
}
