/**
 * Discover Page Styles - Tinder-style Local Offers
 * Tech Lead - ALIANZAGSM
 */

.discover-container {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 75vh;
    justify-content: flex-start;
    overflow: hidden;
    user-select: none;
}

.discover-header {
    text-align: center;
    margin-bottom: 8px;
    width: 100%;
    max-width: 400px;
}

.discover-title {
    font-size: 1.3rem;
    font-weight: 800;
    color: #1E293B;
    margin-bottom: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.discover-subtitle {
    color: var(--text-muted);
    font-size: 11px;
    margin: 0;
}

.tinder-stack {
    position: relative;
    width: 100%;
    max-width: 330px;
    height: 380px;
    margin-bottom: 12px;
}

.tinder-card {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
    background: #fff;
    flex-direction: column;
    border: 1px solid var(--border);
    transform-origin: center bottom;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.15), opacity 0.4s ease;
    cursor: grab;
}

.stamp-badge {
    position: absolute;
    top: 25px;
    font-size: 24px;
    font-weight: 900;
    padding: 4px 15px;
    border-radius: 10px;
    z-index: 50;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-family: 'Outfit', sans-serif;
    pointer-events: none;
    background: rgba(255,255,255,0.9);
    opacity: 0;
}

.stamp-like {
    left: 25px;
    border: 4px solid #10B981;
    color: #10B981;
    transform: rotate(-15deg);
}

.stamp-nope {
    right: 25px;
    border: 4px solid #EF4444;
    color: #EF4444;
    transform: rotate(15deg);
}

.card-img-wrapper {
    position: relative;
    width: 100%;
    height: 60%;
    background: #F1F5F9;
    overflow: hidden;
}

.card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
    user-select: none;
}

.badge-location {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(15,23,42,0.7);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 20px;
    backdrop-filter: blur(4px);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.badge-category {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--primary);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 20px;
    backdrop-filter: blur(4px);
}

.badge-coupon {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: #FFFBEB;
    border: 1px dashed #F59E0B;
    color: #78350F;
    font-size: 10px;
    font-weight: 800;
    padding: 5px 12px;
    border-radius: 20px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.15);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    z-index: 5;
}

.badge-price {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: linear-gradient(135deg, #FF3E6C 0%, #F51E5C 100%);
    color: #fff;
    font-size: 16px;
    font-weight: 900;
    padding: 6px 14px;
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(245,30,92,0.3);
}

.card-details {
    padding: 12px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: space-between;
    text-align: left;
    pointer-events: none;
}

.card-title {
    font-size: 14px;
    font-weight: 800;
    color: #1E293B;
    margin: 0 0 4px 0;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

.card-description {
    font-size: 11px;
    color: var(--text-muted);
    line-height: 1.3;
    margin: 0;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.card-seller-info {
    font-size: 10px;
    font-weight: 700;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 6px;
    border-top: 1px solid var(--border);
    padding-top: 6px;
    margin-top: 4px;
}

.seller-avatar {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary-light);
    color: var(--primary);
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    text-transform: uppercase;
}

.tinder-empty-state {
    width: 100%;
    height: 100%;
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 30px;
    background: #fff;
    border: 1px solid var(--border);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.tinder-empty-emoji {
    font-size: 64px;
    margin-bottom: 15px;
}

.tinder-empty-title {
    font-size: 18px;
    font-weight: 800;
    color: #1E293B;
    margin-bottom: 8px;
}

.tinder-empty-text {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 20px;
}

.tinder-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-bottom: 30px;
    width: 100%;
    max-width: 360px;
}

.btn-tinder-dislike {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: none;
    background: #FFF;
    box-shadow: 0 4px 15px rgba(239,68,68,0.2);
    cursor: pointer;
    font-size: 20px;
    color: #EF4444;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
    outline: none;
}

.btn-tinder-detail {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #EFF6FF;
    border: 1px solid rgba(59,130,246,0.15);
    box-shadow: 0 4px 12px rgba(59,130,246,0.1);
    cursor: pointer;
    font-size: 16px;
    color: #3B82F6;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform 0.2s;
    outline: none;
}

.btn-tinder-whatsapp {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #E8F8F0;
    border: 1px solid rgba(37,211,102,0.15);
    box-shadow: 0 4px 12px rgba(37,211,102,0.1);
    cursor: pointer;
    font-size: 20px;
    color: #25D366;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform 0.2s;
    outline: none;
}

.btn-tinder-like {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: none;
    background: #FFF;
    box-shadow: 0 4px 15px rgba(236,72,153,0.25);
    cursor: pointer;
    font-size: 22px;
    color: #EC4899;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
    outline: none;
}

.btn-tinder-dislike:hover,
.btn-tinder-detail:hover,
.btn-tinder-whatsapp:hover,
.btn-tinder-like:hover {
    transform: scale(1.1);
}

@keyframes scaleIn {
    from {
        transform: scale(0.95);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}
