/*
 * Directory Pro — Profile Page (Airbnb-level Redesign)
 * File: public/css/dp-profile.css
 *
 * DESIGN: Premium, spacious, white-dominant with a striking dark hero.
 * Photo 160px. Name 36px. Generous spacing. Cards with border + shadow.
 */

/* ══════════ WRAPPER ══════════ */
.dp-profile {
    font-family: var(--dp-font);
    color: var(--dp-text);
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    font-size: 16px;
    line-height: 1.65;
}

/* ══════════ HERO — Premium dark gradient ══════════ */
.dp-profile-hero {
    display: flex;
    align-items: center;
    gap: 48px;
    background: linear-gradient(135deg, #071e3d 0%, #0a3060 30%, var(--dp-primary) 65%, #1a6bc4 100%);
    border-radius: 20px;
    padding: 64px 60px;
    margin-bottom: 40px;
    color: #fff;
    position: relative;
    overflow: hidden;
    box-shadow: 0 16px 48px rgba(7, 30, 61, 0.35), 0 4px 16px rgba(0,0,0,0.08);
}

.dp-profile-hero::before {
    content: '';
    position: absolute;
    top: -60%;
    right: -15%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 65%);
    border-radius: 50%;
    pointer-events: none;
}

.dp-profile-hero::after {
    content: '';
    position: absolute;
    bottom: -40%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(230, 137, 42, 0.08) 0%, transparent 60%);
    border-radius: 50%;
    pointer-events: none;
}

/* Photo */
.dp-profile-hero__photo-wrap {
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.dp-profile-hero__photo-wrap img,
.dp-profile-hero__initials {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid rgba(255,255,255,0.85);
    box-shadow: 0 8px 32px rgba(0,0,0,0.25), 0 0 0 1px rgba(255,255,255,0.1);
}

.dp-profile-hero__initials {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(12px);
    font-size: 56px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 2px;
}

/* Info */
.dp-profile-hero__info {
    flex: 1;
    min-width: 0;
    position: relative;
    z-index: 1;
}

.dp-profile-hero__name {
    font-size: 36px;
    font-weight: 800;
    margin: 0 0 10px 0;
    line-height: 1.15;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 12px rgba(0,0,0,0.15);
}

.dp-profile-hero__slogan {
    font-size: 18px;
    opacity: 0.85;
    margin: 0 0 20px 0;
    font-weight: 400;
    line-height: 1.55;
}

/* Rating */
.dp-profile-hero__rating {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 24px;
    font-size: 18px;
}

.dp-profile-stars svg {
    width: 22px;
    height: 22px;
    color: #f5b731;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.15));
}

.dp-profile-star--full { color: #f5b731; }
.dp-profile-star--half { color: #f5b731; opacity: 0.6; }
.dp-profile-star--empty { color: rgba(255,255,255,0.25); }

.dp-profile-hero__rating-value {
    font-weight: 700;
    font-size: 20px;
}

.dp-profile-hero__reviews-count {
    opacity: 0.7;
    font-size: 16px;
}

/* Badges */
.dp-profile-hero__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 24px;
}

.dp-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.03em;
}

.dp-badge--verified,
.dp-badge--success {
    background: rgba(99, 153, 34, 0.18);
    color: #8bcc42;
    border: 1px solid rgba(99, 153, 34, 0.25);
}

.dp-badge--premium,
.dp-badge--accent {
    background: rgba(230, 137, 42, 0.18);
    color: #f5a623;
    border: 1px solid rgba(230, 137, 42, 0.25);
}

.dp-badge--new,
.dp-badge--info {
    background: rgba(59, 130, 246, 0.18);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.25);
}

.dp-badge--top-rated,
.dp-badge--warning {
    background: rgba(245, 183, 49, 0.18);
    color: #f5b731;
    border: 1px solid rgba(245, 183, 49, 0.25);
}

.dp-badge--pulse .dp-badge__icon {
    animation: dp-pulse 1.5s ease-in-out infinite;
}

