/* ========================================
   WineGogh Blog - Design System
   ======================================== */

/* --- CSS Custom Properties --- */
:root {
    --wg-bg: #000000;
    --wg-bg-elevated: #0A0A0A;
    --wg-bg-card: rgba(255, 255, 255, 0.04);
    --wg-bg-card-hover: rgba(255, 255, 255, 0.08);
    --wg-border: rgba(255, 255, 255, 0.08);
    --wg-border-hover: rgba(255, 255, 255, 0.15);
    --wg-text: #FFFFFF;
    --wg-text-muted: #AAAAAA;
    --wg-text-subtle: #666666;
    --wg-accent: #9146FF;
    --wg-accent-hover: #7B2FE0;
    --wg-accent-light: rgba(145, 70, 255, 0.15);
    --wg-secondary: #FFEF61;
    --wg-secondary-hover: #FFE100;
    --wg-radius-sm: 12px;
    --wg-radius-md: 24px;
    --wg-radius-lg: 44px;
    --wg-radius-full: 68px;
    --wg-max-nav: 1400px;
    --wg-max-content: 1140px;
    --wg-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --wg-blur: blur(30px);
    --wg-transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --wg-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    --wg-shadow-lg: 0 16px 64px rgba(0, 0, 0, 0.6);
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--wg-font);
    background-color: var(--wg-bg);
    color: var(--wg-text);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

a {
    color: var(--wg-accent);
    text-decoration: none;
    transition: color var(--wg-transition);
}

a:hover {
    color: var(--wg-secondary);
}

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

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--wg-text);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.75rem); }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: 1.5rem;
    color: var(--wg-text-muted);
}

/* --- Layout --- */
.site-content {
    padding-top: 100px;
    min-height: 100vh;
}

.container {
    max-width: var(--wg-max-content);
    margin: 0 auto;
    padding: 0 24px;
}

.container-wide {
    max-width: var(--wg-max-nav);
    margin: 0 auto;
    padding: 0 24px;
}

/* ========================================
   HEADER / NAVBAR
   ======================================== */
.site-header {
    position: fixed;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 32px);
    max-width: var(--wg-max-nav);
    z-index: 1000;
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 28px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: var(--wg-blur);
    -webkit-backdrop-filter: var(--wg-blur);
    border: 1px solid var(--wg-border);
    border-radius: var(--wg-radius-full);
    transition: background var(--wg-transition);
}

.navbar.scrolled {
    background: rgba(0, 0, 0, 0.9);
    box-shadow: var(--wg-shadow);
}

/* Logo */
.site-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.site-logo img,
.site-logo .custom-logo {
    height: 36px;
    width: auto;
    max-width: 150px;
    object-fit: contain;
}

.site-logo .site-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--wg-text);
    letter-spacing: -0.01em;
}

/* Nav menu */
.primary-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.primary-nav ul {
    display: flex;
    list-style: none;
    gap: 4px;
}

.primary-nav a {
    display: block;
    padding: 8px 16px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--wg-text-muted);
    border-radius: var(--wg-radius-lg);
    transition: all var(--wg-transition);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.primary-nav a:hover,
.primary-nav .current-menu-item a {
    color: var(--wg-text);
    background: var(--wg-bg-card-hover);
}

.primary-nav .current-menu-item a {
    color: var(--wg-accent);
}

/* Search toggle */
.nav-search-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    color: var(--wg-text-muted);
    cursor: pointer;
    border-radius: 50%;
    transition: all var(--wg-transition);
}

.nav-search-toggle:hover {
    color: var(--wg-text);
    background: var(--wg-bg-card-hover);
}

.nav-search-toggle svg {
    width: 18px;
    height: 18px;
}

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

.menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--wg-text);
    border-radius: 2px;
    transition: all var(--wg-transition);
}

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

/* Mobile nav overlay */
.mobile-nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: var(--wg-blur);
    -webkit-backdrop-filter: var(--wg-blur);
    z-index: 999;
    opacity: 0;
    transition: opacity var(--wg-transition);
}

