/*
Theme Name: Sperky z Bazaru - Elegant
Theme URI: https://sperky.zabazar.cz
Author: Miroslav Zak
Description: Luxusní elegantní theme pro sperky.zabazar.cz - zastavárna a bazar šperků ve Zlíně.
Version: 1.0
Text Domain: sperky-theme
*/

/* ============================================
   RESET & BASE
   ============================================ */

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-bg: #0d0d0d;
    --color-bg-alt: #1a1a1a;
    --color-card: #222222;
    --color-card-hover: #2a2a2a;
    --color-gold: #c9a84c;
    --color-gold-light: #d4af37;
    --color-gold-dark: #a8893d;
    --color-text: #f5f0e8;
    --color-text-muted: #8a8272;
    --color-text-dim: #5a5549;
    --color-white: #ffffff;
    --color-border: #333333;
    --color-border-gold: rgba(201, 168, 76, 0.3);

    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', -apple-system, sans-serif;

    --container: 1200px;
    --gap: 2rem;
    --radius: 4px;
    --radius-lg: 8px;

    --header-height: 80px;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    color: var(--color-text);
    background-color: var(--color-bg);
}

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

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

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 500;
    line-height: 1.3;
    color: var(--color-white);
}

h1 { font-size: 2.8rem; }
h2 { font-size: 2.2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.2rem; }

p {
    margin-bottom: 1rem;
}

ul, ol {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

/* ============================================
   LAYOUT
   ============================================ */

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--gap);
}

.content-area {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 3rem;
    padding: 3rem 0;
}

.content-area--full {
    grid-template-columns: 1fr;
}

/* ============================================
   HEADER
   ============================================ */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(13, 13, 13, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--color-border-gold);
    height: var(--header-height);
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.site-branding {
    display: flex;
    flex-direction: column;
}

.site-branding a {
    text-decoration: none;
}

.site-title {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--color-gold);
    letter-spacing: 0.02em;
    line-height: 1.2;
    margin: 0;
}

.site-tagline {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-top: 2px;
}

/* Navigation */
.main-nav ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0.15rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.main-nav a {
    display: block;
    padding: 0.4rem 0.6rem;
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--color-text-muted);
    letter-spacing: 0.02em;
    transition: color 0.3s ease, background 0.3s ease;
    border-radius: var(--radius);
}

.main-nav a:hover,
.main-nav .current-menu-item a,
.main-nav .current_page_item a {
    color: var(--color-gold);
    background: rgba(201, 168, 76, 0.08);
}

/* Hamburger */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    flex-direction: column;
    gap: 5px;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-gold);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ============================================
   HERO (Homepage)
   ============================================ */

.hero {
    position: relative;
    padding: 8rem 0 6rem;
    text-align: center;
    background: linear-gradient(180deg, var(--color-bg) 0%, var(--color-bg-alt) 100%);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(201, 168, 76, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.hero__label {
    display: inline-block;
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-gold);
    margin-bottom: 1.5rem;
    padding: 0.4rem 1.2rem;
    border: 1px solid var(--color-border-gold);
    border-radius: 2rem;
}

.hero__title {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 500;
    color: var(--color-white);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero__title em {
    color: var(--color-gold);
    font-style: italic;
}

.hero__desc {
    font-size: 1.15rem;
    color: var(--color-text-muted);
    max-width: 600px;
    margin: 0 auto 2.5rem;
    line-height: 1.8;
}

.hero__actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
    display: inline-block;
    padding: 0.85rem 2rem;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    border: none;
}

.btn--primary {
    background: var(--color-gold);
    color: var(--color-bg);
}

.btn--primary:hover {
    background: var(--color-gold-light);
    color: var(--color-bg);
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(201, 168, 76, 0.3);
}

.btn--outline {
    background: transparent;
    color: var(--color-gold);
    border: 1px solid var(--color-border-gold);
}

.btn--outline:hover {
    background: rgba(201, 168, 76, 0.1);
    border-color: var(--color-gold);
    color: var(--color-gold-light);
}

/* ============================================
   SECTIONS
   ============================================ */

.section {
    padding: 5rem 0;
}

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

.section__label {
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-gold);
    margin-bottom: 0.75rem;
}

