/* =============================================
   MATCHA - Premium Dating UI (April 2026)
   Modern, skalbar och produktionsklar CSS
   ============================================= */

:root {
    --bg-dark: #0a0c12;
    --bg-card: #1a1d24;
    --primary: #fd267a;
    --primary-gradient: linear-gradient(135deg, #fd267a 0%, #ff6036 100%);
    --primary-hover: linear-gradient(135deg, #e01e68 0%, #e6522c 100%);
    
    --like: #4ade80;
    --nope: #f87171;
    --super: #60a5fa;
    --gold: #ffd700;
    
    --text-primary: #ffffff;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    
    --glass-bg: rgba(26, 29, 36, 0.95);
    --glass-border: rgba(255, 255, 255, 0.08);
    
    --shadow-sm: 0 8px 25px rgba(0, 0, 0, 0.35);
    --shadow-md: 0 15px 40px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 25px 60px rgba(0, 0, 0, 0.65);
    
    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 28px;
    --radius-xl: 40px;
}

/* ====================== GLOBAL RESET ====================== */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    -webkit-tap-highlight-color: transparent;
    overflow-x: hidden;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    letter-spacing: -0.7px;
    margin: 0;
}

/* ====================== GLASSMORPHISM ====================== */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-sm);
}

/* ====================== BOTTOM NAVIGATION ====================== */
.bottom-nav-container {
    position: fixed;
    bottom: max(20px, env(safe-area-inset-bottom));
    left: 50%;
    transform: translateX(-50%);
    width: 92%;
    max-width: 420px;
    z-index: 2000;
}

.bottom-nav {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 14px 20px;
    border-radius: var(--radius-xl);
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-md);
}

.bottom-nav .nav-link {
    color: var(--text-muted);
    text-align: center;
    position: relative;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 8px 12px;
    border-radius: 50%;
}

.bottom-nav .nav-link:hover {
    color: var(--text-secondary);
}

.bottom-nav .nav-link.active {
    color: var(--primary);
    transform: translateY(-3px);
}

.bottom-nav .nav-link i {
    font-size: 1.75rem;
    transition: transform 0.3s ease;
}

.bottom-nav .nav-link.active i {
    transform: scale(1.15);
    filter: drop-shadow(0 4px 12px rgba(253, 38, 122, 0.5));
}

.nav-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    background: var(--primary-gradient);
    color: white;
    font-size: 0.68rem;
    font-weight: 700;
    height: 19px;
    min-width: 19px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2.5px solid var(--glass-bg);
    box-shadow: 0 2px 8px rgba(253, 38, 122, 0.4);
}

/* ====================== SWIPE PAGE ====================== */
.swipe-page {
    min-height: 100vh;
    background: var(--bg-dark);
    padding-bottom: 100px;
    overflow: hidden;
}

.card-stack {
    position: relative;
    height: calc(100vh - 180px);
    max-width: 420px;
    margin: 0 auto;
    padding: 20px 15px;
}

.tinder-card {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    will-change: transform;
    cursor: grab;
    user-select: none;
    touch-action: none;
}

.tinder-card:active {
    cursor: grabbing;
}

.card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.card-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px 25px 25px;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 30%, rgba(0,0,0,0.3) 70%, transparent);
    color: white;
    z-index: 3;
}

.card-info h2 {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 6px 0;
    text-shadow: 0 2px 8px rgba(0,0,0,0.6);
}

.location {
    font-size: 15.5px;
    margin: 0 0 12px 0;
    opacity: 0.95;
    font-weight: 500;
}

.bio {
    font-size: 14.5px;
    line-height: 1.45;
    opacity: 0.88;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Stamps */
.stamp {
    position: absolute;
    top: 80px;
    padding: 12px 40px;
    border: 7px solid;
    border-radius: 12px;
    font-size: 3.2rem;
    font-weight: 900;
    text-transform: uppercase;
    z-index: 10;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    text-shadow: 0 8px 20px rgba(0,0,0,0.6);
}

.stamp.like  { right: 40px; color: var(--like);  border-color: var(--like);  transform: rotate(-25deg); }
.stamp.nope  { left: 40px;  color: var(--nope);  border-color: var(--nope);  transform: rotate(25deg); }
.stamp.super { left: 50%; top: 180px; transform: translateX(-50%) rotate(-12deg); color: var(--super); border-color: var(--super); font-size: 2.6rem; }

/* Action Buttons */
.swipe-actions {
    position: fixed;
    bottom: max(90px, env(safe-area-inset-bottom) + 20px);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: space-evenly;
    width: 100%;
    max-width: 380px;
    z-index: 100;
    padding: 0 20px;
}

.btn-circle {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: white;
    border: none;
    box-shadow: var(--shadow-md);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 28px;
    color: #333;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-circle:hover {
    transform: scale(1.12);
}

.btn-circle.nope  { color: var(--nope); }
.btn-circle.super { width: 58px; height: 58px; font-size: 24px; color: var(--super); }
.btn-circle.like  { color: var(--like); width: 78px; height: 78px; font-size: 32px; }

/* Match Overlay */
.match-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    color: white;
    text-align: center;
    backdrop-filter: blur(8px);
}

.match-content {
    text-align: center;
    padding: 0 20px;
}

.match-overlay h1 {
    font-size: 3.8rem;
    font-weight: 800;
    margin-bottom: 8px;
    letter-spacing: -2px;
    background: linear-gradient(90deg, #fff, #ffd700);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    font-size: 1.25rem;
    color: #ddd;
    margin-bottom: 40px;
}

.match-images {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    margin-bottom: 35px;
}

.match-avatar {
    width: 125px;
    height: 125px;
    border-radius: 50%;
    border: 5px solid white;
    object-fit: cover;
    box-shadow: 0 10px 30px rgba(0,0,0,0.6);
}

.heart {
    font-size: 3rem;
    animation: pulse 1.2s infinite alternate;
}

@keyframes pulse {
    from { transform: scale(0.95); }
    to   { transform: scale(1.15); }
}

.compatibility-text {
    font-size: 1.4rem;
    font-weight: 700;
    color: #4ade80;
    margin-bottom: 30px;
}

.match-buttons .btn {
    border-radius: 9999px;
    padding: 16px 40px;
    font-weight: 700;
    font-size: 1.1rem;
}

/* Limit Banner */
.limit-banner {
    position: fixed;
    top: 12px;
    left: 12px;
    right: 12px;
    z-index: 3000;
    border-radius: 14px;
    text-align: center;
    font-weight: 500;
}

/* No Profiles */
.no-profiles {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--text-muted);
}
