
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Funnel+Display:wght@300..800&display=swap');



/* =================================================================
   --- DEFINIREA VARIABILELOR PENTRU TEME ---
   ================================================================= */

:root {
    /* -- Culori pentru Tema Light (implicită) -- */
    --bg-color: rgb(248 250 252 / var(--tw-bg-opacity, 1))
    --text-color: #212529;
    --card-bg-color: #ffffff;
    --border-color: #e5e7eb;
    --primary-color: #007bff;
    --primary-color-hover: #0069d9;
    --secondary-text-color: #374151;
    --input-bg-color: #ffffff;
    --input-border-color: #d1d5db;
    --button-text-color: #ffffff;
    --star-inactive-color: #d1d5db;
    --star-active-color: #f59e0b;
    --verified-badge-color: #007bff;
    --share-btn-bg: #f3f4f6;
    --share-btn-hover-bg: #e5e7eb;
    --share-btn-color: #4b5563;

    /* -- Variabile structurale -- */
    --main-border-radius: 1rem;
}


/* =================================================================
   --- STILURI GENERALE ȘI COMPONENTE DE BAZĂ ---
   ================================================================= */

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    transition: background-color 0.3s ease, color 0.3s ease;
    font-size: 16px;
}

/* Grila principală - responsivă automat pe desktop */
#profile-grid, #related-profiles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}


