/* style.css */
@import url('https://rsms.me/inter/inter.css');

body {
    font-family: 'Inter', sans-serif;
    background: radial-gradient(circle at top, #fff1f7 0%, #f9f0f7 45%, #f8f7ff 100%);
    color: #1f2937;
}

/* Top banner */
.top-banner {
    background: linear-gradient(90deg, rgba(255, 245, 237, 0.9), rgba(240, 248, 255, 0.9));
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.banner-left {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.banner-badge {
    background: #0f766e;
    color: white;
    font-weight: 700;
    font-size: 0.7rem;
    letter-spacing: 0.5px;
    padding: 0.2rem 0.5rem;
    border-radius: 9999px;
}

.banner-text {
    font-size: 0.8rem;
    color: #475569;
    font-weight: 600;
}

.banner-right {
    display: inline-flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.banner-chip {
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    color: #334155;
    font-size: 0.75rem;
    padding: 0.2rem 0.6rem;
    border-radius: 9999px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
}

:root {
    /* Romantic theme variables: soft blush / rose / plum with warm accents */
    --primary-pink: #e8799b;
    --primary-pink-dark: #b8326a;
    --primary-blue: #fff5f8;
    --primary-blue-dark: #6b4a5a;
    --accent-gradient: linear-gradient(90deg, rgba(232, 121, 155, 1), rgba(255, 214, 230, 1));
    --badge-gradient: linear-gradient(90deg, rgba(255, 240, 246, 0.98), rgba(255, 224, 236, 0.98));
}

.main-header {
    background: white;
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.brand-title {
    display: flex;
    flex-direction: column;
    gap: 2px;
    line-height: 1.1;
}

.brand-main {
    font-weight: 800;
    color: #7a1f3d;
    font-size: clamp(1rem, 1.2vw + 0.7rem, 1.45rem);
    letter-spacing: -0.3px;
}

.brand-sub {
    font-weight: 700;
    color: #b8326a;
    font-size: clamp(0.95rem, 1.05vw + 0.6rem, 1.35rem);
    letter-spacing: 0.2px;
}

.brand-tag {
    font-size: 0.8rem;
    font-weight: 700;
    color: #0f766e;
    background: #ecfeff;
    border: 1px solid rgba(6, 182, 212, 0.2);
    padding: 0.15rem 0.45rem;
    border-radius: 9999px;
    white-space: nowrap;
}

@media (min-width: 640px) {
    .brand-main {
        font-size: clamp(1.05rem, 1.1vw + 0.7rem, 1.55rem);
    }

    .brand-sub {
        font-size: clamp(1rem, 1vw + 0.6rem, 1.45rem);
    }
}

@media (min-width: 1024px) {
    .brand-main {
        font-size: clamp(1.2rem, 0.9vw + 0.9rem, 1.7rem);
    }

    .brand-sub {
        font-size: clamp(1.1rem, 0.8vw + 0.8rem, 1.6rem);
    }
}

/* Hero redesign */
.hero-section {
    background: linear-gradient(160deg, rgba(255, 220, 233, 0.75), rgba(244, 232, 255, 0.7));
    padding: 1rem;
    border-radius: 22px;
    border: 1px solid rgba(15, 23, 42, 0.06);
}

.hero-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.hero-copy h2 {
    color: var(--primary-pink-dark);
    font-family: 'Playfair Display', serif;
    letter-spacing: -0.5px;
}

.hero-copy p {
    color: var(--primary-blue-dark);
    font-family: 'Inter', sans-serif;
}

.hero-feature {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Keep featured compact on desktop: align to the right and cap width */
.hero-feature {
    align-items: flex-start;
}

.hero-feature .featured-premium {
    max-width: 420px;
    width: 100%;
    flex: 0 0 auto;
    margin-left: auto;
}

/* Cards grid improvements */
#profiles-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 640px) {
    #profiles-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }
}

@media (min-width: 768px) {
    #profiles-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (min-width: 1024px) {
    #profiles-container {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }
}

.profile-card {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    background-color: white;
    border: 1px solid rgba(232, 121, 155, 0.2);
    box-shadow: 0 12px 32px rgba(232, 121, 155, 0.18);
    transition: all 0.3s ease;
}

.profile-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 44px rgba(232, 121, 155, 0.28);
    cursor: pointer;
}

.profile-card img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.profile-card:hover img {
    transform: scale(1.05);
}

@media (max-width: 640px) {
    .profile-card img {
        height: 340px;
    }
}

/* Profile Detail Modal */
.profile-detail-modal-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    overflow-y: auto;
}

.profile-detail-modal-backdrop.show {
    display: flex;
}

.profile-detail-modal {
    position: relative;
    background: #ffffff;
    border-radius: 20px;
    max-width: 1200px;
    width: 100%;
    max-height: calc(100vh - 2rem);
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(15, 23, 42, 0.25);
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.profile-detail-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    font-size: 28px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.profile-detail-close:hover {
    background: rgba(0, 0, 0, 0.7);
}

.profile-detail-card {
    display: flex;
    flex-direction: column;
    background: #ffffff;
}

.profile-detail-image {
    width: 100%;
    height: 340px;
    overflow: hidden;
    border-radius: 20px 20px 0 0;
    position: relative;
    background: #0f172a;
}

.profile-detail-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
}

.profile-detail-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #0f172a;
}

.profile-detail-info {
    padding: 2rem 2.25rem;
    background: #ffffff;
    color: #1f2937;
}

.profile-detail-info h2 {
    font-size: 2.1rem;
    font-weight: 800;
    background: linear-gradient(135deg, #1f2937 0%, #4b5563 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0 0 1.25rem 0;
    font-family: 'Playfair Display', serif;
    letter-spacing: -0.5px;
}

.profile-detail-rating {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.profile-detail-rating .rating {
    font-size: 1.1rem;
}

.profile-detail-area {
    color: #b8326a;
    font-size: 1rem;
    font-weight: 700;
    background: #fff1f7;
    padding: 6px 16px;
    border-radius: 24px;
    border: 1px solid rgba(232, 121, 155, 0.35);
}

.profile-detail-description {
    color: #374151;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-size: 1.02rem;
    background: #fff5f8;
    padding: 1rem 1.25rem;
    border-radius: 14px;
    border: 1px solid rgba(232, 121, 155, 0.18);
}

.profile-detail-actions {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.whatsapp-buttons-group {
    display: flex;
    gap: 0.75rem;
}

.profile-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 0.85rem 1.25rem;
    border-radius: 12px;
    font-weight: 700;
    transition: all 0.3s ease;
    text-decoration: none;
    border: none;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
    position: relative;
    overflow: hidden;
}

.profile-action-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.profile-action-btn:hover::before {
    opacity: 1;
}

.profile-action-btn svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.btn-text-inline {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.btn-number {
    font-size: 0.9rem;
    font-weight: 600;
    opacity: 0.95;
    margin-top: 4px;
    letter-spacing: 0.5px;
}

.whatsapp-icon-only {
    padding: 0;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    min-width: auto;
}

.btn-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex: 1;
}

.btn-label {
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.btn-sublabel {
    font-size: 0.95rem;
    font-weight: 500;
    opacity: 0.95;
    margin-top: 4px;
    letter-spacing: 0.5px;
}

.call-btn {
    background: transparent;
    color: #0f766e;
    border: 2px solid rgba(16, 185, 129, 0.5);
}

.call-btn:hover {
    background: rgba(16, 185, 129, 0.08);
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(16, 185, 129, 0.25);
}

.call-btn svg {
    color: #10b981;
    filter: none;
}

.whatsapp-detail-btn {
    background: #25d366;
    color: white;
    border: 1px solid rgba(37, 211, 102, 0.35);
}

.whatsapp-detail-btn:hover {
    background: #128c7e;
    transform: translateY(-3px);
    box-shadow: 0 10px 22px rgba(37, 211, 102, 0.45);
}

.whatsapp-detail-btn svg {
    color: white;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

@media (max-width: 640px) {
    .profile-detail-image {
        height: 240px;
    }

    .profile-detail-info {
        padding: 1.25rem 1.25rem;
    }

    .profile-detail-info h2 {
        font-size: 1.75rem;
    }

    .profile-detail-description {
        font-size: 0.95rem;
        line-height: 1.6;
        margin-bottom: 1rem;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .profile-action-btn {
        padding: 0.85rem 1rem;
    }

    .profile-action-btn svg {
        width: 18px;
        height: 18px;
    }

    .btn-label {
        font-size: 1rem;
    }

    .btn-sublabel {
        font-size: 0.875rem;
    }

    .profile-detail-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }

    .whatsapp-buttons-group {
        justify-content: space-between;
        width: 100%;
        gap: 0.75rem;
    }

    .whatsapp-icon-only {
        width: 100%;
        height: 46px;
        border-radius: 12px;
    }

    .profile-action-btn.call-btn {
        padding: 0.9rem 1rem;
        border-radius: 12px;
        gap: 0.6rem;
    }

    .profile-action-btn.call-btn .btn-label {
        font-size: 0.95rem;
    }

    .profile-action-btn.call-btn .btn-number {
        font-size: 0.9rem;
    }
}

@media (min-width: 900px) {
    .profile-detail-modal {
        max-width: 96vw;
    }

    .profile-detail-card {
        flex-direction: row;
        min-height: 420px;
    }

    .profile-detail-image {
        width: 45%;
        height: auto;
        border-radius: 20px 0 0 20px;
    }

    .profile-detail-image::after {
        height: 80px;
    }

    .profile-detail-info {
        width: 55%;
        padding: 2rem;
        display: flex;
        flex-direction: column;
    }

    .profile-detail-actions {
        margin-top: 1.25rem;
        justify-content: flex-start;
    }
}

@media (min-width: 768px) {
    .profile-card img {
        height: 360px;
    }
}

/* Featured premium styles */
.featured-premium {
    border: 1px solid rgba(139, 107, 74, 0.06);
    background: linear-gradient(180deg, #fffdf9, #fbf8f4);
    box-shadow: 0 4px 12px rgba(107, 94, 74, 0.06);
    display: flex;
    flex-direction: column;
    border-radius: 10px;
}

@media (min-width: 640px) {
    .featured-premium {
        flex-direction: row;
    }
}

.featured-media {
    width: 100%;
    min-height: 160px;
    background-size: cover;
    background-position: center;
    border-radius: 8px;
}

@media (min-width: 640px) {
    .featured-media {
        width: 150px;
        min-height: 180px;
        flex-shrink: 0;
    }
}

@media (min-width: 1024px) {
    .featured-media {
        width: 160px;
        min-height: 200px;
    }
}

.featured-body {
    padding: 1rem;
}

@media (min-width: 640px) {
    .featured-body {
        padding: 1.25rem;
    }
}

.featured-premium .feature-wa {
    background: linear-gradient(90deg, rgba(139, 107, 74, 0.06), rgba(212, 180, 131, 0.12));
    color: var(--primary-pink-dark);
    border: 1px solid rgba(139, 107, 74, 0.08);
}

.featured-premium .feature-wa svg {
    width: 18px;
    height: 18px;
    color: #25d366;
}

@media (min-width: 640px) {
    .featured-media {
        width: 180px;
        min-height: 220px;
        flex-shrink: 0;
        border-radius: 10px;
    }

    .featured-premium {
        max-width: 380px;
    }
}

@media (min-width: 1024px) {
    .featured-premium {
        max-width: 520px;
    }
}

.card-body {
    padding: 1.25rem 1.25rem 1.5rem;
}

.card-body h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    color: #1f2937;
}

.card-body p {
    font-size: 0.92rem;
    color: #6b7280;
    line-height: 1.5;
}

.card-body p[itemprop="description"] {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.img-badges {
    position: absolute;
    right: 10px;
    bottom: 10px;
    display: flex;
    gap: 8px;
}

.wa-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.wa-icon svg {
    width: 16px;
    height: 16px;
    color: #25d366;
}

.whatsapp-btn {
    background: rgba(255, 255, 255, 0.98);
    border-radius: 10px;
    padding: 8px 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid rgba(37, 211, 102, 0.3);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.2s;
    backdrop-filter: blur(10px);
}

.whatsapp-btn:hover {
    background: rgba(37, 211, 102, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.whatsapp-btn .wa-label {
    display: none;
}

@media (max-width: 640px) {
    .whatsapp-btn .wa-label {
        display: inline;
        font-weight: 700;
        font-size: 0.85rem;
        color: #1f2937;
    }
}

/* Call button for mobile only */
.call-btn-mobile {
    display: none;
}

@media (max-width: 640px) {
    .call-btn-mobile {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        background: linear-gradient(135deg, #10b981 0%, #059669 100%);
        border-radius: 10px;
        padding: 8px 12px;
        border: 1px solid rgba(16, 185, 129, 0.3);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
        transition: all 0.2s;
        backdrop-filter: blur(10px);
    }

    .call-btn-mobile:hover {
        background: linear-gradient(135deg, #059669 0%, #047857 100%);
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    }

    .call-btn-mobile svg {
        width: 16px;
        height: 16px;
        color: white;
    }
}

.rating {
    display: inline-flex;
    align-items: center;
    gap: 2px;
}

.rating .star-icon {
    width: 16px;
    height: 16px;
    color: var(--primary-pink-dark);
    display: inline-block;
}

.rating .star-icon.empty {
    color: rgba(107, 94, 74, 0.14);
}

.post-ad-btn {
    background: var(--primary-pink);
    color: white;
}

.post-ad-muted {
    opacity: 0.7;
    filter: saturate(0.85);
    box-shadow: none;
}

.post-ad-muted:hover {
    opacity: 0.9;
}

/* Utility for buttons using bg-primary class */
.bg-primary {
    background: var(--primary-pink);
}

.bg-primary:hover {
    background: var(--primary-pink-dark);
}

/* Footer */
.footer-note {
    font-size: 0.85rem;
    color: rgba(107, 94, 74, 0.7);
}

/* Modals */
.disclaimer-modal-backdrop,
.post-ad-modal-backdrop,
#age-gate-modal {
    display: none;
    position: fixed;
    inset: 0;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(2px);
    z-index: 9998;
}

.disclaimer-modal-backdrop.show,
.post-ad-modal-backdrop.show,
#age-gate-modal[style*="display: flex"] {
    display: flex !important;
}

.disclaimer-modal,
.post-ad-modal {
    position: relative;
    background: white;
    padding: 1.5rem 1.5rem 1.25rem;
    border-radius: 14px;
    max-width: 640px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(15, 23, 42, 0.2);
}

.disclaimer-modal .disclaimer-close,
.post-ad-modal .post-ad-close {
    position: absolute;
    right: 12px;
    top: 12px;
    background: transparent;
    border: none;
    font-size: 1.25rem;
    width: 36px;
    height: 36px;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #111827;
    transition: background 0.2s ease;
}

.disclaimer-modal .disclaimer-close:hover,
.post-ad-modal .post-ad-close:hover {
    background: rgba(17, 24, 39, 0.08);
}

.disclaimer-actions,
.post-ad-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.post-ad-modal .form-row {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin-bottom: 0.75rem;
}

.post-ad-modal input {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 0.6rem 0.75rem;
    outline: none;
}

.post-ad-modal input:focus {
    border-color: rgba(212, 180, 131, 0.6);
    box-shadow: 0 0 0 3px rgba(212, 180, 131, 0.2);
}

/* Floating WhatsApp */
.floating-whatsapp {
    position: fixed;
    right: 14px;
    bottom: 14px;
    background: #25d366;
    color: white;
    width: 56px;
    height: 56px;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.35);
    transition: all 0.3s ease;
}

.floating-whatsapp:hover {
    background: #128c7e;
    transform: scale(1.1);
    box-shadow: 0 12px 32px rgba(37, 211, 102, 0.5);
}

/* Tweak sizes for smaller phones */
@media (max-width: 420px) {
    .hero-copy h2 {
        font-size: 1.25rem;
    }

    .profile-card img {
        height: 300px;
    }

    .post-ad-btn {
        padding: 0.5rem 0.75rem;
    }
}

/* Mobile-first responsiveness tweaks */
@media (max-width: 768px) {
    .main-header .container {
        gap: 0.75rem;
    }

    .brand-title {
        gap: 0;
    }

    .hero-section {
        padding: 0.85rem;
    }

    .hero-copy {
        padding: 0.75rem !important;
    }

    .hero-copy h2 {
        font-size: 1.5rem;
    }

    .hero-feature {
        padding: 0.5rem !important;
    }

    .featured-premium {
        max-width: 100%;
    }

    .featured-body {
        padding: 0.75rem;
    }

    .featured-body h4 {
        font-size: 1.25rem;
    }

    .card-body {
        padding: 1rem 1rem 1.25rem;
    }

    .card-body h3 {
        font-size: 1rem;
    }

    .card-body p {
        font-size: 0.9rem;
    }
}

@media (max-width: 640px) {
    .profile-detail-modal {
        border-radius: 16px;
        max-height: calc(100vh - 1rem);
    }

    .profile-detail-card {
        border-radius: 16px;
    }

    .profile-detail-image {
        border-radius: 16px 16px 0 0;
    }

    .profile-detail-info h2 {
        font-size: 1.5rem;
        margin-bottom: 0.75rem;
    }

    .profile-detail-rating {
        margin-bottom: 1rem;
        padding-bottom: 1rem;
    }

    .profile-detail-actions {
        gap: 0.6rem;
    }

    .profile-action-btn {
        width: 100%;
        justify-content: center;
    }

    .whatsapp-buttons-group {
        justify-content: center;
        width: 100%;
    }
}

/* Accessibility helpers */
.sr-only {
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
    white-space: nowrap;
}

/* Additional small layout helpers */
.container {
    max-width: 1200px;
}