/* --------------------------------------------------------
   IMPORT AF FONTE
--------------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&family=Barrio&display=swap');

/* --------------------------------------------------------
   VARIABLER
--------------------------------------------------------- */
:root {
    --red: #C60C30;
    --white: #ffffff;
    --bg-overlay: rgba(0, 0, 0, 0.25);
}

/* --------------------------------------------------------
   RESET
--------------------------------------------------------- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    height: 100%;
}

/* --------------------------------------------------------
   BODY
--------------------------------------------------------- */
body {
    font-family: 'Poppins', Arial, sans-serif;
    color: #222;
    background-image: url('../images/fig.png');
    background-size: cover;
    background-position: center center;
    background-attachment: fixed;
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background: var(--bg-overlay);
    pointer-events: none;
    z-index: 0;
}

main {
    flex: 1;
}

h1,
h2,
h3 {
    font-family: 'Barrio', cursive;
}

/* --------------------------------------------------------
   HEADER
--------------------------------------------------------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    display: grid;
    grid-template-columns: 1fr auto auto 1fr;
    align-items: center;
    background-color: var(--red);
    padding: 0.75rem 1rem;
    color: var(--white);
    font-family: 'Barrio', cursive;
}

.login-link {
    justify-self: start;
    color: var(--white);
    text-decoration: none;
    font-weight: bold;
    font-style: italic;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border: 2px solid white;
    border-radius: 12px;
    display: inline-block;
    font-size: 0.9rem;
}

.login-link:hover {
    background-color: white;
    color: var(--red);
    transform: scale(1.05);
}

.logo {
    justify-self: center;
}

.logo img {
    height: 40px;
}

.site-title {
    justify-self: center;
    margin: 0;
    font-size: 3rem;
    text-align: center;
}

.burger {
    justify-self: end;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.8rem;
    cursor: pointer;
}

/* --------------------------------------------------------
   NAVIGATION
--------------------------------------------------------- */
.main-nav {
    display: none;
    position: absolute;
    top: 65px;
    right: 0;
    background-color: var(--red);
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding: 1rem 0;
}

.main-nav.show {
    display: flex;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.main-nav a {
    color: var(--white);
    text-decoration: none;
    font-family: 'Barrio', cursive;
    font-weight: 700;
    font-style: italic;
    font-size: 1.4rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 0.75rem 1.5rem;
    margin: 0.25rem 0;
    transition: all 0.3s ease;
    display: block;
}

.main-nav a:hover {
    opacity: 0.9;
    transform: scale(1.05);
}

@media(min-width: 768px) {
    .main-nav {
        display: flex !important;
        position: static;
        flex-direction: row;
        background: none;
        justify-content: center;
        padding: 0;
    }

    .main-nav a {
        padding: 0.75rem 2rem;
        margin: 0;
    }
}

/* --------------------------------------------------------
   HERO
--------------------------------------------------------- */
.hero {
    min-height: calc(100vh - 56px);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem 1rem;
    position: relative;
    z-index: 2;
}

.hero-inner {
    max-width: 720px;
    background: rgba(255, 255, 255, 0.06);
    padding: 2rem;
    border-radius: 12px;
    backdrop-filter: blur(4px);
}

.hero h1 {
    color: var(--white);
    margin-bottom: 0.5rem;
    font-size: 40px;
}

.hero p {
    color: var(--white);
    margin-bottom: 1.25rem;
    line-height: 1.5;
}

/* --------------------------------------------------------
   KATEGORIER
--------------------------------------------------------- */
.categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.cat {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 280px;
    border-radius: 12px;
    text-decoration: none;
    font-family: 'Barrio', cursive;
    font-size: 40px;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: bold;
    overflow: hidden;
    border: 3px solid #2f2c79;
}

.cat::before {
    content: '';
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.3s ease;
    z-index: -2;
}

.cat::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: -1;
}

.cat:hover::before {
    transform: scale(1.1);
}

.cat[href*="Breakfast"]::before {
    background-image: url('../images/morgen_result.webp');
}

.cat[href*="Lunch"]::before {
    background-image: url('../images/DSC_0424.webp');
}

.cat[href*="Dinner"]::before {
    background-image: url('../images/gluten-free-spaghetti-bolognese-close-500x500.webp');
}

.cat[href*="Dessert"]::before {
    background-image: url('../images/tiraaa_result.webp');
}

/* --------------------------------------------------------
   ANDRE GODE FORSLAG
--------------------------------------------------------- */
.andre-forslag {
    text-align: center;
    padding: 3rem 1rem;
    background: none;
    position: relative;
    z-index: 2;
}

