/* profile modal styles — extracted from profile/templates/profile-modal.php */
/* ===== PUBLIC PROFILE MODAL ===== */

/* Close button */
.profile-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.5);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 22px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    z-index: 10;
    padding: 0;
    line-height: 0;
    font-weight: 300;
}
.profile-close-btn:hover {
    background: rgba(255,255,255,0.15);
    color: white;
}

/* Hero Section — avatar left, info right */
.profile-hero {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 28px 28px 0 28px;
}
.profile-hero-avatar {
    width: 100px !important;
    height: 100px !important;
    border-radius: 50% !important;
    object-fit: cover;
    border: 3px solid rgba(255,255,255,0.25) !important;
    box-shadow: 0 8px 32px rgba(0,0,0,0.4) !important;
    flex-shrink: 0;
}
.profile-hero-info {
    flex: 1;
    min-width: 0;
    padding-top: 2px;
}
.profile-hero-name {
    color: white;
    margin: 0 0 8px 0;
    font-size: 24px;
    font-weight: 800;
    line-height: 1.2;
    padding-right: 44px;
}

/* Meta chips (gender / age / country) */
.profile-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 6px;
}
.profile-meta-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    font-size: 13px;
    line-height: 1.4;
}

/* Looking for subtitle */
.profile-hero-lookingfor {
    font-size: 13px;
    margin-bottom: 6px;
    line-height: 1.4;
}

/* Favorite chip (in hero meta row) */
.profile-fav-chip {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    padding: 3px 10px;
    transition: all 0.2s;
    color: rgba(255,255,255,0.6);
}
.profile-fav-chip:hover {
    background: rgba(236,72,153,0.12);
    border-color: rgba(236,72,153,0.25);
}

/* Action buttons bar */
.profile-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    padding: 16px 28px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.profile-action-btn {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.7);
    border-radius: 12px;
    padding: 0 18px;
    height: 40px;
    line-height: 40px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}
.profile-action-btn:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.2);
    color: white;
}

/* Scrollable content area */
.profile-scroll-content {
    padding: 20px 28px 28px 28px;
    max-height: calc(80vh - 220px);
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.profile-scroll-content::-webkit-scrollbar { display: none; }

/* Section structure */
.profile-modal-content .profile-section { margin-bottom: 24px; }
.profile-modal-content .profile-section:last-child { margin-bottom: 0; }
.profile-section-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}
.profile-section-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
}
.profile-section-header > span {
    color: rgba(255,255,255,0.45);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Bio card */
.profile-bio-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px;
    padding: 16px 18px;
}
.profile-bio-card p {
    margin: 0;
    color: rgba(255,255,255,0.7);
    line-height: 1.6;
    font-size: 14px;
}

/* Photo count badge */
.profile-photo-count {
    margin-left: auto;
    font-size: 11px;
    font-weight: 600;
    color: rgba(255,255,255,0.35);
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    padding: 2px 8px;
    line-height: 1.4;
}

