/* RateMyCakes - Premium Dark Mode Styles */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700&family=Outfit:wght@400;600;800&display=swap');

:root {
    --bg-color: #050505;
    --accent-primary: #ff2d55; /* Hot pink/neon */
    --accent-secondary: #5856d6; /* Purple */
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.6);
    --font-main: 'Inter', sans-serif;
    --font-display: 'Outfit', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-primary);
    overflow: hidden; /* Prevent scrolling for the swipe UI */
    height: 100vh;
    width: 100vw;
    display: flex;
    flex-direction: column;
}

/* Background Atmosphere */
.atmosphere {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: 
        radial-gradient(circle at 20% 20%, rgba(255, 45, 85, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 80% 80%, rgba(88, 86, 214, 0.15) 0%, transparent 40%);
    filter: blur(80px);
}

/* Header */
header {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10;
}

.logo {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 24px;
    background: linear-gradient(to right, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.profile-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

/* Card Stack Container */
.swipe-container {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    perspective: 1000px;
}

.card-stack {
    position: relative;
    width: 100%;
    max-width: 400px;
    height: 100%;
    max-height: 600px;
}

/* Individual Card */
.cake-card {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 24px;
    overflow: hidden;
    background: #1a1a1a;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    cursor: grab;
    transition: transform 0.3s ease, opacity 0.3s ease;
    user-select: none;
    touch-action: none;
}

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

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

.card-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 100%);
    color: white;
}

.card-info h2 {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 4px;
}

.card-info p {
    font-size: 16px;
    opacity: 0.8;
}

/* Swipe Indicators */
.swipe-badge {
    position: absolute;
    top: 40px;
    padding: 10px 20px;
    border: 4px solid;
    border-radius: 8px;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 40px;
    text-transform: uppercase;
    opacity: 0;
    transform: rotate(-15deg);
    pointer-events: none;
}

.badge-hot {
    right: 40px;
    color: #4cd964;
    border-color: #4cd964;
    transform: rotate(15deg);
}

.badge-not {
    left: 40px;
    color: var(--accent-primary);
    border-color: var(--accent-primary);
}

/* Controls */
.controls {
    padding: 30px;
    display: flex;
    justify-content: center;
    gap: 20px;
    z-index: 10;
}

.btn-circle {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: none;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.btn-circle:active {
    transform: scale(0.9);
}

.btn-not { color: var(--accent-primary); }
.btn-hot { color: #4cd964; }
.btn-premium { color: #ffcc00; }

/* Auth Modal / Overlay */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(20px);
    z-index: 100;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.overlay.active {
    display: flex;
}

.modal {
    background: #111;
    width: 100%;
    max-width: 400px;
    padding: 40px;
    border-radius: 32px;
    border: 1px solid var(--glass-border);
    text-align: center;
}

.modal h2 {
    font-family: var(--font-display);
    font-size: 32px;
    margin-bottom: 10px;
}

.modal p {
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.auth-btn {
    width: 100%;
    padding: 16px;
    border-radius: 12px;
    border: none;
    margin-bottom: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
}

.btn-google { background: white; color: black; }
.btn-facebook { background: #1877f2; color: white; }
.btn-email { background: var(--glass-bg); color: white; border: 1px solid var(--glass-border); }

/* Premium Checkout */
.premium-card {
    background: linear-gradient(135deg, #1a1a1a 0%, #000 100%);
    padding: 30px;
    border-radius: 24px;
    border: 1px solid #ffcc00;
    margin-top: 20px;
}

.price {
    font-size: 48px;
    font-weight: 800;
    margin: 20px 0;
}

.price span {
    font-size: 18px;
    font-weight: 400;
    opacity: 0.6;
}

/* Ad Slots */
.ad-banner-sticky {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: #000;
    border-top: 1px solid var(--glass-border);
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ad-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(45deg, rgba(255,255,255,0.02) 0%, rgba(255,255,255,0.05) 100%);
    color: var(--text-secondary);
}

.ad-placeholder .small-caps {
    font-size: 10px;
    letter-spacing: 2px;
    margin-bottom: 2px;
}

.ad-card {
    background: #111 !important;
    border: 1px solid var(--glass-border);
}

.ad-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    z-index: 10;
}

/* Responsive */
@media (max-width: 480px) {
    .card-info h2 { font-size: 24px; }
    .btn-circle { width: 56px; height: 56px; }
}