.section__title {
    font-family: var(--font-heading);
    font-size: 2.4rem;
    color: var(--color-white);
    margin-bottom: 1rem;
}

.section__desc {
    color: var(--color-text-muted);
    font-size: 1.05rem;
    max-width: 600px;
    margin-bottom: 3rem;
}

.section__header {
    margin-bottom: 3rem;
}

.section__header--center {
    text-align: center;
}

.section__header--center .section__desc {
    margin-left: auto;
    margin-right: auto;
}

/* ============================================
   CATEGORIES GRID (Homepage)
   ============================================ */

.categories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.category-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    transition: all 0.3s ease;
    text-decoration: none;
}

.category-card:hover {
    background: var(--color-card-hover);
    border-color: var(--color-border-gold);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.category-card__icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--color-gold);
    background: rgba(201, 168, 76, 0.1);
    border-radius: var(--radius);
}

.category-card__name {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--color-white);
}

.category-card__count {
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

/* ============================================
   POST CARDS (Archive grid)
   ============================================ */

.posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.post-card {
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.3s ease;
}

.post-card:hover {
    border-color: var(--color-border-gold);
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.post-card__image {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
    background: var(--color-bg-alt);
}

.post-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.post-card:hover .post-card__image img {
    transform: scale(1.05);
}

.post-card__category {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.25rem 0.75rem;
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-gold);
    background: rgba(13, 13, 13, 0.85);
    border: 1px solid var(--color-border-gold);
    border-radius: 2rem;
}

.post-card__body {
    padding: 1.5rem;
}

.post-card__title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    color: var(--color-white);
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.post-card__title a {
    color: inherit;
    text-decoration: none;
}

.post-card__title a:hover {
    color: var(--color-gold);
}

.post-card__excerpt {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.post-card__meta {
    font-size: 0.8rem;
    color: var(--color-text-dim);
}

/* ============================================
   ADVANTAGES (Homepage)
   ============================================ */

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.advantage {
    text-align: center;
    padding: 2.5rem 1.5rem;
}

.advantage__icon {
    font-size: 2.5rem;
    color: var(--color-gold);
    margin-bottom: 1.5rem;
}

.advantage__title {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--color-white);
    margin-bottom: 0.75rem;
}

.advantage__desc {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    line-height: 1.7;
}

/* ============================================
   CTA BANNER
   ============================================ */

.cta-banner {
    text-align: center;
    padding: 5rem 2rem;
    background: linear-gradient(135deg, rgba(201, 168, 76, 0.08) 0%, rgba(201, 168, 76, 0.02) 100%);
    border-top: 1px solid var(--color-border-gold);
    border-bottom: 1px solid var(--color-border-gold);
}

.cta-banner__title {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--color-white);
    margin-bottom: 1rem;
}

.cta-banner__desc {
    color: var(--color-text-muted);
    font-size: 1.05rem;
    margin-bottom: 2rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* ============================================
   SINGLE POST
   ============================================ */

.single-post__header {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--color-border);
}

.single-post__category {
    display: inline-block;
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-gold);
    margin-bottom: 1rem;
}

.single-post__title {
    font-size: 2.4rem;
    margin-bottom: 1rem;
}

.single-post__meta {
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.single-post__content {
    font-size: 1.05rem;
    line-height: 1.8;
}

.single-post__content h2 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.single-post__content h3 {
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.single-post__content p {
    margin-bottom: 1.25rem;
}

.single-post__content img {
    border-radius: var(--radius-lg);
    margin: 2rem 0;
}

.single-post__content blockquote {
    border-left: 3px solid var(--color-gold);
    padding: 1rem 1.5rem;
    margin: 2rem 0;
    background: var(--color-card);
    border-radius: 0 var(--radius) var(--radius) 0;
    font-style: italic;
    color: var(--color-text-muted);
}

.single-post__content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
}

.single-post__content th,
.single-post__content td {
    padding: 0.75rem 1rem;
    border: 1px solid var(--color-border);
    text-align: left;
}

.single-post__content th {
    background: var(--color-card);
    color: var(--color-gold);
    font-weight: 500;
}

/* Post navigation */
.post-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--color-border);
}

.post-navigation a {
    display: block;
    padding: 1.25rem;
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    transition: border-color 0.3s ease;
}

