/*
Theme Name: BierBath Blog
Theme URI: 
Author: Antigravity
Author URI: 
Description: A dark-themed blog for BierBath, focusing on articles with a grid layout.
Version: 1.0.12
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: bierbath-blog
*/

/* CSS Reset and Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

:root {
    --primary-color: #fcc200;
    /* Gold/Yellow from image */
    --bg-dark: #000000;
    --bg-card: #1a1a1a;
    --text-light: #ffffff;
    --text-muted: #cccccc;
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-light);
    font-family: var(--font-family);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Layout */
.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Header */
header {
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    padding: 25px 0;
    position: sticky;
    top: 0;
    z-index: 2000;
    border-bottom: 1px solid #111;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Target Logo correctly within site-branding */
.site-branding img,
.custom-logo {
    max-height: 80px;
    width: auto;
    display: block;
}

@media (max-width: 991px) {

    .site-branding img,
    .custom-logo {
        max-height: 70px !important;
        /* Force small size on mobile */
    }
}

.nav-links {
    display: flex;
    gap: 30px;
    list-style: none;
}

.nav-links a {
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.btn-book {
    background-color: var(--primary-color);
    color: #000;
    padding: 12px 28px;
    font-weight: 900;
    border-radius: 4px;
    text-transform: uppercase;
    font-size: 14px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-book:hover {
    background-color: #e5b000;
    transform: scale(1.05);
}

/* Hero Section */
.hero {
    padding: 140px 0;
    text-align: center;
    background: radial-gradient(circle at center, #222 0%, #000 100%);
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(to top, #000, transparent);
}

.hero h1 {
    font-size: 64px;
    margin-bottom: 20px;
    font-weight: 900;
}

.hero p {
    font-size: 20px;
    color: var(--text-muted);
    max-width: 800px;
    margin: 0 auto;
}

/* Post Grid Layout */
.post-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 60px;
}

/* Post Card Styles */
.post-card {
    background-color: #1a1a1a;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.post-image {
    position: relative;
    overflow: hidden;
    height: 250px;
    /* Fixed height for consistency */
}

.post-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.post-card:hover .post-thumb {
    transform: scale(1.1);
}

.post-date-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(0, 0, 0, 0.85);
    color: #fff;
    padding: 10px;
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.1;
    z-index: 10;
    min-width: 60px;
}

.post-date-badge .day-name {
    font-size: 10px;
    font-weight: 700;
    opacity: 0.8;
}

.post-date-badge .day-num {
    font-size: 24px;
    font-weight: 900;
    color: #fff;
}

.post-date-badge .month {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.post-content {
    padding: 25px;
}

.post-title {
    font-size: 18px;
    /* Reduced from 24px */
    font-weight: 900;
    margin: 0 0 10px;
    color: #fff;
    line-height: 1.2;
}

.btn-details {
    display: block;
    width: 100%;
    background-color: #000;
    color: #fff;
    text-align: center;
    padding: 12px;
    border-radius: 6px;
    font-weight: 900;
    text-transform: uppercase;
    margin-top: 20px;
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

.btn-details:hover {
    background-color: var(--primary-color);
    color: #000;
    border-color: var(--primary-color);
}

/* Booking Banner */
.booking-banner {
    background-color: #0a0a0a !important;
    border-color: #1a1a1a !important;
}

.booking-banner h3 {
    font-size: 24px;
    font-weight: 900;
}

/* Tab Filters */
.tab {
    transition: all 0.3s ease;
}

.tab:not(.active):hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 10001;
}

.hamburger {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--primary-color);
    position: relative;
    transition: all 0.3s ease;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background: var(--primary-color);
    left: 0;
    transition: all 0.3s ease;
}

.hamburger::before {
    top: -8px;
}

.hamburger::after {
    bottom: -8px;
}

.menu-toggle.is-active .hamburger {
    background: transparent;
}

.menu-toggle.is-active .hamburger::before {
    transform: rotate(45deg);
    top: 0;
}

.menu-toggle.is-active .hamburger::after {
    transform: rotate(-45deg);
    bottom: 0;
}

/* Footer */
footer {
    background-color: #000;
    padding: 80px 0 40px;
    border-top: 1px solid #222;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
}

.footer-col h4 {
    color: var(--primary-color);
    margin-bottom: 25px;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: var(--text-muted);
}

.footer-col ul li a:hover {
    color: var(--text-light);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.footer-bottom {
    margin-top: 50px;
    text-align: center;
    color: #555;
    font-size: 14px;
}

/* Media Queries - Desktop Centered Nav */
@media (min-width: 992px) {
    .main-navigation {
        position: fixed;
        top: 28px;
        left: 50%;
        transform: translateX(-50%);
        z-index: 2001;
        transition: none;
    }
}

/* Tablet and Mobile Navigation */
@media (max-width: 991px) {
    .menu-toggle {
        display: block;
        position: relative;
        /* Changed from fixed to keep it inside the high-indexed header */
        z-index: 2000002;
    }

    .header-actions {
        display: none !important;
        /* Forces it to hide on mobile */
    }

    /* Elevate header when menu is open */
    header {
        z-index: 2000001 !important;
    }

    .main-navigation {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: #000 !important;
        /* Ensure solid black */
        display: flex;
        align-items: center;
        justify-content: center;
        transition: right 0.4s cubic-bezier(0.77, 0.2, 0.05, 1.0);
        z-index: 2000000 !important;
        /* Added !important */
        transform: none;
        /* Just below header elements */
    }

    .main-navigation.is-active {
        right: 0;
    }

    .nav-links {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }

    .nav-links a {
        font-size: 28px;
        font-weight: 900;
    }

    body.menu-open {
        overflow: hidden;
        height: 100vh;
    }

    /* NUCLEAR OPTION: Hide content when menu is open to prevent ANY overlap */
    body.menu-open #primary,
    body.menu-open #colophon {
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
    }

    /* Footer Mobile - Reorganized to Single Column */
    .footer-grid {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 50px;
    }

    .footer-col {
        width: 100%;
        max-width: 400px;
    }

    /* Merge all link lists into a tighter vertical stack on mobile if needed, 
       but currently they will just stack one under another. */
}

@media (max-width: 767px) {
    .container {
        padding: 0 20px;
    }

    .menu-toggle {
        right: 20px;
    }

    .hero h1 {
        font-size: 36px;
    }

    .hero p {
        font-size: 16px;
    }

    .booking-banner .container {
        flex-direction: column;
        text-align: center !important;
        gap: 20px;
    }

    .post-grid {
        grid-template-columns: 1fr;
    }
}

/* Single Post Styles */
.single-post-title {
    font-size: 50px;
    font-weight: 900;
    margin-bottom: 20px;
}

.featured-image-container {
    max-width: 1000px;
    margin: -50px auto 50px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    border-radius: 8px;
    overflow: hidden;
}

.single-featured-image {
    width: 100%;
    height: auto;
    /* Essential for maintaining aspect ratio */
    display: block;
}

@media (max-width: 767px) {
    .single-post-title {
        font-size: 32px;
        /* Smaller title on mobile */
    }

    .featured-image-container {
        margin: -20px 20px 30px;
        /* Less negative margin on mobile, with side padding */
        width: auto;
    }
}

/* Post Navigation Styles */
.post-navigation .nav-links {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 40px;
}

.post-navigation a {
    text-decoration: none;
    display: block;
}

.post-navigation .nav-subtitle {
    display: block;
    font-size: 10px;
    /* Small label */
    text-transform: uppercase;
    color: #666;
    margin-bottom: 5px;
    letter-spacing: 1px;
}

.post-navigation .nav-title {
    font-size: 14px;
    /* Smaller title */
    font-weight: 700;
    color: #fff;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.post-navigation a:hover .nav-title {
    color: var(--primary-color);
}

/* Article Content Typography */
.entry-content {
    max-width: 800px;
    margin: 0 auto;
    color: #ddd;
    /* Light gray for easy reading */
    font-size: 18px;
    line-height: 1.8;
    font-family: 'Inter', sans-serif;
    /* Explicitly use Inter */
}

.entry-content p {
    margin-bottom: 25px;
    /* Spacing between paragraphs */
}

.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
    color: #fff;
    font-weight: 900;
    margin-top: 40px;
    /* Space above headings */
    margin-bottom: 20px;
    /* Space below headings */
    line-height: 1.3;
}

.entry-content h2 {
    font-size: 32px;
    border-bottom: 2px solid var(--primary-color);
    /* Add distinction to H2 */
    display: inline-block;
    padding-bottom: 5px;
}

.entry-content h3 {
    font-size: 26px;
    color: var(--primary-color);
    /* Gold color for H3 */
}

.entry-content h4 {
    font-size: 22px;
}

.entry-content ul,
.entry-content ol {
    margin-bottom: 25px;
    padding-left: 20px;
}

.entry-content li {
    margin-bottom: 10px;
}

.entry-content strong,
.entry-content b {
    color: #fff;
    font-weight: 700;
}

.entry-content blockquote {
    border-left: 4px solid var(--primary-color);
    margin: 30px 0;
    padding: 10px 20px;
    background: #111;
    font-style: italic;
    color: #fff;
}

@media (max-width: 767px) {
    .entry-content {
        font-size: 16px;
        /* Slightly smaller text on mobile */
        padding: 0 10px;
        /* Ensure Side Padding */
    }

    .entry-content h2 {
        font-size: 26px;
    }

    .entry-content h3 {
        font-size: 22px;
    }
}

/* Social Share Buttons */
.share-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    /* Wraps nicely on mobile */
}

.btn-share {
    display: inline-block;
    padding: 10px 20px;
    background: #111;
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    border-radius: 4px;
    border: 1px solid #333;
    transition: all 0.3s ease;
}

.btn-share:hover {
    background: var(--primary-color);
    color: #000;
    border-color: var(--primary-color);
    transform: translateY(-2px);
}