/* =========================================================
   DIETETIC.ART — BIBLIOTEKA PREMIUM
========================================================= */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}


/* =========================================================
   BODY
========================================================= */

body {

    font-family:
        'Segoe UI',
        Tahoma,
        Geneva,
        Verdana,
        sans-serif;

    background: #07111f;

    color: white;

    min-height: 100vh;

    overflow-x: hidden;
}


/* GLOW */

body::before {

    content: "";

    position: fixed;

    width: 700px;
    height: 700px;

    top: -200px;
    left: 50%;

    transform: translateX(-50%);

    background:
        radial-gradient(
            circle,
            rgba(14,165,233,.35),
            transparent 65%
        );

    filter: blur(80px);

    z-index: -1;
}


/* =========================================================
   BACK BUTTON
========================================================= */

.back-button {

    position: fixed;

    top: 25px;
    left: 25px;

    display: flex;
    align-items: center;

    gap: 8px;

    padding: 12px 18px;

    background:
        rgba(255,255,255,.06);

    border:
        1px solid rgba(255,255,255,.12);

    border-radius: 16px;

    color: #e5e7eb;

    text-decoration: none;

    font-weight: 600;

    font-size: 14px;

    backdrop-filter: blur(15px);

    box-shadow:
        0 10px 30px rgba(0,0,0,.35);

    transition: .25s ease;

    z-index: 1000;
}


.back-button:hover {

    background:
        rgba(14,165,233,.18);

    border-color:
        rgba(56,189,248,.6);

    color: #38bdf8;

    transform:
        translateX(-4px);
}


/* =========================================================
   CONTAINER
========================================================= */

.container {

    max-width: 1250px;

    margin: auto;

    padding: 40px 20px;
}


/* =========================================================
   LIBRARY HEADER
========================================================= */

.library-header {

    display: flex;

    align-items: center;

    justify-content: space-between;

    padding: 30px 35px;

    background:
        rgba(255,255,255,.06);

    border:
        1px solid rgba(255,255,255,.1);

    border-radius: 25px;

    backdrop-filter: blur(20px);

    margin-bottom: 30px;

    box-shadow:
        0 20px 50px rgba(0,0,0,.25);
}


/* LOGO — DESKTOP */

.logo {

    width: 280px;

    height: auto;

    filter:
        drop-shadow(
            0 0 20px rgba(14,165,233,.35)
        );
}


/* PRAWA STRONA NAGŁÓWKA */

.header-text {

    text-align: right;
}


.header-text h1 {

    font-size: 36px;

    margin:
        0 0 10px 0;
}


.header-text p {

    color: #94a3b8;

    font-size: 16px;

    margin: 0;
}


/* =========================================================
   TOOLBAR
========================================================= */

.toolbar {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;

    margin-bottom: 40px;

    flex-wrap: wrap;
}


/* SEARCH */

.search {

    width: 360px;

    padding:
        14px 20px;

    border-radius: 16px;

    border:
        1px solid rgba(255,255,255,.15);

    background:
        rgba(255,255,255,.05);

    color: white;

    font-size: 15px;

    outline: none;

    backdrop-filter: blur(10px);
}


.search::placeholder {

    color: #94a3b8;
}


.search:focus {

    border-color: #38bdf8;

    box-shadow:
        0 0 20px rgba(56,189,248,.25);
}


/* =========================================================
   FILTERS
========================================================= */

.filters {

    display: flex;

    gap: 10px;

    flex-wrap: wrap;
}


.filters button {

    padding:
        10px 18px;

    border-radius: 14px;

    border:
        1px solid rgba(255,255,255,.12);

    background:
        rgba(255,255,255,.05);

    color: white;

    cursor: pointer;

    transition: .25s;

    font-weight: 600;
}


.filters button:hover {

    background: #0ea5e9;

    transform:
        translateY(-2px);
}


/* =========================================================
   STANDARD TITLES
========================================================= */

h2 {

    margin-bottom: 25px;

    font-size: 28px;
}


/* =========================================================
   JADŁOSPISY — HEADER SEKCJI
========================================================= */

.diets-section-heading {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;

    margin-top: 40px;

    margin-bottom: 22px;
}


.diets-section-heading h2 {

    margin: 0;

    font-size: 28px;
}


/* =========================================================
   PRZYCISK — LISTA ZAKUPÓW
========================================================= */

.diets-shopping-button {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 7px;

    padding:
        10px 15px;

    border-radius: 11px;

    text-decoration: none;

    color: #cbd5e1;

    background:
        rgba(255,255,255,.045);

    border:
        1px solid rgba(255,255,255,.10);

    box-shadow:
        0 6px 18px rgba(0,0,0,.18);

    font-size: 13px;

    font-weight: 600;

    white-space: nowrap;

    transition:
        background .2s ease,
        border-color .2s ease,
        color .2s ease,
        transform .2s ease,
        box-shadow .2s ease;
}


.diets-shopping-button:hover {

    color: #38bdf8;

    background:
        rgba(14,165,233,.10);

    border-color:
        rgba(14,165,233,.40);

    box-shadow:
        0 8px 22px rgba(14,165,233,.12);

    transform:
        translateY(-1px);
}


/* =========================================================
   GRID
========================================================= */

.grid {

    display: grid;

    grid-template-columns:
        repeat(
            auto-fit,
            minmax(320px,1fr)
        );

    gap: 30px;
}


/* =========================================================
   DIET CARD
========================================================= */

