/*
 * GushOfLove — Shared Components
 *
 * Components used across multiple pages/contexts.
 * Loaded on every page via eros_style('shared').
 *
 * Contains:
 *   - Location autocomplete widget
 *   - GPS location button
 *   - CTA section (homepage + pricing)
 *   - Match card (homepage + matches)
 */

.eros-location-wrap {
    position: relative;
}

.eros-location-input-row {
    display: flex;
    gap: 8px;
    align-items: stretch;
}

.eros-location-search {
    flex: 1;
    height: 48px;
    padding: 0 14px;
    font-size: .875rem;
    font-family: inherit;
    color: #1a1a2e;
    background: #fff;
    border: 1.5px solid #e8eaf0;
    border-radius: 12px;
    outline: none;
    transition: border-color .18s,box-shadow .18s;
    box-sizing: border-box;
}

.eros-location-search:focus {
    border-color: #e8175d;
    box-shadow: 0 0 0 3px rgba(232,23,93,.12);
}

.eros-location-search.eros-location-confirmed {
    border-color: #16a34a;
    box-shadow: 0 0 0 3px rgba(22,163,74,.1);
}

.eros-gps-btn {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(232,23,93,.07);
    color: #e8175d;
    border: 1.5px solid rgba(232,23,93,.2);
    border-radius: 12px;
    cursor: pointer;
    transition: background .15s,border-color .15s,color .15s,transform .12s;
}

.eros-gps-btn:hover {
    background: #e8175d;
    border-color: #e8175d;
    color: #fff;
    transform: scale(1.04);
}

.eros-gps-btn:focus-visible {
    outline: 3px solid rgba(232,23,93,.35);
    outline-offset: 2px;
}

.eros-location-dropdown {
    position: absolute;
    top: calc(100%+4px);
    left: 0;
    right: 0;
    background: #fff;
    border: 1.5px solid #e8175d;
    border-radius: 14px;
    box-shadow: 0 10px 40px rgba(0,0,0,.13);
    z-index: 600;
    overflow: hidden;
    max-height: 240px;
    overflow-y: auto;
}

