/*
Theme Name: Szécsényi Zoltán Theme
Theme URI: http://example.com/
Author: Gemini CLI
Author URI: http://example.com/
Description: A minimalist, typography-focused WordPress theme based on a screenshot design.
Version: 2.5
Text Domain: szecsenyi-theme
*/

:root {
    --primary-color: #1a1a1a;
    --text-color: #333;
    --text-muted: #666;
    --bg-color: #ffffff;
    --accent-color: #0044cc;
    --font-serif: 'Playfair Display', serif;
    --font-sans: 'Inter', sans-serif;
    --font-heading: 'Epilogue', sans-serif;
    --container-width: 1100px;
}

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

body {
    font-family: var(--font-sans);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    -webkit-font-smoothing: antialiased;
}

html {
    overflow-x: hidden;
}

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

/* Header */
.site-header {
    width: 100%;
    padding: 38px 0;
    border-bottom: 1px solid #eee;
    background-color: #000;
}

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

.logo a {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

.main-nav a {
    text-decoration: none;
    color: #fff;
    font-size: 0.9rem;
    text-transform: uppercase;
    transition: color 0.3s;
}

/* Hero Section */
.hero {
    display: block;
    padding: 100px 0 40px;
}

.hero .subtitle {
    display: block;
    margin-bottom: 20px;
}

.hero h1 {
    margin-bottom: 20px;
}

.hero .hero-description {
    margin-bottom: 0;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-muted);
}

.subtitle {
    display: block;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    color: var(--accent-color);
    margin-bottom: 15px;
    font-weight: 600;
    text-transform: uppercase;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
}

h1 {
    font-family: var(--font-heading);
    font-size: 4rem;
    line-height: 1.1;
    font-weight: 600;
    color: var(--primary-color);
}

/* Images */
.aspect-ratio-box {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    overflow: hidden;
    background: #f0f0f0;
    margin-bottom: 25px;
}

.aspect-ratio-box.large {
    padding-top: 45%;
}

.aspect-ratio-box img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Archive List */
.archive-list {
    padding: 30px 0 60px;
}

.archive-year {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin: 40px 0 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #eee;
}

.archive-post-list {
    list-style: none;
}

.archive-post-item {
    display: flex;
    align-items: baseline;
    gap: 20px;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.archive-post-date {
    font-size: 0.8rem;
    color: var(--text-muted);
    min-width: 50px;
}

.archive-post-title {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.2s;
}

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

/* Blog Grid */
.blog-grid {
    padding: 30px 0 60px;
}

.post-item {
    margin-bottom: 60px;
}

.post-item time {
    display: block;
    font-size: 0.8rem;
    color: #999;
    margin-bottom: 10px;
}

.post-item h2 {
    font-family: var(--font-heading);
    font-size: 2rem;
    line-height: 1.3;
    margin-bottom: 15px;
    font-weight: 400;
}

.post-item h2 a {
    color: var(--primary-color);
    text-decoration: none;
}

.post-item p {
    color: var(--text-muted);
    font-size: 1rem;
    max-width: 800px;
    text-align: justify;
    hyphens: auto;
    -webkit-hyphens: auto;
}

.two-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

/* Newsletter */
.newsletter {
    padding: 80px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

.newsletter-content h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.newsletter-form {
    display: flex;
    gap: 10px;
    flex: 1;
    max-width: 500px;
}

.newsletter-form input {
    flex: 1;
    padding: 15px 20px;
    border: 1px solid #ddd;
    background: #f9f9f9;
}

.newsletter-form button {
    padding: 15px 30px;
    background: var(--primary-color);
    color: white;
    border: none;
    cursor: pointer;
    font-weight: 600;
}

/* Footer */
.site-footer {
    padding: 20px 0;
    margin-top: 30px;
    border-top: 1px solid #eee;
}

.site-footer .container {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 40px;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 40px;
}

.footer-social {
    display: flex;
    gap: 18px;
    align-items: center;
}

.footer-social a {
    color: var(--text-muted);
    transition: color 0.2s;
    display: flex;
}

.footer-social a:hover {
    color: var(--primary-color);
}

.icon-whatsapp img,
.icon-viber img {
    opacity: 0.5;
    filter: grayscale(1);
    transition: opacity 0.2s, filter 0.2s;
}

.icon-whatsapp:hover img,
.icon-viber:hover img {
    opacity: 1;
    filter: none;
}

.footer-work {
    display: flex;
    align-items: center;
    gap: 16px;
}

.footer-work-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
}

.footer-work a {
    display: flex;
    align-items: center;
    gap: 5px;
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.85rem;
    transition: color 0.2s;
}

.footer-work a:hover {
    color: var(--primary-color);
}

/* Single Post / Page */
.single-back {
    display: inline-block;
    margin: 40px 0 30px;
}

/* Post Share */
.post-share {
    margin: 0 auto;
    padding: 30px 0;
    border-top: 1px solid #eee;
    display: flex;
    align-items: center;
    gap: 20px;
}

.post-share-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    white-space: nowrap;
}