.mobile-nav-overlay.active {
    opacity: 1;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    gap: 8px;
}

.mobile-nav a {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--wg-text);
    padding: 12px 24px;
    border-radius: var(--wg-radius-sm);
    transition: all var(--wg-transition);
}

.mobile-nav a:hover {
    color: var(--wg-accent);
    background: var(--wg-bg-card);
}

/* Search overlay */
.search-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: var(--wg-blur);
    z-index: 1001;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--wg-transition);
}

.search-overlay.active {
    display: flex;
    opacity: 1;
}

.search-overlay .search-form {
    width: 100%;
    max-width: 600px;
    padding: 0 24px;
}

.search-overlay .search-field {
    width: 100%;
    padding: 20px 24px;
    font-size: 1.5rem;
    font-family: var(--wg-font);
    background: var(--wg-bg-card);
    border: 1px solid var(--wg-border);
    border-radius: var(--wg-radius-sm);
    color: var(--wg-text);
    outline: none;
    transition: border-color var(--wg-transition);
}

.search-overlay .search-field:focus {
    border-color: var(--wg-accent);
}

.search-overlay .search-field::placeholder {
    color: var(--wg-text-subtle);
}

.search-overlay .search-close {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    color: var(--wg-text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    border-radius: 50%;
    transition: all var(--wg-transition);
}

.search-overlay .search-close:hover {
    color: var(--wg-text);
    background: var(--wg-bg-card);
}

/* ========================================
   HERO SECTION (Front Page)
   ======================================== */
.hero-section {
    position: relative;
    margin-bottom: 64px;
    border-radius: var(--wg-radius-md);
    overflow: hidden;
}

.hero-featured {
    position: relative;
    display: block;
    aspect-ratio: 21 / 9;
    overflow: hidden;
    border-radius: var(--wg-radius-md);
}

.hero-featured img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.hero-featured:hover img {
    transform: scale(1.03);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.2) 50%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 48px;
}

.hero-category {
    display: inline-block;
    padding: 6px 14px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    background: var(--wg-accent);
    color: var(--wg-bg);
    border-radius: var(--wg-radius-lg);
    margin-bottom: 16px;
    width: fit-content;
}

.hero-title {
    font-size: clamp(1.75rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 12px;
    color: var(--wg-text);
}

.hero-excerpt {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
    max-width: 600px;
    margin-bottom: 0;
}

.hero-meta {
    display: flex;
    gap: 16px;
    margin-top: 16px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}

/* ========================================
   POST GRID
   ======================================== */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    background: var(--wg-accent);
    border-radius: 2px;
    margin-top: 8px;
}

.section-link {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--wg-accent);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.section-link:hover {
    color: var(--wg-secondary);
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 64px;
}

/* Post Card */
.post-card {
    background: var(--wg-bg-card);
    border: 1px solid var(--wg-border);
    border-radius: var(--wg-radius-md);
    overflow: hidden;
    transition: all var(--wg-transition);
}

.post-card:hover {
    background: var(--wg-bg-card-hover);
    border-color: var(--wg-border-hover);
    transform: translateY(-4px);
    box-shadow: var(--wg-shadow);
}

.post-card-image {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.post-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

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

.post-card-image .card-category {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 12px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    background: var(--wg-accent);
    color: var(--wg-bg);
    border-radius: var(--wg-radius-lg);
}

.post-card-body {
    padding: 20px;
}

.post-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 8px;
}

.post-card-title a {
    color: var(--wg-text);
}

.post-card-title a:hover {
    color: var(--wg-accent);
}

.post-card-excerpt {
    font-size: 0.9rem;
    color: var(--wg-text-muted);
    line-height: 1.6;
    margin-bottom: 16px;
}

.post-card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.8rem;
    color: var(--wg-text-subtle);
}

.post-card-meta .meta-dot {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--wg-text-subtle);
}