.eros-location-item {
    padding: 11px 14px;
    cursor: pointer;
    font-size: .85rem;
    color: #1a1a2e;
    border-bottom: 1px solid #f8f8fa;
    transition: background .1s;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.eros-location-item:hover,
.eros-location-item:focus {
    background: rgba(232,23,93,.06);
    outline: none;
}

.eros-location-item:last-child {
    border-bottom: none;
}

.eros-location-item-name {
    font-weight: 600;
}

.eros-location-item-detail {
    font-size: .74rem;
    color: #9ca3af;
    margin-top: 2px;
}

.eros-location-selected {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-top: 8px;
    padding: 9px 14px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 10px;
    font-size: .82rem;
    font-weight: 600;
    color: #15803d;
}

.eros-loc-badge-text {
    flex: 1;
}

.eros-loc-clear {
    background: none;
    border: none;
    cursor: pointer;
    color: #9ca3af;
    padding: 2px 4px;
    font-size: .85rem;
    line-height: 1;
    border-radius: 4px;
    transition: color .15s,background .15s;
}

.eros-loc-clear:hover {
    color: #ef4444;
    background: rgba(239,68,68,.08);
}

.eros-loc-clear:focus-visible {
    outline: 2px solid #ef4444;
}

.eros-loc-item {
    padding: 11px 14px;
    cursor: pointer;
    font-size: .85rem;
    color: #1a1a2e;
    border-bottom: 1px solid #f8f8fa;
    transition: background .1s;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.eros-loc-item:hover,
.eros-loc-item:focus,
.eros-loc-item.eros-loc-active {
    background: rgba(232,23,93,.06);
    outline: none;
}

.eros-loc-item:last-child {
    border-bottom: none;
}

.eros-loc-icon {
    flex-shrink: 0;
    font-size: .9rem;
    line-height: 1.6;
}

.eros-loc-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.eros-loc-main {
    font-weight: 600;
    color: #1a1a2e;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.eros-loc-sub {
    font-size: .74rem;
    color: #9ca3af;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.eros-loc-mark {
    background: rgba(232,23,93,.15);
    color: #c01047;
    border-radius: 2px;
    padding: 0 1px;
    font-style: normal;
}

.eros-loc-loading {
    padding: 14px 16px;
    font-size: .84rem;
    color: #9ca3af;
    display: flex;
    align-items: center;
    gap: 8px;
}

.eros-loc-spinner {
    width: 14px;
    height: 14px;
    border: 2px solid #f0f0f8;
    border-top-color: #e8175d;
    border-radius: 50%;
    animation: eros-spin .7s linear infinite;
    flex-shrink: 0;
}

.eros-loc-no-results,
.eros-loc-error {
    padding: 12px 16px;
    font-size: .83rem;
    color: #9ca3af;
    text-align: center;
}

.eros-loc-error {
    color: #dc2626;
}

.eros-match-badge-float {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg,var(--clr-primary),var(--clr-primary-dk));
    color: #fff;
    font-size: .85rem;
    font-weight: 700;
    padding: 10px 20px;
    border-radius: 999px;
    white-space: nowrap;
    box-shadow: 0 8px 28px rgba(var(--clr-primary-rgb),.5);
    z-index: 3;
    animation: matchPop 3s ease-in-out infinite;
}

.eros-cta-section {
    background: linear-gradient(135deg,#1C0606 0%,#4A0E0E 55%,#7F1D1D 100%);
    padding: 100px 0;
    text-align: center;
}

.eros-cta-inner {
    max-width: 640px;
    margin-inline: auto;
}

.eros-cta-headline {
    font-size: clamp(1.8rem,4vw,2.8rem);
    font-weight: 900;
    color: #fff;
    margin: 0 0 16px;
    letter-spacing: -.03em;
}

.eros-cta-sub {
    font-size: 1.05rem;
    color: rgba(255,255,255,.75);
    margin: 0 0 36px;
    line-height: 1.65;
}

.eros-cta-note {
    font-size: .8rem;
    color: rgba(255,255,255,.55);
    margin: 16px 0 0;
}

.eros-match-card {
    background: #fff;
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform .2s,box-shadow .2s;
    text-align: center;
}

.eros-match-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.eros-match-photo {
    aspect-ratio: 1;
    overflow: hidden;
}

.eros-match-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .3s;
}

.eros-match-card:hover .eros-match-photo img {
    transform: scale(1.04);
}

.eros-match-body {
    padding: 14px 12px;
}

.eros-match-name {
    font-size: .95rem;
    font-weight: 700;
    color: var(--clr-text);
    margin: 0 0 4px;
}

.eros-match-meta {
    font-size: .78rem;
    color: var(--clr-text-muted);
    margin: 0 0 12px;
}

.eros-match-actions {
    display: flex;
    gap: 6px;
    justify-content: center;
}

@media (max-width:768px) {
    .eros-cta-section {
        padding: 64px 0;
    }

    .eros-cta-inner {
        padding: 0 20px;
    }
}

@media (max-width:540px) {
    .eros-cta-section {
        padding: 48px 0;
    }
}

.eros-stats-section,
.eros-features-section,
.eros-hiw-section,
.eros-testimonials-section,
.eros-cta-section {
    margin-top: 0;
    margin-bottom: 0;
}

.eros-matches-wrap {
    max-width: var(--container-max);
    margin-inline: auto;
    padding: calc(var(--header-h)+32px) 24px 60px;
}

.eros-matches-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
    flex-wrap: wrap;
    gap: 12px;
}

.eros-matches-header h1 {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--clr-text);
    margin: 0;
}

.eros-matches-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill,minmax(200px,1fr));
    gap: 20px;
}