.diet-card {

    background:
        rgba(15,27,45,.8);

    border:
        1px solid rgba(255,255,255,.1);

    border-radius: 25px;

    overflow: hidden;

    transition: .3s;

    box-shadow:
        0 20px 50px rgba(0,0,0,.4);
}


.diet-card:hover {

    transform:
        translateY(-10px);

    border-color:
        #38bdf8;

    box-shadow:
        0 25px 60px
        rgba(14,165,233,.15);
}


/* =========================================================
   CARD IMAGE
========================================================= */

.image {

    height: 230px;

    position: relative;
}


.image img {

    width: 100%;

    height: 100%;

    object-fit: cover;
}


/* =========================================================
   PREMIUM BADGE
========================================================= */

.premium {

    position: absolute;

    top: 15px;
    right: 15px;

    background:
        linear-gradient(
            135deg,
            #facc15,
            #f59e0b
        );

    color: #111;

    font-weight: 800;

    padding:
        8px 15px;

    border-radius: 20px;

    font-size: 12px;

    box-shadow:
        0 5px 20px rgba(0,0,0,.3);
}


/* =========================================================
   CARD CONTENT
========================================================= */

.content {

    padding: 25px;
}


.content h3 {

    font-size: 25px;

    margin-bottom: 8px;

    display: -webkit-box;

    -webkit-box-orient: vertical;

    -webkit-line-clamp: 2;

    overflow: hidden;

    line-height: 1.2;

    height: 60px;
}

/* ==================================================
   DARMOWE — BADGE
================================================== */

.free-badge {

    position: absolute;

    top: 14px;
    right: 14px;

    z-index: 5;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    padding:
        7px 11px;

    border-radius:
        999px;

    background:
        linear-gradient(
            135deg,
            rgba(14,165,233,.92),
            rgba(59,130,246,.92)
        );

    border:
        1px solid
        rgba(125,211,252,.35);

    color:
        #ffffff;

    font-size:
        12px;

    font-weight:
        800;

    letter-spacing:
        .4px;

    box-shadow:
        0 5px 18px
        rgba(14,165,233,.28);

    backdrop-filter:
        blur(8px);

    -webkit-backdrop-filter:
        blur(8px);

    white-space:
        nowrap;

}

/* =========================================================
   CATEGORY
========================================================= */

.category {

    color: #38bdf8;

    font-size: 13px;

    font-weight: 700;

    margin-bottom: 10px;
}


/* =========================================================
   DESCRIPTION
========================================================= */

.desc {

    color: #94a3b8;

    line-height: 1.5;

    min-height: 50px;
}


/* =========================================================
   MACRO
========================================================= */

.macro {

    display: flex;

    gap: 10px;

    margin: 25px 0;

    flex-wrap: wrap;
}


.macro span {

    background:
        rgba(255,255,255,.07);

    padding:
        8px 12px;

    border-radius: 12px;

    font-size: 13px;
}


/* =========================================================
   CARD BUTTON
========================================================= */

.content button {

    width: 100%;

    padding: 15px;

    border-radius: 15px;

    border: none;

    background:
        linear-gradient(
            135deg,
            #0ea5e9,
            #2563eb
        );

    color: white;

    font-weight: 700;

    font-size: 15px;

    cursor: pointer;

    transition: .25s;
}


.content button:hover {

    filter: brightness(1.15);

    transform:
        translateY(-2px);
}


/* =========================
   LISTA ZAKUPÓW — BUTTON
========================= */

.shopping-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;

    padding: 10px 16px;

    min-height: 40px;

    border-radius: 12px;

    text-decoration: none;

    color: #cbd5e1;

    background: rgba(255, 255, 255, 0.045);

    border: 1px solid rgba(255, 255, 255, 0.12);

    box-shadow:
        0 6px 18px rgba(0, 0, 0, 0.18);

    font-family: inherit;
    font-size: 13px;
    font-weight: 600;

    cursor: pointer;

    transition:
        background .2s ease,
        border-color .2s ease,
        color .2s ease,
        transform .2s ease,
        box-shadow .2s ease;
}

.shopping-button:hover {

    color: #38bdf8;

    background:
        rgba(14, 165, 233, 0.10);

    border-color:
        rgba(56, 189, 248, 0.45);

    box-shadow:
        0 8px 24px rgba(14, 165, 233, 0.15);

    transform: translateY(-1px);
}

.shopping-button:active {

    transform: translateY(0);

    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.15);
}

/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 700px) {


    /* BACK BUTTON */

    .back-button {

        top: 15px;

        left: 15px;
    }


    /* HEADER */

    .library-header {

        flex-direction: column;

        text-align: center;
    }


    .logo {

        width: 160px;
    }


    .header-text {

        text-align: center;
    }


    .header-text h1 {

        font-size: 28px;
    }


    /* TOOLBAR */

    .toolbar {

        justify-content: center;
    }


    /* JADŁOSPISY HEADER */

    .diets-section-heading {

        align-items: stretch;

        flex-direction: column;

        gap: 12px;
    }


    .diets-section-heading h2 {

        font-size: 25px;
    }


    /* SHOPPING BUTTON */

    .diets-shopping-button {

        width: 100%;
    }


    /* CARD TITLE */

    .content h3 {

        display: block;

        -webkit-line-clamp: unset;

        overflow: visible;

        height: auto;

        margin-bottom: 8px;
    }


    /* SEARCH */

    .search {

        width: 100%;
    }


    /* GRID */

    .grid {

        grid-template-columns: 1fr;
    }

}