/* No thumbnail fallback */
.post-card-image.no-thumb {
    background: linear-gradient(135deg, var(--wg-accent-light) 0%, var(--wg-bg-elevated) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.post-card-image.no-thumb .no-thumb-icon {
    font-size: 2.5rem;
    opacity: 0.3;
}

/* ========================================
   SINGLE POST
   ======================================== */
.single-header {
    max-width: 800px;
    margin: 0 auto 40px;
    text-align: center;
}

.single-category {
    display: inline-block;
    padding: 6px 16px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    background: var(--wg-accent);
    color: var(--wg-bg);
    border-radius: var(--wg-radius-lg);
    margin-bottom: 20px;
}

.single-title {
    font-size: clamp(2rem, 4.5vw, 3rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 20px;
}

.single-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    font-size: 0.9rem;
    color: var(--wg-text-muted);
}

.single-meta .meta-sep {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--wg-text-subtle);
}

.single-featured {
    max-width: 960px;
    margin: 0 auto 48px;
    border-radius: var(--wg-radius-md);
    overflow: hidden;
}

.single-featured img {
    width: 100%;
    height: auto;
}

/* Post content */
.post-content {
    max-width: 720px;
    margin: 0 auto;
    font-size: 1.05rem;
    line-height: 1.8;
}

.post-content h2 {
    margin: 48px 0 16px;
}

.post-content h3 {
    margin: 36px 0 12px;
}

.post-content p {
    color: var(--wg-text-muted);
}

.post-content strong {
    color: var(--wg-text);
    font-weight: 600;
}

.post-content a {
    color: var(--wg-accent);
    text-decoration: underline;
    text-decoration-color: rgba(145, 70, 255, 0.3);
    text-underline-offset: 3px;
    transition: text-decoration-color var(--wg-transition);
}

.post-content a:hover {
    text-decoration-color: var(--wg-accent);
}

.post-content ul,
.post-content ol {
    margin: 0 0 1.5rem 1.5rem;
    color: var(--wg-text-muted);
}

.post-content li {
    margin-bottom: 0.5rem;
}

.post-content blockquote {
    margin: 2rem 0;
    padding: 24px 28px;
    border-left: 3px solid var(--wg-accent);
    background: var(--wg-bg-card);
    border-radius: 0 var(--wg-radius-sm) var(--wg-radius-sm) 0;
    font-style: italic;
}

.post-content blockquote p {
    margin-bottom: 0;
    color: var(--wg-text);
}

.post-content pre {
    background: var(--wg-bg-elevated);
    border: 1px solid var(--wg-border);
    border-radius: var(--wg-radius-sm);
    padding: 20px;
    overflow-x: auto;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.post-content code {
    background: var(--wg-bg-card);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.9em;
    color: var(--wg-secondary);
}

.post-content pre code {
    background: none;
    padding: 0;
    color: var(--wg-text-muted);
}

.post-content figure {
    margin: 2rem 0;
}

.post-content figcaption {
    text-align: center;
    font-size: 0.85rem;
    color: var(--wg-text-subtle);
    margin-top: 8px;
}

.post-content img {
    border-radius: var(--wg-radius-sm);
}

/* Post tags */
.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--wg-border);
}

.post-tags a {
    padding: 6px 14px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--wg-text-muted);
    background: var(--wg-bg-card);
    border: 1px solid var(--wg-border);
    border-radius: var(--wg-radius-lg);
    transition: all var(--wg-transition);
}

.post-tags a:hover {
    color: var(--wg-accent);
    border-color: var(--wg-accent);
    background: var(--wg-accent-light);
}

/* Post navigation */
.post-navigation {
    max-width: 720px;
    margin: 64px auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.post-navigation .nav-link {
    display: block;
    padding: 24px;
    background: var(--wg-bg-card);
    border: 1px solid var(--wg-border);
    border-radius: var(--wg-radius-sm);
    transition: all var(--wg-transition);
}

.post-navigation .nav-link:hover {
    border-color: var(--wg-accent);
    background: var(--wg-accent-light);
}

.post-navigation .nav-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--wg-accent);
    margin-bottom: 8px;
}

.post-navigation .nav-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--wg-text);
    line-height: 1.3;
}

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