@keyframes dp-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* Actions */
.dp-profile-hero__actions {
    display: flex;
    gap: 14px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.dp-profile-contact-btn {
    background: #fff;
    color: var(--dp-primary);
    border: none;
    padding: 14px 36px;
    border-radius: 12px;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.dp-profile-contact-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(0,0,0,0.18);
}

.dp-profile-hero__actions .dp-btn--ghost,
.dp-favorite-btn {
    background: rgba(255,255,255,0.10);
    border: 1.5px solid rgba(255,255,255,0.25);
    color: #fff;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 22px;
    padding: 0;
}

.dp-profile-hero__actions .dp-btn--ghost:hover,
.dp-favorite-btn:hover {
    background: rgba(255,255,255,0.22);
    transform: translateY(-2px);
}

/* Location */
.dp-profile-hero__location {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 16px;
    opacity: 0.85;
}

.dp-profile-hero__location svg {
    width: 18px;
    height: 18px;
    vertical-align: middle;
    margin-right: 4px;
}

.dp-profile-hero__city {
    display: flex;
    align-items: center;
    font-weight: 500;
}

/* ══════════ BODY LAYOUT ══════════ */
.dp-profile-body {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.dp-profile-main {
    flex: 1;
    min-width: 0;
}

.dp-profile-sidebar {
    width: 320px;
    flex-shrink: 0;
    position: sticky;
    top: 100px;
}

/* ══════════ SECTIONS (body cards) ══════════ */
.dp-profile-section {
    background: #fff;
    border-radius: var(--dp-radius-lg);
    border: 1.5px solid var(--dp-border);
    padding: 32px;
    margin-bottom: 28px;
    box-shadow: var(--dp-shadow);
    transition: box-shadow var(--dp-transition);
}

.dp-profile-section:hover {
    box-shadow: var(--dp-shadow-md);
}

.dp-profile-section__title {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 24px 0;
    padding-left: 16px;
    border-left: 4px solid var(--dp-primary);
    line-height: 1.3;
    letter-spacing: -0.3px;
}

.dp-profile-description {
    font-size: 16px;
    line-height: 1.75;
    color: var(--dp-text-muted);
}

/* ══════════ GALLERY ══════════ */
.dp-profile-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.dp-profile-gallery__item {
    aspect-ratio: 4/3;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
}

.dp-profile-gallery__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.dp-profile-gallery__item:hover img {
    transform: scale(1.06);
}

.dp-profile-gallery__item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0);
    transition: background 0.3s;
    border-radius: 12px;
}

.dp-profile-gallery__item:hover::after {
    background: rgba(0,0,0,0.08);
}

/* ══════════ LIGHTBOX ══════════ */
.dp-profile-lightbox {
    border: none;
    border-radius: 16px;
    padding: 0;
    max-width: 90vw;
    max-height: 90vh;
    background: #000;
    box-shadow: var(--dp-shadow-xl);
}

.dp-profile-lightbox::backdrop {
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(10px);
}

.dp-profile-lightbox img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 14px;
}

.dp-profile-lightbox__close,
.dp-profile-lightbox__prev,
.dp-profile-lightbox__next {
    position: fixed;
    background: rgba(255,255,255,0.12);
    border: none;
    color: #fff;
    border-radius: 50%;
    width: 52px;
    height: 52px;
    font-size: 24px;
    cursor: pointer;
    backdrop-filter: blur(8px);
    transition: background var(--dp-transition);
}

.dp-profile-lightbox__close { top: 24px; right: 24px; }
.dp-profile-lightbox__prev { top: 50%; left: 24px; transform: translateY(-50%); }
.dp-profile-lightbox__next { top: 50%; right: 24px; transform: translateY(-50%); }

.dp-profile-lightbox__close:hover,
.dp-profile-lightbox__prev:hover,
.dp-profile-lightbox__next:hover {
    background: rgba(255,255,255,0.28);
}

/* ══════════ REVIEWS ══════════ */
.dp-profile-reviews__item {
    padding: 28px 0;
    border-bottom: 1.5px solid var(--dp-border);
}

.dp-profile-reviews__item:last-child {
    border-bottom: none;
}

.dp-profile-reviews__header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
}

.dp-profile-reviews__avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--dp-primary-light);
    color: var(--dp-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
    flex-shrink: 0;
}

.dp-profile-reviews__name {
    font-weight: 600;
    font-size: 17px;
}

.dp-profile-reviews__date {
    color: var(--dp-text-muted);
    font-size: 15px;
    margin-left: auto;
}

.dp-profile-reviews__stars svg {
    width: 18px;
    height: 18px;
    color: #f5b731;
}

.dp-profile-reviews__comment {
    font-size: 16px;
    line-height: 1.7;
    color: var(--dp-text-muted);
}

/* ══════════ SIDEBAR BLOCKS ══════════ */
.dp-profile-sidebar__block {
    background: #fff;
    border-radius: var(--dp-radius-lg);
    border: 1.5px solid var(--dp-border);
    padding: 32px;
    margin-bottom: 24px;
    box-shadow: var(--dp-shadow);
    transition: box-shadow var(--dp-transition);
}

.dp-profile-sidebar__block:hover {
    box-shadow: var(--dp-shadow-md);
}

