/* ============================================
   Pivovar Šepťák – Main Stylesheet
   Design based on original pivovarseptak.cz
   ============================================ */

:root {
    --clr-gold: #917852;
    --clr-dark: #1a1a1a;
    --clr-darker: #111111;
    --clr-body-bg: #0d0d0d;
    --clr-card-bg: #1e1e1e;
    --clr-text: #cccccc;
    --clr-text-light: #ffffff;
    --clr-accent: #fa225b;
    --clr-light-beer: #c8a84e;
    --clr-medium-beer: #b5651d;
    --clr-strong-beer: #8b0000;
    --font-heading: 'Roboto Slab', serif;
    --font-body: 'Roboto Slab', serif;
}

/* ---- Reset & Base ---- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-y: scroll;
}

body {
    font-family: var(--font-body);
    background-color: var(--clr-body-bg);
    color: var(--clr-text);
    line-height: 1.7;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--clr-text-light);
    font-weight: 400;
}

a {
    color: var(--clr-gold);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--clr-text-light);
}

img {
    max-width: 100%;
    height: auto;
}

/* ---- Navbar (Split Layout) ---- */
.navbar {
    background: #000;
    padding: 0;
    z-index: 1050;
    border-bottom: 1px solid rgba(145, 120, 82, 0.2);
    height: 140px;
}

.navbar > .container-fluid {
    height: 140px;
}

/* Nav Links */
.nav-link {
    font-family: var(--font-heading);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: #ae946d !important;
    text-transform: uppercase;
    padding: 1rem 1.5rem !important;
    position: relative;
    transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #ffffff !important;
}

/* Center Brand – absolutely positioned so logo doesn't expand navbar */
.navbar .navbar-brand.d-none.d-lg-flex {
    position: absolute;
    left: 50%;
    top: 55%;
    transform: translate(-50%, -50%);
    margin: 0;
    padding: 0;
    z-index: 10;
}

.brand-center {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.logo-img-center {
    height: 120px;
    width: auto;
    object-fit: contain;
}

/* Admin Link */
.nav-admin-link {
    border: 1px solid var(--clr-gold);
    border-radius: 4px;
    padding: 0.3rem 0.8rem !important;
    margin-left: 15px;
}

/* ---- Body offset for fixed navbar ---- */
body {
    padding-top: 140px;
}

/* ---- Hero / Slider ---- */
.hero-section {
    position: relative;
    width: 100%;
    height: calc(100vh - 140px);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-home {
    height: 90vh;
    min-height: 700px;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
    /* Filter for that dark aesthetic */
    filter: brightness(0.6) contrast(1.1);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 0 20px;
}

.hero-pre-title {
    font-family: var(--font-body);
    font-size: 0.9rem;
    letter-spacing: 6px;
    color: #ffffff;
    margin-bottom: 20px;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 10vw, 7.5rem);
    /* HUGE Title */
    color: var(--clr-gold);
    margin-bottom: 25px;
    line-height: 1;
    font-weight: 700;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.8);
}

.hero-subtitle {
    font-family: var(--font-body);
    font-size: 0.8rem;
    letter-spacing: 5px;
    color: #cccccc;
    text-transform: uppercase;
}

/* ---- Page Header (podstránky) ---- */
.page-header {
    padding: 25px 0 0;
    text-align: center;
    background: transparent;
    border-bottom: none;
}

.page-header .section-divider {
    margin: 10px auto 0;
}

.page-header-title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: var(--clr-text-light);
    letter-spacing: 5px;
    margin-bottom: 6px;
}

.page-header + .section {
    padding-top: 40px;
}

/* ---- Sections ---- */
.section {
    padding: 80px 0;
}

.section-dark {
    background-color: var(--clr-darker);
}

.section-card-bg {
    background-color: var(--clr-card-bg);
}

.section-title {
    font-size: 1.75rem;
    text-align: center;
    margin-bottom: 5px;
}

.section-pre-title {
    font-size: 0.7rem;
    letter-spacing: 6px;
    text-align: center;
    text-transform: uppercase;
    color: var(--clr-text);
    margin-bottom: 15px;
}

.section-divider {
    width: 105px;
    height: 1px;
    background: var(--clr-gold);
    margin: 20px auto 50px;
}