/* ========================================
   ARCHIVE / SEARCH
   ======================================== */
.archive-header {
    margin-bottom: 48px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--wg-border);
}

.archive-title {
    font-size: 2rem;
    margin-bottom: 8px;
}

.archive-title .accent {
    color: var(--wg-accent);
}

.archive-description {
    color: var(--wg-text-muted);
    font-size: 1rem;
}

/* ========================================
   COMMENTS
   ======================================== */
.comments-area {
    max-width: 720px;
    margin: 0 auto;
    padding-top: 48px;
}

.comments-title {
    font-size: 1.5rem;
    margin-bottom: 32px;
}

.comment-list {
    list-style: none;
    padding: 0;
}

.comment-list .comment {
    padding: 24px;
    margin-bottom: 16px;
    background: var(--wg-bg-card);
    border: 1px solid var(--wg-border);
    border-radius: var(--wg-radius-sm);
}

.comment-list .children {
    list-style: none;
    padding-left: 32px;
    margin-top: 16px;
}

.comment-author {
    font-weight: 600;
    margin-bottom: 4px;
}

.comment-author img {
    border-radius: 50%;
    margin-right: 12px;
    vertical-align: middle;
}

.comment-metadata {
    font-size: 0.8rem;
    color: var(--wg-text-subtle);
    margin-bottom: 12px;
}

.comment-metadata a {
    color: var(--wg-text-subtle);
}

.comment-content p {
    color: var(--wg-text-muted);
    margin-bottom: 0.75rem;
}

.reply a {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--wg-accent);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Comment form */
.comment-respond {
    margin-top: 48px;
}

.comment-form label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--wg-text-muted);
    margin-bottom: 6px;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 14px 18px;
    font-family: var(--wg-font);
    font-size: 1rem;
    background: var(--wg-bg-card);
    border: 1px solid var(--wg-border);
    border-radius: var(--wg-radius-sm);
    color: var(--wg-text);
    outline: none;
    transition: border-color var(--wg-transition);
    margin-bottom: 16px;
}

.comment-form input:focus,
.comment-form textarea:focus {
    border-color: var(--wg-accent);
}

.comment-form .submit {
    display: inline-flex;
    align-items: center;
    padding: 14px 32px;
    font-family: var(--wg-font);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--wg-bg);
    background: var(--wg-accent);
    border: none;
    border-radius: var(--wg-radius-lg);
    cursor: pointer;
    transition: all var(--wg-transition);
}

.comment-form .submit:hover {
    background: var(--wg-accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(145, 70, 255, 0.4);
}

/* ========================================
   PAGINATION
   ======================================== */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 64px 0;
}

.pagination .page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 12px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--wg-text-muted);
    background: var(--wg-bg-card);
    border: 1px solid var(--wg-border);
    border-radius: var(--wg-radius-sm);
    transition: all var(--wg-transition);
}

.pagination .page-numbers:hover {
    color: var(--wg-text);
    border-color: var(--wg-accent);
}

.pagination .page-numbers.current {
    background: var(--wg-accent);
    color: var(--wg-bg);
    border-color: var(--wg-accent);
    font-weight: 700;
}

/* ========================================
   404 PAGE
   ======================================== */
.error-404 {
    text-align: center;
    padding: 120px 24px;
}

