/* Alap stílusok */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --light-color: #ecf0f1;
    --dark-color: #2c3e50;
    --text-color: #333;
    --link-color: #2980b9;
    --visited-link-color: #8e44ad;
    --background-color: #f9f9f9;
    --header-bg: #2c3e50;
    --nav-bg: #3498db;
    --footer-bg: #2c3e50;
    --card-bg: #ffffff;
    --card-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Ugrás a tartalomra link (akadálymentesség) */
.skip-link {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.skip-link:focus {
    position: static;
    width: auto;
    height: auto;
    padding: 0.5rem;
    background: var(--primary-color);
    color: white;
    text-align: center;
}

/* Fejléc */
header {
    background-color: var(--header-bg);
    color: white;
    padding: 2rem 0;
    text-align: center;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.tagline {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Navigáció */
nav {
    background-color: var(--nav-bg);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

nav ul {
    display: flex;
    justify-content: center;
    list-style-type: none;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

nav li {
    margin: 0 1rem;
}

nav a {
    color: white;
    font-weight: bold;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    transition: var(--transition);
}

nav a:hover,
nav a:focus {
    background-color: rgba(255, 255, 255, 0.2);
}

nav a.active {
    background-color: rgba(255, 255, 255, 0.3);
}

/* Fő tartalom */
main {
    flex: 1;
    padding: 2rem 1rem;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

section {
    margin-bottom: 3rem;
}

h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 2rem;
    position: relative;
    padding-bottom: 0.5rem;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 3px;
    background-color: var(--secondary-color);
}

h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

/* Hero szekció */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('media/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 4rem 1rem;
    text-align: center;
    margin-bottom: 3rem;
    border-radius: var(--border-radius);
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero h2 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero h2::after {
    display: none;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

/* Termékek */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 1.5rem;
}

.product-card {
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.product-link {
    text-decoration: none;
    color: inherit;
}

.product-image {
    width: 100%;
    height: 200px;
    object-fit: contain;
    padding: 1rem;
    background-color: #f5f5f5;
}

.product-card figcaption {
    padding: 1rem;
    text-align: center;
    font-weight: bold;
    color: var(--primary-color);
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    text-align: center;
    padding: 2rem;
    box-sizing: border-box;
}

.lightbox:target {
    display: block;
}

.lightbox-image {
    max-height: 90%;
    max-width: 90%;
    margin-top: 2rem;
    border: 3px solid white;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.close-lightbox {
    position: absolute;
    top: 20px;
    right: 20px;
    color: white;
    font-size: 2rem;
    text-decoration: none;
    width: 40px;
    height: 40px;
    line-height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.2);
}

.close-lightbox:hover {
    background-color: rgba(255, 255, 255, 0.4);
}

/* Rólunk szekció */
.about-section {
    background-color: var(--light-color);
    padding: 2rem;
    border-radius: var(--border-radius);
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.about-content p {
    margin-bottom: 1rem;
    line-height: 1.7;
}

/* Videó szekció */
.video-section {
    background-color: var(--light-color);
    padding: 2rem;
    border-radius: var(--border-radius);
}

.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 arány */
    height: 0;
    overflow: hidden;
    margin-bottom: 1rem;
    border-radius: var(--border-radius);
}

.promo-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-description {
    background-color: white;
    padding: 1rem;
    border-radius: var(--border-radius);
    margin-top: 1rem;
}

.video-description summary {
    font-weight: bold;
    cursor: pointer;
}

.video-description p {
    margin-top: 1rem;
    line-height: 1.6;
}

/* Újdonságok */
.new-products {
    background-color: var(--light-color);
    padding: 2rem;
    border-radius: var(--border-radius);
}

.new-product {
    background-color: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    margin-top: 1.5rem;
}

.new-product-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 1.5rem;
}

.new-product-image {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    display: block;
    border-radius: var(--border-radius);
}

.new-product-text p {
    margin-bottom: 1rem;
    line-height: 1.7;
}

/* Hírlevél */
.newsletter {
    background-color: var(--primary-color);
    color: white;
    padding: 2rem;
    margin: 2rem auto;
    max-width: 1200px;
    border-radius: var(--border-radius);
    text-align: center;
}

.newsletter h3 {
    color: white;
    margin-bottom: 1.5rem;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-form input {
    padding: 0.8rem;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Gombok */
.btn {
    display: inline-block;
    background-color: var(--secondary-color);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: bold;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.btn:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
}

/* Lábléc */
footer {
    background-color: var(--footer-bg);
    color: white;
    padding: 3rem 1rem 0;
    margin-top: auto;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-section {
    margin-bottom: 2rem;
}

.footer-section h4 {
    color: white;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-section h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--secondary-color);
}

.footer-section p,
.footer-section li {
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

.social-links,
.opening-hours,
.footer-links {
    list-style-type: none;
}

.social-links a,
.footer-links a {
    color: white;
    text-decoration: none;
    transition: var(--transition);
}

.social-links a:hover,
.footer-links a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.footer-bottom {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 1rem;
    text-align: center;
    margin-top: 2rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1rem;
}

/* Kontraszt mód */
body:target {
    --primary-color: #000;
    --secondary-color: #ff0;
    --accent-color: #f00;
    --light-color: #fff;
    --dark-color: #000;
    --text-color: #000;
    --link-color: #00f;
    --visited-link-color: #800080;
    --background-color: #fff;
    --header-bg: #000;
    --nav-bg: #333;
    --footer-bg: #000;
    --card-bg: #fff;
}

body:target .hero {
    background: #000;
}

body:target .product-card {
    border: 1px solid #000;
}

/* Reszponzív tervezés */
@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
        align-items: center;
    }
    
    nav li {
        margin: 0.5rem 0;
    }
    
    .hero h2 {
        font-size: 2rem;
    }
    
    .new-product-content {
        flex-direction: column;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 0.5rem;
    }
}

@media (min-width: 769px) {
    .new-product-content {
        flex-direction: row;
        align-items: center;
    }
    
    .new-product-image {
        max-width: 300px;
    }
}