.bg-\[\#0ea5e9\]
Specificity: (0,1,0)
 {
    --tw-bg-opacity: 1;
    background-color: linear-gradient(115deg, #86cdff, #0994f7) / var(--tw-bg-opacity, 1));
}

/* Cardul de profil și animațiile sale */
.profile-card {
    background: var(--card-bg-color);
    border-radius: var(--main-border-radius);
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: column;
    position: relative;
    animation: fadeIn 0.6s ease-out forwards;
}

.profile-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Carduri promovate (Boosted) */
.profile-card.boosted {
    border-color: #0ea5e9; /* Păstrăm culoarea specifică pentru boost */
    box-shadow: 0 0 25px rgba(14, 165, 233, 0.5);
    order: -1;
}

.promoted-tag {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: rgba(14, 165, 233, 0.9);
    backdrop-filter: blur(5px);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.promoted-tag svg { animation: boost-flash 1.5s infinite; }

@keyframes boost-flash {
    0%, 100% { transform: scale(1); color: white; }
    50% { transform: scale(1.15); color: #fef08a; }
}

/* Container imagine și efect de zoom */
.image-container {
    position: relative;
    width: 100%;
    padding-bottom: 125%;
    overflow: hidden;
    cursor: pointer;
}

.image-container .main-image {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.profile-card:hover .main-image { transform: scale(1.1); }

/* Stiluri pentru Swiper (galerie imagini) */
.swiper { width: 100%; height: 100%; border-radius: 1.5rem; position: relative; }
.swiper-slide { text-align: center; font-size: 18px; background: var(--card-bg-color); display: flex; justify-content: center; align-items: center; }
.swiper-slide img { display: block; width: 100%; height: 100%; object-fit: cover; }
.swiper-button-next, .swiper-button-prev { color: #fff; }
.swiper-pagination-bullet-active { background: #fff; }

/* Stiluri pentru elemente de formular (modale, input-uri) */
.modal-input {
    background-color: var(--input-bg-color);
    border: 1px solid var(--input-border-color);
    color: var(--text-color);
}
.modal-input:focus {
    border-color: #0ea5e9;
    outline: none;
    box-shadow: 0 0 0 2px rgba(14, 165, 233, 0.5);
}
.image-preview-container {
    width: 100px; height: 100px; border-radius: var(--main-border-radius); border: 2px dashed var(--input-border-color);
    position: relative; overflow: hidden; cursor: pointer; background-color: #f3f4f6;
}
.image-preview-container img { width: 100%; height: 100%; object-fit: cover; }
.image-preview-container .overlay {
    position: absolute; inset: 0; background: rgba(0,0,0,0.4); display: flex; align-items: center;
    justify-content: center; text-align: center; color: white; opacity: 0; transition: opacity 0.3s ease;
    font-size: 0.8rem; padding: 0.25rem;
}
.image-preview-container:hover .overlay { opacity: 1; }

/* Paginare și butoane */
.pagination-btn {
    background: rgba(229, 231, 235, 1);
    border: 1px solid var(--input-border-color);
    color: var(--secondary-text-color);
}
.pagination-btn.active {
    background: #0ea5e9;
    border-color: #0ea5e9;
    color: var(--button-text-color);
}
.pagination-btn.disabled { opacity: 0.5; cursor: not-allowed; }
.view-toggle-btn.active {
    background-color: #0ea5e9;
    color: var(--button-text-color);
    box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
}

/* Rating cu stele */
.star-rating { display: flex; flex-direction: row-reverse; justify-content: flex-end; }
.star-rating input { display: none; }
.star-rating label { font-size: 2rem; color: var(--star-inactive-color); cursor: pointer; transition: color 0.2s; }
.star-rating input:checked ~ label,
.star-rating label:hover,
.star-rating label:hover ~ label { color: var(--star-active-color); }

/* Card recenzie */
.review-card {
    background-color: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: var(--main-border-radius);
    padding: 1.5rem;
}

/* Slider de preț */
input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none; appearance: none; pointer-events: all; width: 24px; height: 24px;
    background-color: var(--card-bg-color); border-radius: 50%; border: 3px solid #0ea5e9; cursor: pointer;
}
input[type="range"]::-moz-range-thumb {
    -moz-appearance: none; appearance: none; pointer-events: all; width: 24px; height: 24px;
    background-color: var(--card-bg-color); border-radius: 50%; border: 3px solid #0ea5e9; cursor: pointer;
}
#price-slider-container.disabled { opacity: 0.5; pointer-events: none; }

/* Contor Boost */
.boost-counter {
    position: absolute; top: 1rem; right: 1rem; z-index: 20; display: flex; align-items: center;
    justify-content: center; width: 4rem; height: 4rem; animation: icon-pulse 2.5s infinite ease-in-out;
    border-radius: 9999px; cursor: default;
}
.boost-counter > svg { position: absolute; width: 100%; height: 100%; padding: 0.25rem; }
.boost-counter > span { position: relative; }
@keyframes icon-pulse {
    0%, 100% { transform: scale(1); filter: drop-shadow(0 0 5px rgba(14, 165, 233, 0.4)); }
    50% { transform: scale(1.1); filter: drop-shadow(0 0 15px rgba(14, 165, 233, 0.7)); }
}

/* Insigna de verificat și butoane de partajare */
.verified-badge {color: #54b4f4;}
.share-btn {
    display: inline-flex; align-items: center; justify-content: center; padding: 0.5rem;
    border-radius: 0.5rem; background-color: var(--share-btn-bg); color: var(--share-btn-color);
    transition: background-color 0.2s, color 0.2s;
}
.share-btn:hover { background-color: var(--share-btn-hover-bg); color: #0ea5e9; }
#copy-link-btn.share-btn { flex: 1; gap: 0.5rem; }
#share-buttons a.share-btn { padding: 0.625rem; }

/* =================================================================
   --- TEMA ÎNTUNECATĂ (DARK MODE) ---
   ================================================================= */


.dark body { background-color: #111827; color: #d1d5db; }
.dark .prose { color: #d1d5db; }
.dark .prose h1, .dark .prose h2, .dark .prose h3, .dark .prose h4 { color: #f9fafb; }
.dark header { background-color: rgba(17, 24, 39, 0.8); border-color: #374151; }
.dark .theme-toggle { color: #9ca3af; }
.dark .theme-toggle:hover { background-color: #374151; }
.dark .profile-card { background: #1f2937; border-color: #374151; }
.dark .profile-card:hover { box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.4), 0 4px 6px -4px rgb(0 0 0 / 0.4); }
.dark .profile-card h3 { color: #f9fafb; }
.dark .profile-card .text-gray-500 { color: #9ca3af; }
.dark #filters-container .bg-white { background-color: #1f2937; border-color: #374151; }
.dark #filters-container .bg-slate-100 { background-color: #374151; }
.dark #filters-container input[type="text"] { background-color: #374151; color: #f9fafb; border-color: transparent; }
.dark #filters-container input[type="text"]::placeholder { color: #9ca3af; }
.dark #filters-container .text-slate-600, .dark #filters-container .text-gray-700 { color: #d1d5db; }
.dark #filters-container .text-slate-700 { color: #e5e7eb; }
.dark #filters-container .border-slate-200 { border-color: #374151; }
.dark #filters-container button[data-price-filter]:not(.bg-\[\#0ea5e9\]) { color: linear-gradient(115deg, #86cdff, #0994f7); }
.dark #filters-container button[data-price-filter]:not(.bg-\[\#0ea5e9\]):hover { background-color: linear-gradient(115deg, #86cdff, #0994f7); }
.dark #category-tags button:not(.bg-sky-500), .dark #benefits-tags button:not(.bg-sky-500), .dark #hair-color-tags button:not(.bg-sky-500), .dark #hair-length-tags button:not(.bg-sky-500) { background-color: #374151; color: #d1d5db; border-color: #4b5563; }
.dark #category-tags button:not(.bg-sky-500):hover, .dark #benefits-tags button:not(.bg-sky-500):hover, .dark #hair-color-tags button:not(.bg-sky-500):hover, .dark #hair-length-tags button:not(.bg-sky-500):hover { background-color: #4b5563; }
.dark input[type="range"]::-webkit-slider-thumb { background-color: #1f2937; }
.dark input[type="range"]::-moz-range-thumb { background-color: #1f2937; }
.dark .bg-gray-200 { background-color: #4b5563; }
.dark .pagination-btn { background: #374151; border-color: #4b5563; color: #d1d5db; }
.dark .pagination-btn.active { background: #0ea5e9; border-color: #0ea5e9; color: white; }
.dark .view-toggle-btn { color: #d1d5db; }
.dark .bg-slate-200 { background-color: #374151; }
.dark .view-toggle-btn.active { background-color: #0ea5e9; color: white; }
.dark #profile-detail-main, .dark #static-page-view, .dark #static-page-view main { background-color: #111827; }
.dark .text-gray-900 { color: #f9fafb; }
.dark .text-gray-800 { color: #f3f4f6; }
.dark .text-gray-600 { color: #a1a1aa; }
.dark .border-gray-200 { border-color: #374151; }
.dark .review-card { background-color: #1f2937; border-color: #374151; }
.dark #review-form { background-color: #1f2937; border-color: #374151; }
.dark #review-form input, .dark #review-form textarea { background-color: #374151; color: #f9fafb; border-color: #4b5563; }
.dark .star-rating label { color: #4b5563; }
.dark .star-rating input:checked ~ label, .dark .star-rating label:hover, .dark .star-rating label:hover ~ label { color: #f59e0b; }
.dark #contact-form input, .dark #contact-form textarea { background-color: #374151!important; color: #f9fafb!important; border-color: #4b5563!important; }
.dark .bg-slate-50 { background-color: #1f2937; }
.dark .border-slate-200 { border-color: #374151; }
.dark .text-slate-600 { color: #d1d5db; }
.dark #add-profile-modal .bg-gray-50, .dark .bg-gray-50 { background-color: #1f2937; border-color: #374151; }
.dark #add-profile-modal .text-gray-900 { color: #f9fafb; }
.dark #add-profile-modal .text-gray-700, .dark #add-profile-modal .text-gray-800 { color: #d1d5db; }
.dark #add-profile-modal .modal-input { background-color: #374151; border-color: #4b5563; color: #f9fafb; }
.dark #add-profile-modal .modal-input:focus { border-color: #0ea5e9; box-shadow: 0 0 0 2px rgba(14, 165, 233, 0.5); }
.dark #add-profile-modal .image-preview-container { background-color: #374151; border-color: #4b5563; }
.dark #age-modal .bg-white { background-color: #1f2937; }
.dark #age-modal .text-slate-800 { color: #f9fafb; }
.dark #age-modal .text-slate-600 { color: #d1d5db; }
.dark #age-modal .bg-slate-200 { background-color: #4b5563; }
.dark #age-modal .text-slate-700 { color: #f9fafb; }
.dark footer { border-color: #374151; background-color: #111827; }
.dark footer .text-gray-500 { color: #9ca3af; }
.dark footer .text-gray-600 { color: #d1d5db; }
.dark footer .text-gray-900 { color: #f9fafb; }
.dark footer .bg-gray-50 { background-color: #1f2937; }
.dark #page-loader { background-color: #111827; }
.dark .swiper-slide { background: #111827; }
.dark .verified-badge { color: white; }
.dark .share-btn { background-color: #374151; color: #d1d5db; }
.dark .share-btn:hover { background-color: #4b5563; color: #f9fafb; }

/* =================================================================
   --- SECȚIUNE RESPONSIVĂ (CONTROLATĂ DE JAVASCRIPT) ---
   ================================================================= */

/* Aceste reguli se aplică DOAR dacă JavaScript adaugă clasele
   .mobile-1-col sau .mobile-2-col la elementul #profile-grid */
@media (max-width: 767px) {
    #profile-grid.mobile-1-col {
        grid-template-columns: 1fr;
    }
    #profile-grid.mobile-2-col {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    #profile-grid.mobile-2-col .profile-card h3 {
        font-size: 1rem;
    }
    #profile-grid.mobile-2-col .profile-card .text-sm {
        font-size: 0.8rem;
    }
    #profile-grid.mobile-2-col .profile-card .p-4 {
        padding: 0.75rem;
    }
}


/* =================================================================
   --- SECȚIUNE DE AJUSTĂRI ȘI REMEDIERI FINALE ---
   ================================================================= */

/* 1. Clasă pentru aplicarea gradientului pe textul "You" */
.text-gradient-you {
  background: linear-gradient(115deg, #a7d5f2, #efc6ff);
  -webkit-background-clip: text; /* Pentru compatibilitate cu browserele WebKit */
  background-clip: text;
  color: transparent; /* Face textul transparent pentru a vedea gradientul */
}

/* 2. Clasă pentru aplicarea gradientului pe textul "Pick" */
.text-gradient-pick {
  background: linear-gradient(115deg, #5efce8, #736efe);
  -webkit-background-clip: text; /* Pentru compatibilitate cu browserele WebKit */
  background-clip: text;
  color: transparent; /* Face textul transparent pentru a vedea gradientul */
}

/* 3. Reguli existente pentru tema light/dark (ajustate pentru fallback) */
/* Aceste reguli vor fi aplicate doar dacă browserul nu suportă 'background-clip' */
header a[href="/"] .text-gray-900 {
  color: rgb(17, 24, 39);
}
footer a[href="/"] .text-gray-900 {
  color: rgb(75, 85, 99);
}

.dark header a[href="/"] .text-gray-900,
.dark footer a[href="/"] .text-gray-900 {
  color: #ffffff;
}

/* 3. Remedieri pentru butoane dinamice (folosite de JS) */
.bg-sky-500 {
    background-color: #0ea5e9;
    color: #ffffff; /* Adăugat pentru consistență */
    transition: background-color 0.2s ease-in-out;
}
.hover\:bg-sky-600:hover {
    background-color: #0284c7;
}


.font-youpick-logo {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
}

.font-pick {
  font-family: 'Funnel Display', sans-serif;
}