.error-404 .error-code {
    font-size: clamp(6rem, 15vw, 12rem);
    font-weight: 800;
    line-height: 1;
    background: linear-gradient(135deg, var(--wg-accent), var(--wg-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 16px;
}

.error-404 h1 {
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.error-404 p {
    max-width: 480px;
    margin: 0 auto 32px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    font-family: var(--wg-font);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--wg-bg);
    background: var(--wg-accent);
    border: none;
    border-radius: var(--wg-radius-lg);
    cursor: pointer;
    transition: all var(--wg-transition);
    text-decoration: none;
}

.btn:hover {
    background: var(--wg-accent-hover);
    color: var(--wg-bg);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(145, 70, 255, 0.4);
}

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

.btn-outline:hover {
    background: var(--wg-accent);
    color: var(--wg-bg);
}

/* ========================================
   FOOTER
   ======================================== */
.site-footer {
    margin-top: 80px;
    padding: 64px 0 32px;
    border-top: 1px solid var(--wg-border);
    background: var(--wg-bg-elevated);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-about .footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.footer-about .footer-logo img {
    height: 40px;
    width: auto;
    max-width: 160px;
    object-fit: contain;
}

.footer-about .footer-logo span {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--wg-text);
}

.footer-about p {
    font-size: 0.9rem;
    color: var(--wg-text-muted);
    line-height: 1.7;
}

.footer-heading {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--wg-text);
    margin-bottom: 20px;
}

.footer-nav ul {
    list-style: none;
    padding: 0;
}

.footer-nav li {
    margin-bottom: 10px;
}

.footer-nav a {
    font-size: 0.9rem;
    color: var(--wg-text-muted);
    transition: color var(--wg-transition);
}

.footer-nav a:hover {
    color: var(--wg-accent);
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--wg-bg-card);
    border: 1px solid var(--wg-border);
    color: var(--wg-text-muted);
    transition: all var(--wg-transition);
}

.footer-social a:hover {
    color: var(--wg-accent);
    border-color: var(--wg-accent);
    background: var(--wg-accent-light);
}

.footer-social svg {
    width: 18px;
    height: 18px;
}

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

/* ========================================
   SIDEBAR / WIDGETS
   ======================================== */
.widget {
    margin-bottom: 32px;
    padding: 24px;
    background: var(--wg-bg-card);
    border: 1px solid var(--wg-border);
    border-radius: var(--wg-radius-sm);
}

.widget-title {
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--wg-border);
}

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

.widget li {
    padding: 6px 0;
    border-bottom: 1px solid var(--wg-border);
}

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

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

.widget a:hover {
    color: var(--wg-accent);
}

/* ========================================
   SEARCH FORM (inline)
   ======================================== */
.search-form {
    display: flex;
    gap: 8px;
}

.search-form .search-field {
    flex: 1;
    padding: 12px 18px;
    font-family: var(--wg-font);
    font-size: 0.9rem;
    background: var(--wg-bg-card);
    border: 1px solid var(--wg-border);
    border-radius: var(--wg-radius-sm);
    color: var(--wg-text);
    outline: none;
    transition: border-color var(--wg-transition);
}

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

.search-form .search-submit {
    padding: 12px 20px;
    font-family: var(--wg-font);
    font-size: 0.9rem;
    font-weight: 600;
    background: var(--wg-accent);
    color: var(--wg-bg);
    border: none;
    border-radius: var(--wg-radius-sm);
    cursor: pointer;
    transition: all var(--wg-transition);
}

.search-form .search-submit:hover {
    background: var(--wg-accent-hover);
}

/* ========================================
   PAGE TEMPLATE
   ======================================== */
.page-header {
    margin-bottom: 40px;
}

.page-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
}

.page-content {
    max-width: 800px;
    margin: 0 auto;
}

/* Elementor compatibility */
.elementor-page .site-content {
    padding-top: 80px;
}

.elementor-page.elementor-default .site-content {
    padding-top: 100px;
}

body.elementor-template-canvas .site-header,
body.elementor-template-canvas .site-footer {
    display: none;
}

body.elementor-template-canvas .site-content {
    padding-top: 0;
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 980px) {
    .menu-toggle {
        display: flex;
    }

    .primary-nav {
        display: none;
    }

    .nav-search-toggle {
        display: none;
    }

    .mobile-nav-overlay {
        display: block;
        pointer-events: none;
    }

    .mobile-nav-overlay.active {
        pointer-events: all;
    }

    .hero-overlay {
        padding: 24px;
    }

    .hero-featured {
        aspect-ratio: 16 / 9;
    }

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

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

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

    .post-navigation .nav-next {
        text-align: left;
    }
}

