/* GastrOOrgazmus — dizajnový základ */

:root {
    --g-red: #e8442e;
    --g-red-dark: #c93520;
    --g-orange: #ff9f1c;
    --g-cream: #fff8f0;
    --g-ink: #2b2118;
    --g-radius: 18px;
}

body {
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
    background: var(--g-cream);
    color: var(--g-ink);
}

a { color: var(--g-red); }
a:hover { color: var(--g-red-dark); }

.navbar-brand {
    font-weight: 800; font-size: 1.35rem; letter-spacing: -.5px; color: var(--g-ink) !important;
}
.navbar-brand .oo { color: var(--g-red); }

.topnav {
    background: rgba(255, 248, 240, .92); backdrop-filter: blur(10px);
    border-bottom: 1px solid #f0e4d6;
}
.topnav .nav-link { font-weight: 600; color: var(--g-ink); }
.topnav .nav-link:hover { color: var(--g-red); }
.nav-ico { width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center; }

.btn-cta {
    background: var(--g-red); color: #fff; font-weight: 700; border: 0;
    border-radius: 999px; padding-left: 1rem; padding-right: 1rem;
    box-shadow: 0 4px 14px rgba(232, 68, 46, .35);
    transition: transform .12s, box-shadow .12s;
}
.btn-cta:hover { background: var(--g-red-dark); color: #fff; transform: translateY(-1px); box-shadow: 0 6px 18px rgba(232, 68, 46, .45); }

.avatar {
    width: 34px; height: 34px; border-radius: 50%; background: var(--g-orange);
    color: #fff; font-weight: 700; display: inline-flex; align-items: center;
    justify-content: center; overflow: hidden; flex-shrink: 0;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-lg { width: 84px; height: 84px; font-size: 2rem; }

.lvl-chip {
    display: inline-block; background: linear-gradient(135deg, var(--g-orange), var(--g-red));
    color: #fff; font-weight: 800; font-size: .68rem; padding: 2px 8px; border-radius: 999px;
    vertical-align: 1px;
}

/* hero */
.hero {
    background:
        radial-gradient(1000px 400px at 85% -10%, rgba(255, 159, 28, .18), transparent),
        radial-gradient(800px 300px at 10% 110%, rgba(232, 68, 46, .12), transparent);
    padding: 3.5rem 0 2.5rem;
}
.hero h1 { font-weight: 800; letter-spacing: -1px; }
.hero .accent { color: var(--g-red); }

/* karty jedál */
.food-card {
    background: #fff; border-radius: var(--g-radius); overflow: hidden;
    border: 1px solid #f0e4d6; transition: transform .15s, box-shadow .15s;
    height: 100%; display: flex; flex-direction: column;
}
.food-card:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(43, 33, 24, .12); }
.food-card .photo {
    aspect-ratio: 4 / 3; width: 100%; object-fit: cover; background: #f6ede2; display: block;
}
.food-card .body { padding: .8rem .95rem 1rem; flex-grow: 1; display: flex; flex-direction: column; }
.food-card h3, .food-card .h6 { font-size: 1rem; font-weight: 700; margin: 0 0 2px; }
.food-card a { text-decoration: none; color: inherit; }
.food-card .meta { font-size: .8rem; color: #8a7b6b; }
.food-card .foot { display: flex; align-items: center; gap: 8px; margin-top: auto; padding-top: .5rem; }

.rating-badge {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 42px; height: 28px; padding: 0 8px; border-radius: 9px;
    background: var(--g-ink); color: #ffd166; font-weight: 800; font-size: .9rem;
}
.rating-badge.sm { min-width: 36px; height: 24px; font-size: .8rem; }
.price-chip { font-weight: 700; font-size: .9rem; color: var(--g-ink); margin-left: auto; }

/* sekcie */
.section-title { font-weight: 800; letter-spacing: -.5px; }
.section-title .bi { color: var(--g-red); }

/* kategórie chips */
.cat-chip {
    display: inline-flex; align-items: center; gap: 6px; background: #fff;
    border: 1.5px solid #f0e4d6; border-radius: 999px; padding: 8px 16px;
    font-weight: 700; font-size: .9rem; color: var(--g-ink); text-decoration: none;
    transition: all .12s;
}
.cat-chip:hover { border-color: var(--g-red); color: var(--g-red); transform: translateY(-1px); }

/* instantsearch */
.ais-wrap { display: grid; grid-template-columns: 260px 1fr; gap: 1.5rem; }
@media (max-width: 991px) { .ais-wrap { grid-template-columns: 1fr; } }
.facet-card { background: #fff; border: 1px solid #f0e4d6; border-radius: var(--g-radius); padding: 1rem; }
.facet-card h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .5px; font-weight: 800; color: #8a7b6b; margin-bottom: .5rem; }
.ais-SearchBox-input {
    width: 100%; border: 1.5px solid #f0e4d6; border-radius: 999px; padding: .65rem 1.1rem;
    font-size: 1rem; background: #fff;
}
.ais-SearchBox-input:focus { outline: none; border-color: var(--g-red); }
.ais-SearchBox-submit, .ais-SearchBox-reset { display: none; }
.ais-Hits-list, .ais-InfiniteHits-list { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1rem; }
.ais-HierarchicalMenu-list, .ais-RefinementMenu-list, .ais-RefinementList-list { list-style: none; padding-left: 0; margin: 0; }
.ais-HierarchicalMenu-list .ais-HierarchicalMenu-list { padding-left: 14px; }
.ais-HierarchicalMenu-item a, .ais-RefinementList-label { color: var(--g-ink); text-decoration: none; font-size: .92rem; display: flex; gap: 6px; align-items: center; padding: 3px 0; cursor: pointer; }
.ais-HierarchicalMenu-item--selected > div > a { color: var(--g-red); font-weight: 700; }
.ais-HierarchicalMenu-count, .ais-RefinementList-count { margin-left: auto; background: #f6ede2; border-radius: 999px; font-size: .7rem; padding: 1px 7px; color: #8a7b6b; }
.ais-RefinementList-checkbox { accent-color: var(--g-red); }
.ais-InfiniteHits-loadMore, .ais-Pagination-link {
    background: #fff; border: 1.5px solid #f0e4d6; border-radius: 999px; padding: .5rem 1.4rem;
    font-weight: 700; color: var(--g-ink); cursor: pointer;
}
.ais-InfiniteHits-loadMore:hover { border-color: var(--g-red); color: var(--g-red); }
.ais-InfiniteHits-loadMore--disabled { display: none; }
.ais-Stats-text { font-size: .85rem; color: #8a7b6b; }
.ais-CurrentRefinements-item { display: inline-flex; gap: 6px; align-items: center; background: #fff; border: 1px solid #f0e4d6; padding: 3px 10px; border-radius: 999px; font-size: .8rem; margin: 0 6px 6px 0; }
.ais-CurrentRefinements-delete { border: 0; background: none; color: var(--g-red); font-weight: 800; cursor: pointer; }

/* mapa */
#map { height: 68vh; min-height: 400px; border-radius: var(--g-radius); border: 1px solid #f0e4d6; }
.map-pop img { width: 100%; border-radius: 8px; aspect-ratio: 4/3; object-fit: cover; }
.pin-food {
    width: 30px; height: 30px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg);
    background: var(--g-red); border: 2.5px solid #fff; box-shadow: 0 2px 8px rgba(0,0,0,.35);
    display: flex; align-items: center; justify-content: center;
}
.pin-food span { transform: rotate(45deg); font-size: 14px; }

/* newsfeed */
.feed-card { background: #fff; border: 1px solid #f0e4d6; border-radius: var(--g-radius); overflow: hidden; }
.feed-card .photo { width: 100%; max-height: 480px; object-fit: cover; display: block; background: #f6ede2; }

/* profil */
.profile-hero { background: #fff; border: 1px solid #f0e4d6; border-radius: var(--g-radius); }
.badge-tile {
    background: #fff; border: 1px solid #f0e4d6; border-radius: 14px; padding: 10px;
    text-align: center; width: 92px;
}
.badge-tile .ico { font-size: 1.6rem; }
.badge-tile .nm { font-size: .68rem; font-weight: 700; line-height: 1.15; }
.badge-tile.locked { opacity: .35; filter: grayscale(1); }

.progressbar { height: 10px; border-radius: 999px; background: #f6ede2; overflow: hidden; }
.progressbar > div { height: 100%; background: linear-gradient(90deg, var(--g-orange), var(--g-red)); border-radius: 999px; }

/* toast */
.toastmsg {
    position: fixed; top: 70px; left: 50%; transform: translateX(-50%);
    background: #1d9b53; color: #fff; padding: 10px 22px; border-radius: 999px;
    z-index: 2000; box-shadow: 0 8px 24px rgba(0, 0, 0, .25);
    animation: fadeout .5s ease 4s forwards;
}
@keyframes fadeout { to { opacity: 0; visibility: hidden; } }

.footer { background: #fff; border-top: 1px solid #f0e4d6; }
.footer a { color: var(--g-ink); text-decoration: none; }
.footer a:hover { color: var(--g-red); }

/* clanok */
.article-rank {
    width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0;
    background: var(--g-ink); color: #ffd166; font-weight: 800; font-size: 1.2rem;
    display: inline-flex; align-items: center; justify-content: center;
}
.review-quote { background: #fff; border-left: 4px solid var(--g-orange); border-radius: 0 12px 12px 0; padding: .8rem 1rem; }

/* add food flow */
.dropzone {
    border: 2.5px dashed #e3d2bd; border-radius: var(--g-radius); background: #fff;
    padding: 2.5rem 1rem; text-align: center; cursor: pointer; transition: border-color .15s;
}
.dropzone:hover, .dropzone.drag { border-color: var(--g-red); }
.step-dot { width: 30px; height: 30px; border-radius: 50%; background: #f0e4d6; color: #8a7b6b; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }
.step-dot.on { background: var(--g-red); color: #fff; }
.rest-pick { border: 1.5px solid #f0e4d6; border-radius: 14px; background: #fff; padding: .7rem .9rem; cursor: pointer; transition: all .12s; }
.rest-pick:hover, .rest-pick.on { border-color: var(--g-red); background: #fff5f2; }

/* hodnotenie slider */
.rate-pill { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 12px; border: 1.5px solid #f0e4d6; background: #fff; font-weight: 800; cursor: pointer; }
.rate-pill.on { background: var(--g-ink); color: #ffd166; border-color: var(--g-ink); }