/* ---- Beer Cards (vylepšený design) ---- */
.beers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    padding: 0 15px;
}

.beer-card {
    background: var(--clr-card-bg);
    border: 1px solid rgba(145, 120, 82, 0.2);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.beer-card:hover {
    transform: translateY(-6px);
    border-color: var(--clr-gold);
    box-shadow: 0 12px 40px rgba(145, 120, 82, 0.15);
}

.beer-card-image {
    position: relative;
    height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    overflow: hidden;
    background: var(--clr-darker);
}

.beer-card-image-bg {
    position: absolute;
    inset: -30px;
    background-size: cover;
    background-position: center;
    filter: blur(18px) saturate(0.35) brightness(0.45);
}

.beer-card-image img {
    position: relative;
    z-index: 1;
    max-height: 220px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.5));
    transition: transform 0.4s ease;
}

.beer-card:hover .beer-card-image img {
    transform: scale(1.05);
}

.beer-card-body {
    padding: 25px 30px 30px;
    flex: 1;
    display: flex;
    flex-direction: column;
    text-align: center;
}

.beer-card-brand {
    font-size: 0.7rem;
    letter-spacing: 4px;
    color: var(--clr-text);
    text-transform: uppercase;
    margin-bottom: 4px;
}

.beer-card-name {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    color: var(--clr-text-light);
    margin-bottom: 15px;
}

.beer-card-desc {
    font-size: 0.88rem;
    color: var(--clr-text);
    line-height: 1.7;
    margin-bottom: 20px;
    flex: 1;
}

.beer-card-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    border-top: 1px solid rgba(145, 120, 82, 0.15);
    padding-top: 18px;
    margin-top: auto;
}

.beer-stat {
    text-align: center;
}

.beer-stat-label {
    display: block;
    font-size: 0.65rem;
    letter-spacing: 2px;
    color: var(--clr-gold);
    text-transform: uppercase;
    margin-bottom: 3px;
}

.beer-stat-value {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.05rem;
    color: var(--clr-text-light);
}

.beer-card-extra {
    display: flex;
    justify-content: space-between;
    padding: 12px 30px;
    background: rgba(0, 0, 0, 0.2);
    font-size: 0.78rem;
    color: var(--clr-text);
}

.beer-card-extra span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.beer-card-extra i {
    color: var(--clr-gold);
    font-size: 0.75rem;
}

.beer-card-cta {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 30px;
    font-size: 0.78rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--clr-text-light);
    background: transparent;
    border: 1px solid var(--clr-gold);
    border-radius: 4px;
    transition: all 0.3s ease;
}

.beer-card-cta:hover {
    background: var(--clr-gold);
    color: var(--clr-dark);
}

/* ---- Locations ---- */
.location-card {
    background: #000;
    border-radius: 8px;
    padding: 40px 25px;
    text-align: center;
    transition: transform 0.3s ease;
}

.location-card:hover {
    transform: translateY(-4px);
}

.location-card h3 {
    font-size: 1.1rem;
    letter-spacing: 2px;
    margin-bottom: 15px;
}

.location-card .location-divider {
    width: 100px;
    height: 1px;
    background: var(--clr-gold);
    margin: 0 auto 20px;
}

.location-card p {
    font-size: 0.9rem;
    line-height: 2;
    color: var(--clr-text);
}

.btn-map {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 15px;
    padding: 8px 20px;
    border: 1px solid rgba(145, 120, 82, 0.3);
    border-radius: 4px;
    color: var(--clr-text-light);
    font-size: 0.85rem;
    background: transparent;
    transition: all 0.3s ease;
}

.btn-map:hover {
    border-color: var(--clr-gold);
    color: var(--clr-gold);
}

/* ---- Intro Section (homepage text) ---- */
.intro-section {
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    position: relative;
}

.intro-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
}

.intro-section .container {
    position: relative;
    z-index: 2;
}

/* ---- Contact ---- */
.contact-info-card {
    background: var(--clr-card-bg);
    border-radius: 8px;
    padding: 40px;
    text-align: center;
    height: 100%;
}

.contact-info-card i {
    font-size: 2rem;
    color: var(--clr-gold);
    margin-bottom: 20px;
}