.andre-forslag h2 {
    font-family: 'Barrio', cursive;
    font-size: 2rem;
    color: white;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.4);
}

.forslag-container {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 1rem;
    scroll-snap-type: x mandatory;
}

.forslag-card {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 14px;
    min-width: 230px;
    flex: 0 0 auto;
    text-align: center;
    color: white;
    padding: 1rem;
    scroll-snap-align: center;
    transition: transform 0.3s ease;
}

.forslag-card:hover {
    transform: scale(1.05);
    background: rgba(255, 255, 255, 0.2);
}

.forslag-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 0.5rem;
}

.forslag-card h3 {
    font-family: 'Barrio', cursive;
    font-size: 1.2rem;
    margin: 0.5rem 0;
}

.forslag-card p {
    font-size: 0.9rem;
    line-height: 1.3;
}

.forslag-card .btn {
    display: inline-block;
    margin-top: 0.5rem;
    color: white;
    font-weight: bold;
    font-style: italic;
    text-decoration: none;
    border-bottom: 1px solid white;
    transition: color 0.3s ease;
}

.forslag-card .btn:hover {
    color: var(--red);
    border-color: var(--red);
}

/* --------------------------------------------------------
   FOOTER
--------------------------------------------------------- */
footer {
    background-color: var(--red);
    color: white;
    padding: 40px 60px;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
}

.footer-left {
    max-width: 40%;
}

.footer-logo {
    font-size: 22px;
    font-weight: bold;
    line-height: 1.4;
    border-bottom: 2px solid white;
    display: inline-block;
    padding-bottom: 5px;
    margin-bottom: 15px;
}

.footer-links a {
    margin-right: 25px;
    text-decoration: none;
    color: white;
    font-style: italic;
    font-weight: bold;
}

.footer-right {
    max-width: 40%;
    text-align: right;
}

.newsletter button {
    padding: 8px 12px;
    border: none;
    border-radius: 4px;
    background-color: white;
    color: var(--red);
    font-weight: bold;
    cursor: pointer;
}

.social-icons a {
    color: white;
    margin-left: 12px;
    font-size: 18px;
    text-decoration: none;
}

@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        text-align: center;
    }

    .footer-right {
        text-align: center;
        margin-top: 20px;
    }
}

/* --------------------------------------------------------
   MOBILFORBEDRING
--------------------------------------------------------- */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 1.8rem;
        line-height: 1.2;
    }

    .hero p {
        font-size: 0.95rem;
        line-height: 1.4;
        padding: 0 0.5rem;
    }

    .hero-inner {
        padding: 1.2rem;
        max-width: 90%;
    }

    .site-header {
        grid-template-columns: auto 1fr auto;
        padding: 0.5rem 0.75rem;
    }

    .site-title {
        font-size: 1.6rem;
    }

    .login-link {
        font-size: 0.75rem;
        padding: 0.4rem 0.6rem;
    }

    .burger {
        font-size: 1.5rem;
    }

    .main-nav {
        top: 56px;
        width: 100%;
        padding: 0.5rem 0;
    }

    .main-nav a {
        font-size: 1.2rem;
        padding: 0.6rem 1rem;
    }

    .cat {
        height: 200px;
        font-size: 1.8rem;
    }

    .hero {
        padding-top: 4rem;
    }
}

/* --------------------------------------------------------
   FIX – opskrifter vises forkert (én stor i stedet for flere)
   Gør slideren vandret og kortene ens på mobil
--------------------------------------------------------- */
.recipe-list {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory;
    gap: 1rem;
    padding: 1rem;
    -webkit-overflow-scrolling: touch;
}

.recipe-card {
    flex: 0 0 240px !important;
    /* fast bredde så der er flere ved siden af hinanden */
    max-width: 240px;
    scroll-snap-align: start;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    text-align: center;
    color: white;
    padding: 1rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.recipe-card:hover {
    transform: scale(1.05);
}

.recipe-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 10px;
}

/* MOBILJUSTÉRING – så de stadig ligger vandret */
@media (max-width: 768px) {
    .recipe-card {
        flex: 0 0 200px !important;
        max-width: 200px;
    }

    .recipe-list {
        gap: 0.8rem;
        padding: 0.5rem 0.5rem 1.5rem 0.5rem;
    }
}

