/* Profile Page Styles */

.profile-page {
    padding: 6rem 0 4rem;
    background: var(--gray-lighter);
    min-height: 100vh;
}

.profile-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 3rem;
    box-shadow: var(--shadow-lg);
}

/* Gallery Section */
.profile-gallery {
    position: sticky;
    top: 2rem;
    height: fit-content;
}

.main-image {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    /* No fixed aspect-ratio — images show at natural dimensions */
    width: 100%;
    background: var(--gray-lighter);
}

.gallery-main-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.main-image:hover .gallery-main-img {
    transform: scale(1.05);
}

/* Gallery Thumbnails */
.gallery-thumbnails {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
    margin-top: 1rem;
}

.gallery-thumb {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
    border-radius: var(--radius-md);
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.3s ease;
    opacity: 0.7;
}

.gallery-thumb:hover {
    opacity: 1;
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.gallery-thumb.active {
    border-color: var(--primary-color);
    opacity: 1;
    box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.3);
}


.profile-badges {
    position: absolute;
    top: 1rem;
    left: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.badge {
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 700;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.badge-hot {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
}

.badge-verified {
    background: rgba(34, 197, 94, 0.9);
    color: var(--white);
}

.badge-available {
    background: rgba(59, 130, 246, 0.9);
    color: var(--white);
}

/* Profile Details */
.profile-details {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.profile-header {
    border-bottom: 2px solid var(--gray-light);
    padding-bottom: 1.5rem;
}

.profile-title {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.profile-subtitle {
    font-size: 1.25rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.profile-meta {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.meta-item {
    font-size: 0.95rem;
    color: var(--dark-light);
    padding: 0.5rem 1rem;
    background: var(--gray-lighter);
    border-radius: var(--radius-md);
    font-weight: 600;
}

/* Profile Sections */
.profile-section {
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--gray-light);
}

.profile-section:last-of-type {
    border-bottom: none;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 1rem;
}

.about-text {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--dark-light);
}

.about-text p {
    margin-bottom: 1rem;
}

.about-text p:last-child {
    margin-bottom: 0;
}

/* Services Grid */
.services-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.service-tag {
    padding: 0.75rem 1.25rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    border-radius: var(--radius-full);
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.service-tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

/* Rates List */
.rates-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.rate-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    background: var(--gray-lighter);
    border-radius: var(--radius-lg);
    transition: all 0.3s ease;
}

.rate-item:hover {
    background: var(--gray-light);
    transform: translateX(5px);
}

.rate-duration {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dark);
}

.rate-price {
    font-size: 1.25rem;
    font-weight: 900;
    color: var(--primary-color);
    text-align: right;
}

/* Long descriptive rate text (e.g. "Depends on services...") */
.rate-price:not(:empty) {
    max-width: 60%;
}

.rate-item .rate-price[data-type="note"],
.rate-price.note {
    font-size: 0.82rem;
    font-weight: 400;
    color: var(--gray);
    text-align: right;
}

/* Auto-detect long text — if price text is longer than ~12 chars, reduce size */
.rate-item:has(.rate-price) .rate-price {
    word-break: break-word;
}



/* Details Grid */
.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem;
    background: var(--gray-lighter);
    border-radius: var(--radius-md);
}

.detail-label {
    font-size: 0.85rem;
    color: var(--gray);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.05em;
}

.detail-value {
    font-size: 1rem;
    color: var(--dark);
    font-weight: 700;
}

/* Profile Actions */
.profile-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.btn-contact,
.btn-whatsapp {
    flex: 1;
    padding: 1.25rem 2rem;
    border-radius: var(--radius-full);
    text-decoration: none;
    font-weight: 800;
    font-size: 1.1rem;
    text-align: center;
    transition: all 0.3s ease;
}

.btn-contact {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
}

.btn-contact:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(239, 68, 68, 0.5);
}

.btn-whatsapp {
    background: #25D366;
    color: var(--white);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
}

.btn-whatsapp:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.5);
}

/* Back Section */
.back-section {
    padding: 2rem 0;
    background: var(--gray-lighter);
}

.btn-back {
    display: inline-block;
    padding: 1rem 2rem;
    background: var(--white);
    color: var(--dark);
    border-radius: var(--radius-full);
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
}

.btn-back:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: var(--primary-color);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .profile-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 2rem;
    }

    .profile-gallery {
        position: relative;
        top: 0;
    }

    /* No forced aspect-ratio on tablet either */
    .main-image {
        max-width: 480px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .profile-page {
        padding: 5rem 0 2rem;
    }
    
    .profile-container {
        padding: 1.5rem;
    }
    
    .profile-title {
        font-size: 2rem;
    }
    
    .profile-actions {
        flex-direction: column;
    }
    
    .btn-contact,
    .btn-whatsapp {
        width: 100%;
    }
    
    .details-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   PROFILE PAGE — MOBILE MICRO FIXES
   ============================================================ */

@media (max-width: 768px) {
    /* Reduce top padding — sticky header is only ~60px */
    .profile-page { padding: 4rem 0 2rem; }

    /* Full width container on mobile */
    .profile-container { padding: 1rem; gap: 1.5rem; }

    /* Main image — natural size, centered */
    .main-image { max-width: 100%; }

    /* Thumbnails — 4 across on mobile too, smaller gaps */
    .gallery-thumbnails { gap: 6px; margin-top: 8px; }
    .gallery-thumb { border-width: 2px; }

    /* Profile header */
    .profile-title { font-size: 1.75rem; }
    .profile-subtitle { font-size: 1rem; }
    .profile-meta { gap: 0.75rem; }
    .meta-item { font-size: 0.82rem; padding: 0.4rem 0.75rem; }

    /* Sections */
    .profile-section { padding-bottom: 1.25rem; }
    .section-title { font-size: 1.15rem; }

    /* Services — wrap nicely */
    .services-grid { gap: 6px; }
    .service-tag { font-size: 0.78rem; padding: 5px 10px; }

    /* Rates */
    .rate-item { padding: 0.9rem 1rem; }
    .rate-duration { font-size: 0.92rem; }
    .rate-price { font-size: 1rem; }

    /* Details — 2 columns on mobile */
    .details-grid { grid-template-columns: 1fr 1fr; gap: 0.75rem; }
    .detail-item { padding: 0.75rem; }
    .detail-label { font-size: 0.75rem; }
    .detail-value { font-size: 0.9rem; }

    /* Buttons — full width, bigger tap targets */
    .profile-actions { gap: 0.75rem; }
    .btn-contact, .btn-whatsapp { padding: 1rem 1.5rem; font-size: 1rem; }

    /* Back button */
    .back-section { padding: 1.25rem 0; }
    .btn-back { padding: 0.75rem 1.5rem; font-size: 0.9rem; }
}

@media (max-width: 480px) {
    .profile-container { padding: 0.75rem; }
    .profile-title { font-size: 1.5rem; }
    .gallery-thumbnails { grid-template-columns: repeat(4, 1fr); }
    .details-grid { grid-template-columns: 1fr 1fr; }
    .profile-section { padding-bottom: 1rem; }
    .profile-details { gap: 1.25rem; }
}


/* Inline text hyperlinks on profile pages */
.about-text a,
.profile-section p a {
    color: var(--primary-color, #c8102e);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}
.about-text a:hover,
.profile-section p a:hover {
    opacity: 0.8;
}


/* Sticky WA banner padding on mobile for profile pages */
@media (max-width: 768px) {
    body { padding-bottom: 72px; }
}