/* ---- Login Page ---- */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--clr-darker);
}

.login-card {
    background: var(--clr-card-bg);
    border: 1px solid rgba(145, 120, 82, 0.2);
    border-radius: 12px;
    padding: 50px 40px;
    width: 100%;
    max-width: 420px;
}

.login-card h1 {
    font-size: 1.5rem;
    text-align: center;
    margin-bottom: 30px;
}

/* ---- Buttons ---- */
.btn-gold {
    background: var(--clr-gold);
    color: var(--clr-dark);
    border: none;
    padding: 12px 35px;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    letter-spacing: 2px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.btn-gold:hover {
    background: #a68a5b;
    color: var(--clr-dark);
}

.btn-outline-gold {
    border: 1px solid var(--clr-gold);
    color: var(--clr-text-light);
    background: transparent;
    padding: 12px 35px;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    letter-spacing: 2px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.btn-outline-gold:hover {
    background: var(--clr-gold);
    color: var(--clr-dark);
}

/* ---- Footer ---- */
.site-footer {
    position: relative;
    background: var(--clr-darker);
    border-top: 1px solid rgba(145, 120, 82, 0.15);
}

.footer-login-link {
    position: absolute;
    bottom: 12px;
    right: 16px;
    color: rgba(255, 255, 255, 0.08);
    font-size: 0.7rem;
    transition: color 0.3s ease;
}

.footer-login-link:hover {
    color: rgba(145, 120, 82, 0.5);
}

.footer-copyright {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    color: var(--clr-text);
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    color: var(--clr-text-light);
    margin: 0 5px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.social-icon:hover {
    border-color: var(--clr-gold);
    color: var(--clr-gold);
}

/* ---- Admin ---- */
.admin-layout {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: 250px;
    background: var(--clr-darker);
    border-right: 1px solid rgba(145, 120, 82, 0.15);
    padding: 20px 0;
    flex-shrink: 0;
}

.admin-sidebar .nav-link {
    font-size: 0.82rem;
    letter-spacing: 1px;
    padding: 0.7rem 1.5rem !important;
}

.admin-sidebar .nav-link::after {
    display: none;
}

.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
    background: rgba(145, 120, 82, 0.1);
}

.admin-main {
    flex: 1;
    padding: 30px;
    background: var(--clr-body-bg);
}

.admin-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(145, 120, 82, 0.15);
}

.admin-card {
    background: var(--clr-card-bg);
    border: 1px solid rgba(145, 120, 82, 0.15);
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 20px;
}

.admin-table {
    color: var(--clr-text);
    --bs-table-bg: transparent;
    --bs-table-color: var(--clr-text);
    --bs-table-border-color: rgba(255, 255, 255, 0.05);
    --bs-table-striped-bg: rgba(255, 255, 255, 0.02);
    --bs-table-hover-bg: rgba(145, 120, 82, 0.08);
}

.admin-table th {
    color: var(--clr-gold);
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: 0.8rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-color: rgba(145, 120, 82, 0.15);
    background: transparent;
}

.admin-table td {
    border-color: rgba(255, 255, 255, 0.05);
    vertical-align: middle;
    background: transparent;
    color: var(--clr-text);
}

.admin-stat {
    text-align: center;
    padding: 20px;
}

.admin-stat .stat-number {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--clr-gold);
}

.admin-stat .stat-label {
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--clr-text);
}

/* ---- Alert ---- */
.alert-dark-custom {
    background: rgba(145, 120, 82, 0.1);
    border: 1px solid var(--clr-gold);
    color: var(--clr-text-light);
    border-radius: 8px;
}

/* ---- Form Controls (dark theme) ---- */
.form-control-dark {
    background: var(--clr-darker);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--clr-text-light);
    padding: 12px 16px;
    border-radius: 6px;
}

.form-control-dark:focus {
    background: var(--clr-darker);
    border-color: var(--clr-gold);
    color: var(--clr-text-light);
    box-shadow: 0 0 0 3px rgba(145, 120, 82, 0.15);
}

.form-control-dark::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

/* Admin dark overrides for Bootstrap */
.admin-layout .text-muted {
    color: rgba(255, 255, 255, 0.5) !important;
}

.admin-layout .form-label {
    color: var(--clr-text);
}

