/* smartmiddag.se - Premium UX Stylesheet */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;800&family=Playfair+Display:wght@700&display=swap');

:root {
    --primary: #1a1a2e;
    --accent: #ff6b6b;
    --success: #4ecdc4;
    --glass: rgba(255, 255, 255, 0.85);
    --glass-dark: rgba(26, 26, 46, 0.9);
    --shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
}

/* Full-page immersive background */
#bg-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background-color: black;
}

.bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 2s ease-in-out;
}

.bg-image.active {
    opacity: 0.6; /* Adjust for readability */
}

/* Glassmorphism for all main content containers */
main[role="main"] {
    position: relative;
    z-index: 1;
    min-height: 80vh;
}

.container {
    background: rgba(255, 255, 255, 0.85); /* Increased opacity for readability */
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 30px;
    padding: 2.5rem;
    margin-top: 2rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.4);
}

h1, h2, h3, h4, h5, p, label, li {
    color: #0d1117; /* Darker, high-contrast text */
    font-weight: 500;
}

.navbar {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
}

h1, h2, h3, .navbar-brand {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
}

/* Glassmorphism Header */
.navbar {
    background: var(--glass) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: var(--shadow);
    padding: 1rem 0;
}

.navbar-brand img {
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

/* Premium Cards */
.card {
    background: var(--glass);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 20px;
    box-shadow: var(--shadow);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
}

.card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 45px rgba(0,0,0,0.1);
}

/* Recipe Hero */
.recipe-hero {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 20px;
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
}

/* Media Grid 3x3 */
.media-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-top: 2rem;
}

.media-item {
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 15px;
    cursor: pointer;
    border: 3px solid white;
    box-shadow: var(--shadow);
}

.media-item img, .media-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.media-item:hover img {
    transform: scale(1.1);
}

/* Auth Pages - High Tech Food Aesthetic */
.auth-bg {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('https://images.unsplash.com/photo-1504674900247-0877df9cc836?auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
}

.auth-card {
    background: var(--glass-dark);
    color: white;
    padding: 3rem;
    width: 100%;
    max-width: 450px;
    border-radius: 30px;
    border: 1px solid rgba(255,255,255,0.1);
}

.auth-card .form-control {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.2);
    color: white;
    border-radius: 12px;
    padding: 0.8rem;
}

.auth-card .form-control:focus {
    background: rgba(255,255,255,0.1);
    box-shadow: 0 0 15px var(--accent);
    border-color: var(--accent);
}

.btn-premium {
    background: linear-gradient(45deg, var(--accent), #ff8e8e);
    border: none;
    color: white;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 1rem;
    border-radius: 12px;
    transition: all 0.3s;
}

.btn-premium:hover {
    box-shadow: 0 0 20px var(--accent);
    transform: scale(1.02);
}

/* Floating Animation */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

.floating {
    animation: float 6s ease-in-out infinite;
}
