/* RecenzeOdLidí — veřejný vzhled (široký layout, moderní UI) */

@import url("https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,400..800;1,400..800&display=swap");

:root {
    --ink: #14110f;
    --ink-soft: #292524;
    --fg: #1c1917;
    --fg-soft: #44403c;
    --muted: #78716c;
    --bg: #f5f5f4;
    --bg-soft: #eceae8;
    --surface: #ffffff;
    --brand: #ea580c;
    --brand-bright: #f97316;
    --brand-dark: #c2410c;
    --brand-soft: rgba(234, 88, 12, 0.12);
    --accent-line: #0d9488;
    --border: #e7e5e4;
    --shadow-md: 0 12px 40px rgba(20, 17, 15, 0.08);
    --radius: 14px;
    --radius-sm: 10px;
    --content-max: min(1680px, calc(100vw - 2.5rem));
    font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

body.is-public {
    background: var(--bg);
    background-image:
        radial-gradient(ellipse 90% 60% at 100% 0%, rgba(234, 88, 12, 0.07), transparent 55%),
        radial-gradient(ellipse 70% 50% at 0% 100%, rgba(13, 148, 136, 0.05), transparent 50%);
}

h1, h2, h3, .section-head h2 {
    font-family: "Plus Jakarta Sans", system-ui, sans-serif;
    font-weight: 800;
    letter-spacing: -0.03em;
}

/* — Header — */
.site-header--community {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 1px 0 rgba(20, 17, 15, 0.04);
}

.site-header--community .site-header-bar {
    border: 0;
}

.site-header-tagline {
    display: none;
}

.site-header-inner {
    min-height: 4.25rem;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 1.5rem;
}

.brand--community {
    font-family: "Plus Jakarta Sans", system-ui, sans-serif;
    font-weight: 800;
    font-size: 1.15rem;
    color: var(--ink);
    gap: 0.55rem;
}

.brand-mark {
    width: 2rem;
    height: 2rem;
    font-size: 0.95rem;
    background: linear-gradient(145deg, var(--brand-bright), var(--brand-dark));
    box-shadow: 0 4px 12px rgba(234, 88, 12, 0.35);
}

.brand-suffix {
    color: var(--muted);
    font-weight: 600;
}

.site-nav--community {
    display: flex !important;
    justify-content: center;
    gap: 0.25rem;
    flex-wrap: wrap;
}

.site-nav--community a {
    padding: 0.45rem 0.85rem;
    border-radius: var(--radius-pill);
    color: var(--fg-soft);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
}

.site-nav--community a:hover {
    color: var(--brand-dark);
    background: var(--brand-soft);
    text-decoration: none;
}

.site-header-actions {
    gap: 0.75rem;
}

.site-search--compact {
    max-width: min(22rem, 28vw);
    flex: 1;
}

.site-search-input {
    border-radius: var(--radius-pill);
    border: 1px solid var(--border);
    background: var(--bg);
    padding: 0.55rem 1rem;
    min-width: 10rem;
}

.site-search-btn {
    border-radius: var(--radius-pill);
    background: var(--brand);
    color: #fff;
    border: 0;
    padding: 0.55rem 1rem;
    font-weight: 700;
    cursor: pointer;
}

.site-search-btn:hover {
    background: var(--brand-dark);
}

/* — Hero — */
.page-hero--home {
    background: linear-gradient(125deg, #1c1917 0%, #292524 45%, #3f2d22 100%);
    color: #fafaf9;
    padding: clamp(2.5rem, 5vw, 4.5rem) 0;
    margin-bottom: 0;
    box-shadow: none;
    border-bottom: 0;
}

.page-hero--home .page-hero-inner {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: clamp(2rem, 4vw, 4rem);
    align-items: center;
}

.page-hero--home .page-hero-kicker {
    color: #fed7aa;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
}

.page-hero--home a.page-hero-kicker:hover {
    color: var(--brand-dark);
    background: #fff;
}

.page-hero--home h1 {
    color: #fff !important;
    font-size: clamp(2rem, 4.5vw, 3.25rem) !important;
    max-width: none !important;
    line-height: 1.1 !important;
    margin-bottom: 1.25rem;
}

.page-hero-lead {
    color: rgba(250, 250, 249, 0.88) !important;
    font-size: clamp(1.05rem, 1.5vw, 1.2rem);
    max-width: 52ch;
}

.home-cta-community {
    margin-top: 1.75rem;
    gap: 1rem;
}

.btn-community {
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    box-shadow: 0 8px 24px rgba(234, 88, 12, 0.35);
}

.btn-community--outline {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.45);
    background: transparent;
}

.btn-community--outline:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.hero-aside-panel {
    display: grid;
    gap: 1rem;
}

.hero-stat-card {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius);
    padding: 1.25rem 1.35rem;
    backdrop-filter: blur(8px);
}

.hero-stat-card strong {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 0.25rem;
}

.hero-stat-card span {
    font-size: 0.9rem;
    color: rgba(250, 250, 249, 0.75);
    line-height: 1.45;
}

.hero-stat-card--accent {
    background: linear-gradient(135deg, rgba(234, 88, 12, 0.9), rgba(194, 65, 12, 0.95));
    border-color: transparent;
}

/* — Main content width — */
.page-main {
    padding-top: 2.5rem;
    padding-bottom: 4rem;
}

.section-head h2 {
    font-size: clamp(1.35rem, 2vw, 1.65rem);
}

/* — Card grids use full width — */
@media (min-width: 1100px) {
    .cards--product {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    }
}

@media (min-width: 1500px) {
    .cards--product {
        gap: 1.5rem;
    }
}

.cards--product .card-product {
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.cards--product .card-product:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 40px rgba(20, 17, 15, 0.12);
}

.card-product-cta {
    background: var(--brand-soft);
    color: var(--brand-dark);
    font-weight: 700;
}

/* — Review page — */
.page-review .review-page-grid {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
    gap: 2rem;
}

@media (min-width: 1400px) {
    .page-review .review-page-grid {
        grid-template-columns: minmax(0, 1fr) minmax(300px, 380px);
        gap: 2.5rem;
    }
}

.community-cta-banner {
    border-radius: var(--radius);
    padding: 1.5rem 2rem;
}

.comments-section {
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--surface);
    box-shadow: var(--shadow-md);
}

/* — Footer — */
.site-footer--community {
    background: #1c1917;
    margin-top: 4rem;
    padding: 3rem 0;
}

.site-footer-inner {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 2rem;
    align-items: start;
}

.site-footer-copy {
    grid-column: 1 / -1;
    margin: 1rem 0 0;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* — Mobile — */
@media (max-width: 960px) {
    .site-header-inner {
        grid-template-columns: 1fr auto;
    }

    .site-nav--community {
        display: none !important;
    }

    .site-nav--community.is-open {
        display: flex !important;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background: var(--surface);
        padding: 1rem;
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow-md);
    }

    .page-hero--home .page-hero-inner {
        grid-template-columns: 1fr;
    }

    .hero-aside-panel {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 560px) {
    .hero-aside-panel {
        grid-template-columns: 1fr;
    }

    .site-search--compact {
        max-width: 100%;
    }
}