.admin-layout .form-check-label {
    color: var(--clr-text);
}

.admin-layout .form-check-input {
    background-color: var(--clr-darker);
    border-color: rgba(255, 255, 255, 0.15);
}

.admin-layout .form-check-input:checked {
    background-color: var(--clr-gold);
    border-color: var(--clr-gold);
}

.admin-layout small {
    color: rgba(255, 255, 255, 0.4);
}

/* Sort arrows */
.btn-sort {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    padding: 0;
    border: 1px solid rgba(145, 120, 82, 0.3);
    border-radius: 3px;
    background: transparent;
    color: var(--clr-text);
    font-size: 0.7rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-sort:hover {
    border-color: var(--clr-gold);
    color: var(--clr-gold);
}

/* ---- Timeline (Náš příběh) ---- */
.timeline {
    position: relative;
    padding: 30px 0;
    max-width: 750px;
    margin: 0 auto;
}

/* Vertical golden line */
.timeline::before {
    content: '';
    position: absolute;
    left: 28px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, transparent, var(--clr-gold) 3%, var(--clr-gold) 97%, transparent);
}

.timeline-item {
    position: relative;
    padding-left: 72px;
    margin-bottom: 50px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

/* Gold dot */
.timeline-dot {
    position: absolute;
    left: 20px;
    top: 6px;
    width: 18px;
    height: 18px;
    background: var(--clr-gold);
    border: 3px solid var(--clr-body-bg);
    border-radius: 50%;
    z-index: 2;
    box-shadow: 0 0 0 3px rgba(145, 120, 82, 0.3);
}

/* Year badge */
.timeline-year {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 3px;
    color: var(--clr-gold);
    margin-bottom: 14px;
}

/* Content card */
.timeline-content {
    background: var(--clr-card-bg);
    border: 1px solid rgba(145, 120, 82, 0.12);
    border-radius: 10px;
    overflow: hidden;
    transition: border-color 0.3s ease;
}

.timeline-content:hover {
    border-color: rgba(145, 120, 82, 0.4);
}

.timeline-img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    display: block;
}

.timeline-body {
    padding: 28px 30px;
}

.timeline-body h3 {
    font-size: 1.15rem;
    margin-bottom: 4px;
    letter-spacing: 1px;
    color: var(--clr-text-light);
}

.timeline-date {
    font-size: 0.7rem;
    letter-spacing: 2px;
    color: rgba(145, 120, 82, 0.7);
    margin-bottom: 16px;
    display: block;
}

.timeline-body .post-content {
    font-size: 0.88rem;
    color: var(--clr-text);
    line-height: 1.8;
}

.timeline-body .post-content p {
    margin-bottom: 10px;
}

.timeline-body .post-content p:last-child {
    margin-bottom: 0;
}

/* Hide leftover WP inline images in post content */
.timeline-body .post-content img {
    display: none;
}

.timeline-quote {
    margin-top: 16px;
    padding-left: 16px;
    border-left: 2px solid var(--clr-gold);
    font-style: italic;
    color: var(--clr-gold);
    font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 575.98px) {
    .timeline {
        padding: 20px 0;
    }

    .timeline::before {
        left: 18px;
    }

    .timeline-dot {
        left: 10px;
        width: 16px;
        height: 16px;
    }

    .timeline-item {
        padding-left: 50px;
        margin-bottom: 35px;
    }

    .timeline-img {
        height: 180px;
    }

    .timeline-body {
        padding: 20px;
    }
}

/* ---- Quote Section ---- */
.quote-section {
    background-size: cover;
    background-position: center;
    position: relative;
    text-align: center;
    padding: 100px 0;
}

.quote-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
}

.quote-section .container {
    position: relative;
    z-index: 2;
}

.quote-text {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    color: var(--clr-text-light);
    font-style: italic;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.8;
}

/* ---- Responsive ---- */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background: rgba(0, 0, 0, 0.95);
        padding: 60px 20px 20px;
        margin-top: 10px;
        border-radius: 8px;
    }

    .nav-link {
        padding: 0.8rem 0 !important;
        text-align: center;
    }

    .beers-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 575.98px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .section {
        padding: 50px 0;
    }

    .beer-card-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }
}