.post-navigation a:hover {
    border-color: var(--color-border-gold);
}

.post-navigation__label {
    display: block;
    font-size: 0.75rem;
    color: var(--color-text-muted);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.post-navigation__title {
    font-family: var(--font-heading);
    font-size: 1rem;
    color: var(--color-white);
}

.post-navigation .next {
    text-align: right;
}

/* ============================================
   SIDEBAR
   ============================================ */

.sidebar .widget {
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.sidebar .widget-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--color-gold);
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--color-border);
}

.sidebar .widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar .widget ul li {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(51, 51, 51, 0.5);
}

.sidebar .widget ul li:last-child {
    border-bottom: none;
}

.sidebar .widget ul li a {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    transition: color 0.3s ease;
}

.sidebar .widget ul li a:hover {
    color: var(--color-gold);
}

/* Contact widget */
.widget-contact {
    text-align: center;
}

.widget-contact__phone {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: var(--color-gold);
    margin: 1rem 0;
}

.widget-contact__hours {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    line-height: 1.8;
}

/* ============================================
   BREADCRUMB
   ============================================ */

.breadcrumb {
    padding: 1.25rem 0;
    font-size: 0.85rem;
    color: var(--color-text-dim);
    border-bottom: 1px solid var(--color-border);
    margin-bottom: 0;
}

.breadcrumb a {
    color: var(--color-text-muted);
}

.breadcrumb a:hover {
    color: var(--color-gold);
}

.breadcrumb .separator {
    margin: 0 0.5rem;
    color: var(--color-text-dim);
}

/* ============================================
   PAGINATION
   ============================================ */

.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--color-border);
}

.pagination .page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 0.75rem;
    font-size: 0.9rem;
    color: var(--color-text-muted);
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    transition: all 0.3s ease;
}

.pagination .page-numbers:hover {
    border-color: var(--color-border-gold);
    color: var(--color-gold);
}

.pagination .page-numbers.current {
    background: var(--color-gold);
    color: var(--color-bg);
    border-color: var(--color-gold);
    font-weight: 600;
}

/* ============================================
   PAGE TEMPLATE
   ============================================ */

.page-header {
    padding: 4rem 0 2rem;
    text-align: center;
    background: var(--color-bg-alt);
    border-bottom: 1px solid var(--color-border);
}

.page-header__title {
    font-size: 2.6rem;
    margin-bottom: 0.75rem;
}

.page-content {
    font-size: 1.05rem;
    line-height: 1.8;
}

.page-content h2 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.page-content h3 {
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.page-content img {
    border-radius: var(--radius-lg);
    margin: 1.5rem 0;
}

/* ============================================
   FOOTER
   ============================================ */

.site-footer {
    background: var(--color-bg-alt);
    border-top: 1px solid var(--color-border-gold);
    padding: 4rem 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer__heading {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--color-gold);
    margin-bottom: 1.25rem;
}

.footer__text {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    line-height: 1.8;
}

.footer__brand {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: var(--color-gold);
    margin-bottom: 1rem;
}

.footer__links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer__links li {
    margin-bottom: 0.5rem;
}

.footer__links a {
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.footer__links a:hover {
    color: var(--color-gold);
}

.footer__contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.footer__contact-item a {
    color: var(--color-text-muted);
}

.footer__contact-item a:hover {
    color: var(--color-gold);
}

.footer-bottom {
    padding: 1.5rem 0;
    border-top: 1px solid var(--color-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: var(--color-text-dim);
}

/* ============================================
   CONTACT FORM 7 STYLING
   ============================================ */

.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 input[type="url"],
.wpcf7 textarea,
.wpcf7 select {
    width: 100%;
    padding: 0.85rem 1rem;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--color-text);
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    transition: border-color 0.3s ease;
    outline: none;
}

.wpcf7 input:focus,
.wpcf7 textarea:focus,
.wpcf7 select:focus {
    border-color: var(--color-gold);
    box-shadow: 0 0 0 2px rgba(201, 168, 76, 0.15);
}

.wpcf7 input[type="submit"] {
    display: inline-block;
    padding: 0.85rem 2.5rem;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-bg);
    background: var(--color-gold);
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.3s ease;
}

.wpcf7 input[type="submit"]:hover {
    background: var(--color-gold-light);
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(201, 168, 76, 0.3);
}

.wpcf7 label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.wpcf7-form p {
    margin-bottom: 1.25rem;
}

/* ============================================
   NEXTGEN GALLERY OVERRIDES
   ============================================ */

.ngg-galleryoverview {
    margin: 2rem 0 !important;
}

.ngg-gallery-thumbnail-box {
    border: 1px solid var(--color-border) !important;
    border-radius: var(--radius) !important;
    overflow: hidden;
    transition: border-color 0.3s ease, transform 0.3s ease;
}

.ngg-gallery-thumbnail-box:hover {
    border-color: var(--color-border-gold) !important;
    transform: translateY(-2px);
}

.ngg-gallery-thumbnail img {
    transition: transform 0.5s ease;
}

.ngg-gallery-thumbnail-box:hover img {
    transform: scale(1.05);
}

/* ============================================
   SEARCH
   ============================================ */

.search-form {
    display: flex;
    gap: 0.5rem;
}

.search-form .search-field {
    flex: 1;
    padding: 0.75rem 1rem;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--color-text);
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    outline: none;
}

