/*
Theme Name: Flavor Starter
Theme URI: https://example.com/flavor-starter
Author: Flavor
Author URI: https://example.com
Description: Egy egyszerű, teljes szélességű WordPress sablon kikapcsolható fejléccel, lábléc-cel és menüvel. Oldalsáv nélkül.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: flavor-starter
Tags: full-width, custom-menu, custom-logo, translation-ready
*/

/* ─── RESET & BASE ─── */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: #333;
    background: #fff;
}

a {
    color: #0073aa;
    text-decoration: none;
}

a:hover {
    color: #005177;
    text-decoration: underline;
}

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

/* ─── LAYOUT ─── */
.site-content {
    width: 100%;
}

/* Contentet konténer - használható ha kell */
.content-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Full-width: nincs max-width megkötés */
.full-width .site-content {
    max-width: 100%;
    padding: 0;
}

/* ─── HEADER ─── */
.site-header {
    background: #fff;
    border-bottom: 1px solid #eee;
    padding: 20px 0;
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-branding .site-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
}

.site-branding .site-title a {
    color: #222;
    text-decoration: none;
}

.site-branding .site-description {
    font-size: 0.85rem;
    color: #888;
    margin-top: 2px;
}

.custom-logo {
    max-height: 60px;
    width: auto;
}

/* ─── NAVIGATION ─── */
.main-navigation {
    font-size: 0.9rem;
}

.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 28px;
    margin: 0;
    padding: 0;
}

.main-navigation li {
    position: relative;
}

.main-navigation a {
    color: #444;
    text-decoration: none;
    font-weight: 500;
    padding: 6px 0;
    transition: color 0.2s ease;
}

.main-navigation a:hover,
.main-navigation .current-menu-item > a {
    color: #0073aa;
}

/* Dropdown */
.main-navigation ul ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 4px;
    padding: 8px 0;
    min-width: 200px;
    flex-direction: column;
    gap: 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    z-index: 100;
}

.main-navigation li:hover > ul {
    display: flex;
}

.main-navigation ul ul a {
    padding: 8px 20px;
    display: block;
}

.main-navigation ul ul a:hover {
    background: #f8f8f8;
}

/* Mobile menu toggle */
.menu-toggle {
    display: none;
    background: none;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 8px 14px;
    font-size: 0.9rem;
    cursor: pointer;
    color: #444;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .main-navigation ul {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        border-bottom: 1px solid #eee;
        padding: 16px 20px;
        gap: 12px;
        z-index: 99;
    }

    .main-navigation.toggled ul {
        display: flex;
    }

    .main-navigation ul ul {
        position: static;
        box-shadow: none;
        border: none;
        padding-left: 16px;
    }

    .header-inner {
        flex-wrap: wrap;
        position: relative;
    }
}

/* ─── FOOTER ─── */
.site-footer {
    background: #222;
    color: #aaa;
    padding: 40px 0;
    font-size: 0.85rem;
    text-align: center;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.site-footer a {
    color: #ddd;
}

.site-footer a:hover {
    color: #fff;
}

/* ─── CONTENT ─── */
.entry-header {
    margin-bottom: 30px;
}

.entry-title {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.3;
    color: #222;
}

.entry-content {
    font-size: 1rem;
    line-height: 1.8;
}

.entry-content p {
    margin-bottom: 1.2em;
}

.entry-content h2 {
    font-size: 1.5rem;
    margin: 2em 0 0.8em;
    color: #222;
}

.entry-content h3 {
    font-size: 1.25rem;
    margin: 1.5em 0 0.6em;
    color: #333;
}

/* ─── PAGE TEMPLATES ─── */

/* Full-width page (no container) */
.page-template-page-fullwidth .site-content {
    padding: 0;
}

/* ─── WORDPRESS CORE ─── */
.alignwide {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

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

.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

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

/* WooCommerce basic overrides */
.woocommerce .content-container {
    max-width: 100%;
    padding: 0;
}

/* ─── UTILITY ─── */
.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
    word-wrap: normal !important;
}