.post-share-buttons {
    display: flex;
    gap: 14px;
    align-items: center;
    flex-wrap: wrap;
}

.post-share-buttons a,
.share-copy {
    color: var(--text-muted);
    transition: color 0.2s;
    display: flex;
    align-items: center;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    gap: 5px;
}

.post-share-buttons a:hover,
.share-copy:hover {
    color: var(--primary-color);
}

.share-copy {
    font-size: 0.8rem;
}

.copy-label { display: inline; }
.copy-done  { display: none; color: var(--accent-color); }

.share-copy.copied .copy-label { display: none; }
.share-copy.copied .copy-done  { display: inline; }

.post-navigation {
    margin: 0 auto;
    padding: 40px 0 80px;
    border-top: 1px solid #eee;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.post-nav-item {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.post-nav-item a {
    color: var(--primary-color);
    text-decoration: none;
    transition: opacity 0.2s;
}

.post-nav-item a:hover {
    opacity: 0.6;
}

article.single-post {
    padding: 0 0 60px 0;
    max-width: var(--container-width);
    margin: 0 auto;
}

.single-header {
    margin-bottom: 40px;
}

.single-date {
    display: block;
    font-size: 0.8rem;
    color: #999;
    margin-bottom: 15px;
}

.single-header h1 {
    font-size: 3rem;
}

.single-image {
    margin-bottom: 50px;
}

.single-content {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-color);
    text-align: justify;
    hyphens: auto;
    -webkit-hyphens: auto;
    hyphenate-limit-chars: 6 3 3;
}

.single-content p {
    margin-bottom: 1.5em;
}

.single-content ul,
.single-content ol {
    margin-left: 2em;
    margin-bottom: 1.5em;
}

.single-content li {
    margin-bottom: 0.4em;
}

.single-content h2,
.single-content h3 {
    font-family: var(--font-heading);
    font-weight: 600;
    margin: 2em 0 0.8em;
}

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

.single-footer {
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

.back-link {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    transition: color 0.2s;
}

.back-link:hover {
    color: var(--primary-color);
}

/* 404 */
.error-404 {
    padding: 100px 0;
}

.error-404 .back-link {
    display: inline-block;
    margin-top: 30px;
}

/* Archive pagination */
.archive-pagination {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

.archive-pagination .nav-links {
    display: flex;
    gap: 20px;
}

.archive-pagination a,
.archive-pagination span {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.archive-pagination a:hover {
    color: var(--primary-color);
}

@media (max-width: 768px) {
    .single-header h1 { font-size: 2rem; }
}

/* Hamburger */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 18px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 100;
}

.menu-toggle .bar {
    display: block;
    width: 100%;
    height: 1.5px;
    background: #fff;
    transform-origin: center;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.menu-toggle.is-open .bar:first-child {
    transform: translateY(8.25px) rotate(45deg);
}

.menu-toggle.is-open .bar:last-child {
    transform: translateY(-8.25px) rotate(-45deg);
}

@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    .two-columns { grid-template-columns: 1fr; }

    .footer-links {
        flex-wrap: wrap;
        gap: 20px;
    }

    .footer-work {
        flex-wrap: wrap;
        gap: 12px;
    }

    .menu-toggle {
        display: flex;
    }

    .main-nav {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: #000;
        z-index: 50;
        align-items: center;
        justify-content: center;
    }

    .main-nav.is-open {
        display: flex;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }

    .main-nav a {
        font-size: 1.4rem;
    }

    .site-header {
        position: relative;
        z-index: 60;
    }
}

@media (max-width: 400px) {
    h1 { font-size: 1.9rem; }

    .logo a { font-size: 1.2rem; }

    .hero { padding: 50px 0 30px; }

    .post-item h2 { font-size: 1.5rem; }
}