.search-form .search-field:focus {
    border-color: var(--color-gold);
}

.search-form .search-submit {
    padding: 0.75rem 1.5rem;
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--color-bg);
    background: var(--color-gold);
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: background 0.3s ease;
}

.search-form .search-submit:hover {
    background: var(--color-gold-light);
}

/* ============================================
   404 PAGE
   ============================================ */

.error-404 {
    text-align: center;
    padding: 6rem 2rem;
}

.error-404__code {
    font-family: var(--font-heading);
    font-size: 8rem;
    font-weight: 700;
    color: var(--color-border);
    line-height: 1;
    margin-bottom: 1rem;
}

.error-404__title {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.error-404__desc {
    color: var(--color-text-muted);
    margin-bottom: 2rem;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

/* ============================================
   GOOGLE MAP
   ============================================ */

.map-wrapper {
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--color-border);
    margin: 2rem 0;
}

.map-wrapper iframe {
    display: block;
    filter: grayscale(0.8) brightness(0.7) contrast(1.1);
    transition: filter 0.5s ease;
}

.map-wrapper:hover iframe {
    filter: grayscale(0.3) brightness(0.85) contrast(1);
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1024px) {
    .content-area {
        grid-template-columns: 1fr;
    }

    .posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

@media (max-width: 768px) {
    :root {
        --header-height: 64px;
    }

    .menu-toggle {
        display: flex;
    }

    .main-nav {
        display: none;
        position: absolute;
        top: var(--header-height);
        left: 0;
        right: 0;
        background: rgba(13, 13, 13, 0.98);
        backdrop-filter: blur(20px);
        border-bottom: 1px solid var(--color-border-gold);
        padding: 1rem;
    }

    .main-nav.active {
        display: block;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 0;
    }

    .main-nav a {
        padding: 0.75rem 1rem;
        border-bottom: 1px solid var(--color-border);
    }

    .hero {
        padding: 5rem 0 4rem;
    }

    .hero__title {
        font-size: 2.2rem;
    }

    h1 { font-size: 2rem; }
    h2 { font-size: 1.7rem; }

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

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

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

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }

    .post-navigation {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 3rem 0;
    }

    .page-header {
        padding: 3rem 0 1.5rem;
    }

    .page-header__title {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .hero__title {
        font-size: 1.8rem;
    }

    .hero__actions {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        text-align: center;
    }
}

/* ============================================
   WORDPRESS ALIGNMENTS & CAPTIONS
   ============================================ */

.alignleft {
    float: left;
    margin: 0.5rem 1.5rem 1rem 0;
}

.alignright {
    float: right;
    margin: 0.5rem 0 1rem 1.5rem;
}

.aligncenter {
    display: block;
    margin: 1.5rem auto;
}

.wp-caption {
    max-width: 100%;
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 0.5rem;
}

.wp-caption img {
    border-radius: var(--radius);
}

.wp-caption-text {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    text-align: center;
    padding: 0.5rem 0.5rem 0;
}

/* Screen reader text */
.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;
}
