/* ============================================
   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 (Shoptet-style layout) ---- */
/* Reset: override public site body styles */
body.admin-body {
    font-family: var(--font-body);
    background: #f5f5f5 !important;
    color: #333;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    line-height: 1.5;
}
body.admin-body h1,
body.admin-body h2,
body.admin-body h3,
body.admin-body h4,
body.admin-body h5,
body.admin-body h6 {
    color: #333;
}

/* Top Bar */
.admin-topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 48px;
    background: #111;
    border-bottom: 1px solid #2a2a2a;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1rem;
    z-index: 1001;
}
.admin-topbar-title {
    color: var(--clr-gold);
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 400;
}
.sidebar-toggle {
    color: #ccc !important;
    text-decoration: none;
    font-size: 1.1rem;
}

/* Wrapper */
.admin-wrapper {
    display: flex;
    min-height: 100vh;
    padding-top: 48px;
}

/* Sidebar */
.admin-sidebar {
    position: fixed;
    top: 48px;
    left: 0;
    bottom: 0;
    width: 240px;
    background: #1a1a1a;
    border-right: 1px solid #2a2a2a;
    overflow-y: auto;
    overflow-x: hidden;
    transition: width 0.25s ease;
    z-index: 1000;
}
.admin-sidebar.collapsed {
    width: 60px;
}
.admin-sidebar.collapsed .sidebar-link span,
.admin-sidebar.collapsed .sidebar-section,
.admin-sidebar.collapsed .sidebar-badge,
.admin-sidebar.collapsed .sidebar-logo-img {
    display: none;
}
.admin-sidebar.collapsed .sidebar-logo {
    padding: 0.75rem 0.5rem;
}
.admin-sidebar.collapsed .sidebar-link {
    justify-content: center;
    padding: 0.6rem 0;
}
.admin-sidebar.collapsed .sidebar-link i {
    margin-right: 0;
    font-size: 1.1rem;
}

/* Logo */
.sidebar-logo {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #2a2a2a;
}
.sidebar-logo-img {
    height: 40px;
    opacity: 0.85;
    transition: opacity 0.25s ease;
}
.sidebar-logo-img:hover { opacity: 1; }
.sidebar-logo-text {
    color: var(--clr-gold);
    font-family: var(--font-heading);
    font-size: 1.1rem;
}

/* Nav */
.sidebar-nav {
    padding: 0.5rem 0;
}
.sidebar-section {
    color: var(--clr-gold);
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 1rem 1.25rem 0.4rem;
    margin-top: 0.25rem;
}
.sidebar-link {
    display: flex;
    align-items: center;
    padding: 0.55rem 1.25rem;
    color: #aaa;
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.25s ease;
    border-left: 3px solid transparent;
    gap: 0;
}
.sidebar-link i {
    width: 20px;
    text-align: center;
    margin-right: 0.7rem;
    font-size: 0.85rem;
    flex-shrink: 0;
}
.sidebar-link span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.sidebar-link:hover {
    background: #252525;
    color: #ddd;
}
.sidebar-link.active {
    background: #2a2a2a;
    color: var(--clr-gold);
    border-left-color: var(--clr-gold);
}
.sidebar-badge {
    margin-left: auto;
    background: var(--clr-gold);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 1px 7px;
    border-radius: 10px;
}
.sidebar-badge.warning {
    background: #e67e22;
}
.sidebar-divider {
    border-color: rgba(145,120,82,0.15);
    margin: 0.75rem 1.25rem;
}

/* Content */
.admin-content {
    flex: 1;
    margin-left: 240px;
    transition: margin-left 0.25s ease;
    min-height: calc(100vh - 48px);
}
.sidebar-collapsed .admin-content {
    margin-left: 60px;
}
.admin-content-inner {
    padding: 1.25rem 1.5rem;
}
/* Kill first-child top margins that cause gap */
.admin-content-inner > :first-child {
    margin-top: 0;
}
.admin-content-inner > .admin-card:first-child,
.admin-content-inner > .page-header:first-child,
.admin-content-inner > .alert:first-child,
.admin-content-inner > h1:first-child,
.admin-content-inner > h2:first-child,
.admin-content-inner > h5:first-child,
.admin-content-inner > h6:first-child,
.admin-content-inner > .d-flex:first-child {
    margin-top: 0 !important;
}

/* Admin Cards */
.admin-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 1.25rem;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
    margin-bottom: 20px;
}