/* ---------- Mobilvenlig form styling ---------- */
@media (max-width: 768px) {
    .form-container {
        padding: 1.5rem;
        border-radius: 10px;
        background: rgba(255, 255, 255, 0.08);
    }

    .recipe-form label {
        font-size: 0.9rem;
    }

    .recipe-form input,
    .recipe-form textarea,
    .recipe-form select {
        font-size: 0.9rem;
        padding: 0.6rem;
    }

    .recipe-form textarea {
        min-height: 100px;
    }

    .form-page h1 {
        font-size: 1.4rem;
        text-align: center;
        margin-bottom: 0.5rem;
    }

    .form-page p {
        font-size: 0.95rem;
        text-align: center;
        margin-bottom: 1.5rem;
        line-height: 1.4;
    }

    .btn-submit {
        width: 100%;
        padding: 0.9rem;
        font-size: 1rem;
        letter-spacing: 0.5px;
    }

    footer {
        padding: 2rem 1rem;
    }

    .footer-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-left,
    .footer-right {
        width: 100%;
        margin-bottom: 1.5rem;
    }

    .footer-links a {
        display: block;
        margin: 0.3rem 0;
    }

    .newsletter input {
        width: 80%;
        margin: 0.5rem 0;
    }

    .social-icons a {
        font-size: 1.3rem;
        margin: 0 0.5rem;
    }
}

/* ---------- Ekstra til meget små skærme ---------- */
@media (max-width: 480px) {
    .form-page {
        padding: 2rem 0.5rem;
    }

    .recipe-form input,
    .recipe-form textarea,
    .recipe-form select {
        font-size: 0.85rem;
    }

    .btn-submit {
        padding: 0.8rem;
        font-size: 0.9rem;
    }
}

/* --------------------------------------------------------
   OPSKRIFT-DETALJE SIDE (recipe.html)
--------------------------------------------------------- */

.recipe-detail {
    max-width: 900px;
    margin: 4rem auto;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    backdrop-filter: blur(6px);
    color: white;
    position: relative;
    z-index: 2;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.recipe-detail img {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 14px;
    margin-bottom: 1.5rem;
}

.recipe-detail h1 {
    font-family: 'Barrio', cursive;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    text-align: center;
    color: var(--white);
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
}

.recipe-detail .description {
    text-align: center;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    color: #f8f8f8;
}

.recipe-meta {
    display: flex;
    justify-content: center;
    gap: 2rem;
    font-style: italic;
    font-weight: 600;
    margin-bottom: 2rem;
}

.recipe-meta i {
    margin-right: 0.4rem;
    color: var(--red);
}

/* Kolonner til ingredienser og fremgangsmåde */
.recipe-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 1.5rem;
}

.recipe-columns section {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 14px;
    padding: 1.5rem;
    transition: transform 0.3s ease, background 0.3s ease;
}

.recipe-columns section:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
}

.recipe-columns h2 {
    font-family: 'Barrio', cursive;
    font-size: 1.6rem;
    color: var(--white);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.recipe-columns ul,
.recipe-columns ol {
    list-style-position: inside;
    line-height: 1.6;
    font-size: 1rem;
    color: #f3f3f3;
}

.recipe-columns li {
    margin-bottom: 0.5rem;
}

/* Tilbage-knap */
.back-btn {
    display: inline-block;
    margin-bottom: 1.5rem;
    color: white;
    text-decoration: none;
    font-weight: bold;
    font-style: italic;
    border: 2px solid white;
    border-radius: 10px;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
}

.back-btn:hover {
    background-color: white;
    color: var(--red);
    transform: scale(1.05);
}

/* --------------------------------------------------------
   RESPONSIV TILPASNING
--------------------------------------------------------- */
@media (max-width: 768px) {
    .recipe-detail {
        margin: 2rem 1rem;
        padding: 1.5rem;
    }

    .recipe-detail h1 {
        font-size: 2rem;
    }

    .recipe-columns {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }

    .recipe-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .recipe-detail {
        padding: 1rem;
        margin: 1rem;
    }

    .recipe-detail h1 {
        font-size: 1.6rem;
    }

    .recipe-detail .description {
        font-size: 1rem;
    }

    .back-btn {
        font-size: 0.9rem;
        padding: 0.4rem 0.8rem;
    }
}

.about-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
    line-height: 1.7;
}

.about-page h2,
.about-page h3 {
    color: #333;
    margin-bottom: 1rem;
}

.team-container {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.team-member {
    flex: 1 1 250px;
    text-align: center;
}

.team-member img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 0.5rem;
}

footer {
    position: relative;
    z-index: 10;
    /* Sørger for at ligge øverst */
}