@media (max-width: 640px) {
    .site-header {
        top: 8px;
        width: calc(100% - 16px);
    }

    .navbar {
        padding: 10px 16px;
    }

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

    .hero-overlay {
        padding: 20px;
    }

    .hero-title {
        font-size: 1.5rem;
    }

    .hero-excerpt {
        display: none;
    }

    .single-header {
        text-align: left;
    }

    .single-meta {
        justify-content: flex-start;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

    .site-content {
        padding-top: 80px;
    }
}

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

.screen-reader-text:focus {
    background-color: var(--wg-bg-elevated);
    clip: auto !important;
    clip-path: none;
    color: var(--wg-text);
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}

/* WP alignment classes */
.alignwide {
    max-width: var(--wg-max-nav);
    margin-left: auto;
    margin-right: auto;
}

.alignfull {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
}

.aligncenter {
    text-align: center;
}

.alignleft {
    float: left;
    margin-right: 1.5rem;
    margin-bottom: 1rem;
}

.alignright {
    float: right;
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

/* WP Gallery */
.wp-block-gallery {
    margin-bottom: 1.5rem;
}

.wp-block-image {
    margin-bottom: 1.5rem;
}

.wp-block-image img {
    border-radius: var(--wg-radius-sm);
}

/* ========================================
   FRONT PAGE - Landing
   ======================================== */

/* --- Buttons --- */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    font-size: 0.9rem;
    font-weight: 600;
    font-family: var(--wg-font);
    color: #fff;
    background: var(--wg-accent);
    border: none;
    border-radius: var(--wg-radius-full);
    cursor: pointer;
    transition: all var(--wg-transition);
    text-decoration: none;
}

.btn-primary:hover {
    background: var(--wg-accent-hover);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(145, 70, 255, 0.3);
}

.btn-primary.btn-lg {
    padding: 18px 40px;
    font-size: 1rem;
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    font-size: 0.9rem;
    font-weight: 600;
    font-family: var(--wg-font);
    color: var(--wg-text);
    background: transparent;
    border: 1px solid var(--wg-border-hover);
    border-radius: var(--wg-radius-full);
    cursor: pointer;
    transition: all var(--wg-transition);
    text-decoration: none;
}

.btn-outline:hover {
    border-color: var(--wg-accent);
    color: var(--wg-accent);
    transform: translateY(-2px);
}

.accent-text {
    color: var(--wg-accent);
}

/* --- Hero --- */
.fp-hero {
    padding: 40px 0 0;
}

.fp-hero-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
    min-height: 420px;
}

.fp-hero-label {
    display: inline-block;
    padding: 6px 16px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--wg-accent);
    background: var(--wg-accent-light);
    border-radius: var(--wg-radius-full);
    margin-bottom: 20px;
}

.fp-hero-title {
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: var(--wg-text);
    margin-bottom: 20px;
}

.fp-hero-desc {
    font-size: 1.1rem;
    color: var(--wg-text-muted);
    line-height: 1.7;
    max-width: 480px;
    margin-bottom: 32px;
}

.fp-hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.fp-hero-card {
    position: relative;
}

.fp-hero-post {
    display: block;
    position: relative;
    border-radius: var(--wg-radius-md);
    overflow: hidden;
    aspect-ratio: 4 / 3;
}

.fp-hero-post img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.fp-hero-post:hover img {
    transform: scale(1.04);
}

.fp-hero-post-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, transparent 60%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 28px;
}

.fp-hero-post-badge {
    display: inline-block;
    padding: 4px 12px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    background: var(--wg-secondary);
    color: #000;
    border-radius: var(--wg-radius-full);
    margin-bottom: 12px;
    width: fit-content;
}

.fp-hero-post-overlay h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 6px;
    line-height: 1.3;
}

.fp-hero-post-meta {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
}

/* --- Featured Categories --- */
.fp-categories {
    padding: 64px 0;
}

.fp-categories-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
}

.fp-cat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 28px 16px;
    background: var(--wg-bg-card);
    border: 1px solid var(--wg-border);
    border-radius: var(--wg-radius-sm);
    text-align: center;
    transition: all var(--wg-transition);
    text-decoration: none;
}