.dp-profile-sidebar__block-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 20px 0;
    padding-bottom: 14px;
    border-bottom: 1.5px solid var(--dp-border);
    color: var(--dp-text);
    letter-spacing: -0.2px;
}

/* Sidebar CTA */
.dp-profile-sidebar__block .dp-profile-contact-btn,
.dp-profile-sidebar__block .dp-btn--primary {
    width: 100%;
    text-align: center;
    padding: 16px 24px;
    font-size: 17px;
    border-radius: 12px;
    background: var(--dp-primary);
    color: #fff;
    border: none;
    cursor: pointer;
    font-weight: 700;
    box-shadow: 0 4px 16px rgba(24, 95, 165, 0.22);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.dp-profile-sidebar__block .dp-profile-contact-btn:hover,
.dp-profile-sidebar__block .dp-btn--primary:hover {
    background: var(--dp-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(24, 95, 165, 0.32);
}

/* Tarifs */
.dp-profile-tarifs__type {
    font-size: 14px;
    color: var(--dp-text-muted);
    margin: 0 0 8px 0;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-weight: 600;
}

.dp-profile-tarifs__range {
    font-size: 32px;
    font-weight: 800;
    color: var(--dp-primary);
    margin: 0;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

/* Phone */
.dp-profile-phone {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
    font-size: 18px;
}

.dp-profile-phone__masked {
    font-family: 'Courier New', monospace;
    font-size: 18px;
    letter-spacing: 1px;
    color: var(--dp-text-muted);
}

.dp-profile-phone__reveal,
.dp-phone__reveal {
    padding: 10px 24px;
    border: 1.5px solid var(--dp-primary);
    background: transparent;
    color: var(--dp-primary);
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.dp-profile-phone__reveal:hover,
.dp-phone__reveal:hover {
    background: var(--dp-primary);
    color: #fff;
    box-shadow: 0 4px 12px rgba(24, 95, 165, 0.2);
}

.dp-profile-phone__full a {
    font-size: 20px;
    font-weight: 700;
    color: var(--dp-primary);
    text-decoration: none;
}

/* Social links */
.dp-profile-social {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.dp-profile-social__link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    color: var(--dp-text-muted);
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    background: var(--dp-bg);
    border: 1.5px solid var(--dp-border);
}

.dp-profile-social__link:hover {
    background: var(--dp-primary-light);
    color: var(--dp-primary);
    border-color: var(--dp-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(24, 95, 165, 0.12);
}

.dp-profile-social__link svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* ══════════ AVAILABILITY ══════════ */
.dp-profile-availability {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.dp-profile-availability__day {
    padding: 8px 16px;
    background: var(--dp-bg);
    border-radius: 10px;
    font-size: 15px;
    font-weight: 500;
    color: var(--dp-text-muted);
    border: 1.5px solid var(--dp-border);
    transition: all var(--dp-transition);
}

.dp-profile-availability__day--active {
    background: var(--dp-primary-light);
    color: var(--dp-primary);
    font-weight: 600;
    border-color: var(--dp-primary);
}

/* ══════════ RESPONSIVE ══════════ */
@media (max-width: 1024px) {
    .dp-profile-hero {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 48px 32px;
        gap: 24px;
    }
    .dp-profile-hero__photo-wrap img,
    .dp-profile-hero__initials {
        width: 120px;
        height: 120px;
        font-size: 42px;
    }
    .dp-profile-hero__name { font-size: 28px; }
    .dp-profile-hero__badges { justify-content: center; }
    .dp-profile-hero__actions { justify-content: center; }
    .dp-profile-hero__location { justify-content: center; flex-wrap: wrap; }

    .dp-profile-body {
        flex-direction: column;
    }
    .dp-profile-sidebar {
        width: 100%;
        position: static;
    }
}

@media (max-width: 768px) {
    .dp-profile-gallery { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .dp-profile-social { gap: 8px; }
}

@media (max-width: 480px) {
    .dp-profile { padding: 0 16px; }
    .dp-profile-hero { padding: 36px 24px; border-radius: 16px; }
    .dp-profile-hero__name { font-size: 24px; }
    .dp-profile-section { padding: 24px 20px; border-radius: 14px; }
    .dp-profile-sidebar__block { padding: 24px 20px; border-radius: 14px; }
    .dp-profile-gallery { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .dp-profile-tarifs__range { font-size: 26px; }
}

@media (max-width: 360px) {
    .dp-profile-hero__name { font-size: 22px; }
    .dp-profile-hero { padding: 28px 20px; }
    .dp-profile-section { padding: 20px 16px; }
}