/* Photos — horizontal scroll strip */
.profile-photos-wrap {
    position: relative;
}
.profile-photos-wrap::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 4px;
    width: 48px;
    background: linear-gradient(to right, transparent, rgba(20,20,30,0.95));
    pointer-events: none;
    z-index: 2;
    border-radius: 0 14px 14px 0;
    opacity: 1;
    transition: opacity 0.2s;
}
.profile-photos-wrap.scrolled-end::after {
    opacity: 0;
}
.profile-photos-scroll {
    display: flex;
    overflow-x: auto;
    gap: 10px;
    padding-bottom: 4px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    cursor: grab;
}
.profile-photos-scroll::-webkit-scrollbar { display: none; }
.profile-photos-scroll .profile-photo-card {
    min-width: 180px;
    width: 180px;
    aspect-ratio: 4/5;
    border-radius: 14px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    flex-shrink: 0;
    position: relative;
}
.profile-photos-scroll .profile-photo-card:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}
.profile-photos-scroll .profile-photo-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Photo lock overlay */
.photo-lock-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
}
.photo-lock-overlay .lock-price { font-size: 18px; font-weight: 800; color: #F59E0B; }
.photo-lock-overlay .lock-text { font-size: 11px; color: rgba(255,255,255,0.6); margin-top: 4px; }

/* Photo skeleton loading */
.profile-photo-card.photo-skeleton { background: rgba(255,255,255,0.04); cursor: default; }
.profile-photo-card.photo-skeleton:hover { transform: none; box-shadow: none; }
.photo-skeleton-shimmer {
    width: 100%; height: 100%;
    background: linear-gradient(90deg, rgba(255,255,255,0.02) 0%, rgba(255,255,255,0.06) 20%, rgba(255,255,255,0.02) 40%, rgba(255,255,255,0.02) 100%);
    background-size: 200% 100%;
    animation: profileShimmer 1.5s ease-in-out infinite;
}
@keyframes profileShimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Stats — horizontal scroll */
.profile-stats-scroll {
    display: flex;
    overflow-x: auto;
    gap: 10px;
    padding-bottom: 4px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.profile-stats-scroll::-webkit-scrollbar { display: none; }
.profile-stat-card {
    min-width: 120px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px;
    padding: 14px;
    flex-shrink: 0;
    transition: background 0.15s;
}
.profile-stat-card:hover { background: rgba(255,255,255,0.06); }
.stat-emoji { font-size: 18px; margin-bottom: 6px; }
.stat-val { font-size: 17px; font-weight: 800; color: white; margin-bottom: 2px; }
.stat-lbl {
    font-size: 10px;
    color: rgba(255,255,255,0.4);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* Interest tags (dark override) */
.profile-modal-content .profile-interest-tag {
    padding: 6px 14px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    color: rgba(255,255,255,0.7);
    transition: background 0.15s;
}
.profile-modal-content .profile-interest-tag:hover {
    background: rgba(255,255,255,0.1);
    transform: none;
    box-shadow: none;
}

/* Badge (external user) */
.profile-modal-content .profile-badge.external {
    background: rgba(245,158,11,0.12);
    color: #F59E0B;
    border: 1px solid rgba(245,158,11,0.2);
    backdrop-filter: none;
    font-size: 12px;
    padding: 4px 12px;
    border-radius: 16px;
}

/* Profile spinner (dark) */
.profile-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid rgba(255,255,255,0.1);
    border-top-color: rgba(255,255,255,0.5);
    border-radius: 50%;
    animation: profileSpin 0.8s linear infinite;
    margin: 0 auto 12px;
}
@keyframes profileSpin { to { transform: rotate(360deg); } }

/* Mobile fullscreen */
@media (max-width: 900px) {
    #meetgleProfileModal { padding: 0 !important; }
    #meetgleProfileModal > .profile-modal-content {
        width: 100vw !important;
        max-width: 100vw !important;
        height: 100vh !important;
        height: 100svh !important;
        max-height: 100vh !important;
        max-height: 100svh !important;
        border-radius: 0 !important;
    }
    .profile-hero {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .profile-hero-meta { justify-content: center; }
    .profile-hero-lookingfor { text-align: center; }
    .profile-hero-name { padding-right: 0; }
    .profile-actions { justify-content: center; }
    .profile-scroll-content {
        max-height: calc(100svh - 320px) !important;
    }
}

/* ===== SHARED STYLES (sparks / stickers modals) ===== */

/* Hide scrollbars on send sparks/stickers modals */
.send-sparks-modal-content,
.send-stickers-modal-content {
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.send-sparks-modal-content::-webkit-scrollbar,
.send-stickers-modal-content::-webkit-scrollbar {
    display: none;
}

/* Send sparks quick buttons — dark theme */
.spark-amount-btn {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    padding: 12px 8px;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 600;
    font-size: 15px;
    color: rgba(255,255,255,0.7);
}
.spark-amount-btn:hover {
    background: rgba(255,255,255,0.08) !important;
    border-color: rgba(245,158,11,0.4) !important;
    color: white !important;
    transform: scale(1.05);
}
.spark-amount-btn.selected {
    background: #F59E0B !important;
    border-color: #F59E0B !important;
    color: #000 !important;
    box-shadow: 0 2px 12px rgba(245,158,11,0.3);
}

@keyframes pulse-sticker {
    0%, 100% { transform: scale(1); opacity: 0.9; }
    50% { transform: scale(1.08); opacity: 1; }
}

/* Sticker Grid — dark theme */
.sticker-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    max-height: 320px;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 4px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.sticker-grid::-webkit-scrollbar { display: none; }

.sticker-item {
    aspect-ratio: 1;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.04);
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 6px;
    position: relative;
    min-width: 0;
}
.sticker-item:hover {
    border-color: rgba(236,72,153,0.4);
    background: rgba(255,255,255,0.08);
    transform: scale(1.03);
}
.sticker-item.selected {
    border-color: #EC4899;
    background: rgba(236,72,153,0.15);
    box-shadow: 0 0 16px rgba(236,72,153,0.2);
}
.sticker-item img {
    width: 100%;
    height: 60%;
    object-fit: contain;
    flex-shrink: 0;
}
.sticker-item .sticker-name {
    font-size: 9px;
    color: rgba(255,255,255,0.4);
    text-align: center;
    margin-top: 4px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
    line-height: 1.2;
}