.fp-cat-card:hover {
    background: var(--wg-bg-card-hover);
    border-color: var(--wg-accent);
    transform: translateY(-4px);
    color: var(--wg-text);
}

.fp-cat-icon {
    font-size: 2rem;
    line-height: 1;
}

.fp-cat-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--wg-text);
}

.fp-cat-count {
    font-size: 0.75rem;
    color: var(--wg-text-subtle);
}

/* --- Promotional Banners --- */
.fp-banners {
    padding: 0 0 80px;
}

.fp-banners-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.fp-banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 40px;
    border-radius: var(--wg-radius-md);
    overflow: hidden;
    position: relative;
    min-height: 200px;
    text-decoration: none;
    transition: all var(--wg-transition);
}

.fp-banner:hover {
    transform: translateY(-4px);
    box-shadow: var(--wg-shadow-lg);
}

.fp-banner--accent {
    background: linear-gradient(135deg, rgba(145, 70, 255, 0.2) 0%, rgba(145, 70, 255, 0.05) 100%);
    border: 1px solid rgba(145, 70, 255, 0.25);
}

.fp-banner--accent:hover {
    border-color: rgba(145, 70, 255, 0.5);
}

.fp-banner--secondary {
    background: linear-gradient(135deg, rgba(255, 239, 97, 0.15) 0%, rgba(255, 239, 97, 0.03) 100%);
    border: 1px solid rgba(255, 239, 97, 0.2);
}

.fp-banner--secondary:hover {
    border-color: rgba(255, 239, 97, 0.4);
}

.fp-banner-content {
    position: relative;
    z-index: 1;
    max-width: 320px;
}

.fp-banner-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--wg-text);
    margin-bottom: 8px;
    line-height: 1.3;
}

.fp-banner-desc {
    font-size: 0.9rem;
    color: var(--wg-text-muted);
    margin-bottom: 16px;
    line-height: 1.5;
}

.fp-banner--accent .fp-banner-cta {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--wg-accent);
}

.fp-banner--secondary .fp-banner-cta {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--wg-secondary);
}

.fp-banner-visual {
    position: absolute;
    right: -20px;
    top: -20px;
    width: 180px;
    height: 180px;
    opacity: 0.15;
}

.fp-banner--accent .fp-banner-shape {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--wg-accent);
    filter: blur(40px);
}

.fp-banner--secondary .fp-banner-shape {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--wg-secondary);
    filter: blur(40px);
}

/* --- Latest Posts --- */
.fp-latest {
    padding: 80px 0;
    border-top: 1px solid var(--wg-border);
}

/* --- Cities --- */
.fp-cities {
    padding: 80px 0;
    border-top: 1px solid var(--wg-border);
}

.fp-cities-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.fp-city-card {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    border-radius: var(--wg-radius-md);
    overflow: hidden;
    text-decoration: none;
}

.fp-city-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.fp-city-card:hover img {
    transform: scale(1.06);
}

.fp-city-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 50%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 28px;
}

.fp-city-name {
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 4px;
}

.fp-city-count {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
}

/* --- Custom content (Gutenberg) at bottom --- */
.fp-custom-content {
    padding: 80px 0;
    border-top: 1px solid var(--wg-border);
}

/* ========================================
   FRONT PAGE - Responsive
   ======================================== */
@media (max-width: 1024px) {
    .fp-hero-inner {
        grid-template-columns: 1fr;
        gap: 32px;
    }

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

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

@media (max-width: 768px) {
    .fp-hero-title {
        font-size: 2rem;
    }

    .fp-hero-actions {
        flex-direction: column;
    }

    .fp-hero-actions .btn-primary,
    .fp-hero-actions .btn-outline {
        text-align: center;
        justify-content: center;
    }

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

    .fp-banners-grid {
        grid-template-columns: 1fr;
    }

    .fp-banner {
        padding: 28px;
        min-height: 160px;
    }

    .fp-cities-grid {
        grid-template-columns: 1fr 1fr;
    }
}
