/* ============================================
   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;
}

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;
    /* Black background as per screenshot */
    padding: 0;
    transition: all 0.4s ease;
    z-index: 1050;
    border-bottom: 1px solid rgba(145, 120, 82, 0.2);
    min-height: 80px;
}

.navbar.scrolled {
    background: rgba(0, 0, 0, 0.95);
    padding: 0;
}

/* Nav Links */
.nav-link {
    font-family: var(--font-heading);
    font-size: 0.82rem;
    font-weight: 700;
    /* Bolder as in screenshot */
    letter-spacing: 2px;
    color: #917852 !important;
    /* Gold color by default? or text-light? transform to gold */
    text-transform: uppercase;
    padding: 1rem 1.5rem !important;
    position: relative;
    transition: color 0.3s ease;
}

/* Override colors to match screenshot (looks like Gold/Brownish text) */
.nav-link {
    color: #ae946d !important;
}

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

/* Center Brand */
.brand-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    top: 25px;
    /* Push logo down to overlap */
    background: #000;
    /* box behind logo if needed, or transparent */
    padding: 10px 20px 20px;
    border-radius: 0 0 50% 50%;
    /* Rounded bottom effect if desired, or just rect */
    transition: all 0.3s ease;
}

.logo-img-center {
    height: 60px;
    width: auto;
    margin-bottom: 5px;
    transition: height 0.3s ease;
}

.brand-text-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1;
}

.brand-title {
    font-family: 'Roboto Slab', serif;
    /* Assuming distinctive font */
    font-weight: 700;
    font-size: 1.4rem;
    letter-spacing: 2px;
    color: #ffffff;
    text-transform: uppercase;
}

.brand-subtitle {
    font-family: var(--font-body);
    font-size: 0.55rem;
    letter-spacing: 3px;
    color: #917852;
    text-transform: uppercase;
    margin-top: 2px;
}

.navbar.scrolled .brand-center {
    top: 5px;
    padding-bottom: 5px;
}

.navbar.scrolled .logo-img-center {
    height: 40px;
}

.navbar.scrolled .brand-title {
    font-size: 1.1rem;
}

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

/* ---- Hero / Slider ---- */
.hero-section {
    position: relative;
    width: 100%;
    /* Default: smaller header for subpages */
    height: auto;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    margin-top: -80px;
    padding-top: 100px;
    padding-bottom: 60px;
}

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

/* Ensure body doesn't have padding if we want transparent nav effect, 
   but since nav is black, we might want to start hero AFTER nav?
   Actually screenshot implies nav is black bar on top. 
   Let's keep standard flow.
*/
.hero-section {
    margin-top: 0;
    padding-top: 0;
    /* Adjust height to account for navbar if needed, or full screen */
    height: calc(100vh - 80px);
    top: 80px;
    /* Offset for fixed nav */
}

/* Wait, fixed-top navbar takes content out of flow. 
   So we need padding on body or margin on first section. */
body {
    padding-top: 80px;
    /* Height of navbar */
}

.hero-section {
    top: 0;
    height: calc(100vh - 80px);
}

.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;
}

/* ---- 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;
}

.beer-card-image img {
    max-height: 220px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.4));
    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 {
    background: var(--clr-darker);
    border-top: 1px solid rgba(145, 120, 82, 0.15);
}

.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);
}

.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);
}

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

.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);
}

/* ---- 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: 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;
    }
}