/* Stat Cards */
.stat-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 1.25rem;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
    display: flex;
    align-items: center;
    gap: 1rem;
}
.stat-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #fff;
    flex-shrink: 0;
}
.stat-card-icon.gold { background: var(--clr-gold); }
.stat-card-icon.blue { background: #3498db; }
.stat-card-icon.green { background: #27ae60; }
.stat-card-icon.orange { background: #e67e22; }
.stat-card-icon.red { background: #e74c3c; }

.stat-card-value {
    font-size: 1.6rem;
    font-weight: 700;
    color: #333;
    line-height: 1.2;
}
.stat-card-label {
    font-size: 0.8rem;
    color: #888;
}

/* Admin Tables */
.admin-table {
    width: 100%;
    border-collapse: collapse;
}
.admin-table th {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #888;
    border-bottom: 2px solid #e0e0e0;
    padding: 0.6rem 0.75rem;
    text-align: left;
}
.admin-table td {
    padding: 0.75rem;
    border-bottom: 1px solid #e0e0e0;
    font-size: 0.88rem;
    vertical-align: middle;
    color: #333;
}
.admin-table tbody tr:hover,
.admin-body table tbody tr:hover {
    background: #f0ede8 !important;
}
.admin-body table tbody tr:hover td {
    background: #f0ede8 !important;
}

/* Legacy stat support */
.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: #333;
}

/* Status badges */
.status-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.status-new { background: #e3f2fd; color: #1565c0; }
.status-pending_payment { background: #fff3e0; color: #e65100; }
.status-paid { background: #e8f5e9; color: #2e7d32; }
.status-processing { background: #f3e5f5; color: #7b1fa2; }
.status-shipped { background: #e0f2f1; color: #00695c; }
.status-delivered { background: #e8f5e9; color: #1b5e20; }
.status-cancelled { background: #fce4ec; color: #c62828; }

/* Page Header */
.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 0.75rem;
}
.page-header h1 {
    font-size: 1.4rem;
    color: #333;
    margin: 0;
}

/* ---- Alert ---- */
.alert-dark-custom {
    background: #e8f5e9;
    border: 1px solid #81c784;
    color: #2e7d32;
    border-radius: 8px;
}

/* ---- Form Controls ---- */
.form-control-dark,
.admin-body .form-control,
.admin-body .form-select {
    background: #fff;
    border: 1px solid #d0d0d0;
    color: #333;
    padding: 10px 14px;
    border-radius: 6px;
}

.form-control-dark:focus,
.admin-body .form-control:focus,
.admin-body .form-select:focus {
    background: #fff;
    border-color: var(--clr-gold);
    color: #333;
    box-shadow: 0 0 0 3px rgba(145, 120, 82, 0.15);
}

.form-control-dark::placeholder {
    color: #aaa;
}

.admin-body .form-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #333;
}

.admin-body .form-check-input:checked {
    background-color: var(--clr-gold);
    border-color: var(--clr-gold);
}

.admin-body .text-muted {
    color: #888 !important;
}

.admin-body small {
    color: #888;
}

/* Buttons */
.btn-gold {
    background: var(--clr-gold);
    color: #fff;
    border: none;
}
.btn-gold:hover {
    background: #b09a72;
    color: #fff;
}
.btn-outline-gold {
    color: var(--clr-gold);
    border: 1px solid var(--clr-gold);
    background: transparent;
}
.btn-outline-gold:hover {
    background: var(--clr-gold);
    color: #fff;
}

/* Sort arrows */
.btn-sort {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    padding: 0;
    border: 1px solid #d0d0d0;
    border-radius: 3px;
    background: transparent;
    color: #666;
    font-size: 0.7rem;
    cursor: pointer;
    transition: all 0.2s ease;
}
.btn-sort:hover {
    border-color: var(--clr-gold);
    color: var(--clr-gold);
}

/* Theme toggle button */
.theme-toggle {
    color: var(--clr-gold) !important;
    font-size: 0.9rem;
}
.theme-toggle:hover {
    color: #b09a72 !important;
}

/* ---- Dark Theme Override (Admin) ---- */
[data-theme="dark"] body.admin-body {
    background: #0d0d0d !important;
    color: #ccc;
}
[data-theme="dark"] .admin-body h1,
[data-theme="dark"] .admin-body h2,
[data-theme="dark"] .admin-body h3,
[data-theme="dark"] .admin-body h4,
[data-theme="dark"] .admin-body h5,
[data-theme="dark"] .admin-body h6 {
    color: #eee;
}
[data-theme="dark"] .admin-content { color: #ccc; }
[data-theme="dark"] .admin-card {
    background: #1e1e1e;
    border-color: rgba(145,120,82,0.15);
    color: #ccc;
}
[data-theme="dark"] .stat-card {
    background: #1e1e1e;
    border-color: rgba(145,120,82,0.15);
}
[data-theme="dark"] .stat-card-value { color: var(--clr-gold); }
[data-theme="dark"] .stat-card-label { color: #888; }

/* Dark: tables - override Bootstrap completely */
[data-theme="dark"] .admin-body table {
    --bs-table-bg: transparent !important;
    --bs-table-color: #ccc !important;
    --bs-table-border-color: rgba(255,255,255,0.05) !important;
    --bs-table-striped-bg: rgba(255,255,255,0.02) !important;
    --bs-table-hover-bg: rgba(145,120,82,0.12) !important;
    --bs-table-hover-color: #eee !important;
    color: #ccc !important;
    background: transparent !important;
}
[data-theme="dark"] .admin-body table th {
    color: var(--clr-gold) !important;
    border-bottom-color: rgba(145,120,82,0.2) !important;
    background: transparent !important;
}
[data-theme="dark"] .admin-body table td {
    border-color: rgba(255,255,255,0.05) !important;
    color: #ccc !important;
    background: transparent !important;
}
[data-theme="dark"] .admin-body table tbody tr:hover,
[data-theme="dark"] .admin-body table tbody tr:hover td,
[data-theme="dark"] .admin-body .table-hover tbody tr:hover,
[data-theme="dark"] .admin-body .table-hover tbody tr:hover > td,
[data-theme="dark"] .admin-body .table tbody tr:hover > * {
    background: rgba(145,120,82,0.12) !important;
    --bs-table-hover-bg: rgba(145,120,82,0.12) !important;
    color: #eee !important;
    --bs-table-hover-color: #eee !important;
}

/* Dark: page header */
[data-theme="dark"] .page-header h1 { color: #fff; }

/* Dark: forms */
[data-theme="dark"] .form-control-dark,
[data-theme="dark"] .admin-body .form-control,
[data-theme="dark"] .admin-body .form-select {
    background: #111 !important;
    border-color: rgba(255,255,255,0.1) !important;
    color: #eee !important;
}
[data-theme="dark"] .form-control-dark:focus,
[data-theme="dark"] .admin-body .form-control:focus,
[data-theme="dark"] .admin-body .form-select:focus {
    background: #111 !important;
    border-color: var(--clr-gold) !important;
    color: #eee !important;
}
[data-theme="dark"] .form-control-dark::placeholder,
[data-theme="dark"] .admin-body .form-control::placeholder {
    color: rgba(255,255,255,0.3) !important;
}
[data-theme="dark"] .admin-body .form-label { color: #ccc; }
[data-theme="dark"] .admin-body .form-check-label { color: #ccc; }
[data-theme="dark"] .admin-body .form-check-input {
    background-color: #111;
    border-color: rgba(255,255,255,0.15);
}
[data-theme="dark"] .admin-body .form-check-input:checked {
    background-color: var(--clr-gold);
    border-color: var(--clr-gold);
}

/* Dark: text and misc */
[data-theme="dark"] .admin-body .text-muted { color: rgba(255,255,255,0.5) !important; }
[data-theme="dark"] .admin-body small { color: rgba(255,255,255,0.4); }
[data-theme="dark"] .admin-body p { color: #ccc; }
[data-theme="dark"] .admin-body a:not(.btn):not(.sidebar-link):not(.nav-link) { color: var(--clr-gold); }

/* Dark: alerts */
[data-theme="dark"] .alert-dark-custom {
    background: rgba(145,120,82,0.1);
    border-color: var(--clr-gold);
    color: #eee;
}
[data-theme="dark"] .alert-danger {
    background: rgba(220,53,69,0.15);
    border-color: rgba(220,53,69,0.3);
    color: #f5a5a5;
}
[data-theme="dark"] .btn-close { filter: invert(1); }

/* Dark: badges */
[data-theme="dark"] .badge.bg-secondary {
    background-color: #333 !important;
    color: #ccc !important;
}
[data-theme="dark"] .badge.bg-success {
    background-color: rgba(40,167,69,0.2) !important;
    color: #6dd690 !important;
}
[data-theme="dark"] .badge.bg-warning {
    background-color: rgba(255,193,7,0.2) !important;
    color: #ffd754 !important;
}
[data-theme="dark"] .badge.bg-danger {
    background-color: rgba(220,53,69,0.2) !important;
    color: #f5a5a5 !important;
}

/* Dark: buttons */
[data-theme="dark"] .btn-outline-secondary {
    border-color: rgba(255,255,255,0.2);
    color: #ccc;
}
[data-theme="dark"] .btn-outline-secondary:hover {
    background: rgba(255,255,255,0.1);
    color: #fff;
}

/* Dark: cards and components */
[data-theme="dark"] .wizard-step {
    background: rgba(255,255,255,0.05);
    color: #ccc;
}
[data-theme="dark"] .tank-select-card {
    background: transparent;
    border-color: rgba(145,120,82,0.2);
    color: #ccc;
}
[data-theme="dark"] .batch-main-row {
    border-top-color: rgba(145,120,82,0.3) !important;
}
[data-theme="dark"] .btn-sort {
    border-color: rgba(145,120,82,0.3);
    color: #ccc;
}
[data-theme="dark"] .tank-card {
    background: #1e1e1e;
    border-color: rgba(145,120,82,0.15);
    color: #ccc;
}

/* Responsive admin */
@media (max-width: 992px) {
    .admin-sidebar {
        transform: translateX(-100%);
        transition: transform 0.25s ease;
    }
    .admin-sidebar.open {
        transform: translateX(0);
    }
    .admin-content {
        margin-left: 0 !important;
    }
}
@media (max-width: 576px) {
    .admin-content-inner {
        padding: 1rem 0.75rem;
    }
    .page-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ---- Batch grouping ---- */
.batch-main-row {
    border-top: 2px solid #e0e0e0 !important;
}

.batch-main-row td:first-child {
    font-weight: 700;
}

.batch-sub-row td:first-child {
    padding-left: 1.2rem !important;
    font-size: 0.85rem;
}

.batch-toggle {
    cursor: pointer;
    user-select: none;
}

.batch-toggle .fa-chevron-right,
.batch-toggle .fa-chevron-down {
    font-size: 0.6rem;
    margin-right: 6px;
    transition: transform 0.15s ease;
    width: 10px;
    display: inline-block;
}

.batch-sub-row.collapsed {
    display: none;
}

/* ---- Batch Wizard ---- */
.wizard-step {
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    background: #eee;
    color: #555;
    transition: all 0.2s;
}

.wizard-step.active {
    background: var(--clr-gold);
    color: #fff;
    font-weight: 600;
}

/* ---- Tank Select Cards ---- */
.tank-select-card {
    display: block;
    text-align: center;
    padding: 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    background: #fff;
}

.tank-select-card:hover {
    border-color: var(--clr-gold);
    background: rgba(145, 120, 82, 0.06);
}

.tank-select-card input[type="radio"] {
    display: none;
}

.tank-select-card:has(input:checked) {
    border-color: var(--clr-gold);
    background: rgba(145, 120, 82, 0.1);
    box-shadow: 0 0 0 2px var(--clr-gold);
}

.tank-select-card.occupied {
    opacity: 0.5;
    cursor: not-allowed;
}

.tank-select-card.occupied:hover {
    border-color: #e0e0e0;
    background: #fff;
}

/* ---- Tank Card Visualization ---- */
.tank-card {
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.tank-card:hover {
    border-color: rgba(145, 120, 82, 0.4);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}
.tank-visual svg {
    max-width: 120px;
}
.tank-icon-btn {
    display:inline-flex; align-items:center; justify-content:center;
    width:24px; height:24px; border-radius:4px; font-size:0.7rem;
    color:var(--clr-gold); background:transparent; border:1px solid rgba(145,120,82,0.25);
    cursor:pointer; text-decoration:none; padding:0; line-height:1;
}
.tank-icon-btn:hover {
    background:rgba(145,120,82,0.15); color:var(--clr-gold); border-color:var(--clr-gold);
}

/* ---- Hop replacement row ---- */
.replace-row td {
    border-top: none !important;
    padding-top: 0 !important;
}

/* Badge support in admin */
.badge.bg-secondary {
    background-color: #e8e8e8 !important;
    color: #555 !important;
}

/* ---- 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;
    }
}

td.tax-highlight { background: #B4F8C8 !important; color: #000 !important; font-weight: bold; }
[data-theme="dark"] body.admin-body table td.tax-highlight { background: #1b5e20 !important; color: #fff !important; }