/* Alap stílusok */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #fefefe;
    color: #343a40;
    line-height: 1.7;
    padding-top: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Fejléc */
header.main-header {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
    padding: 1.2rem 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.8rem;
    font-weight: 700;
}

.logo i {
    color: #f39c12;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
    transition: all 0.3s ease;
}

nav ul li a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #f39c12;
    transition: all 0.3s ease;
}

nav ul li a:hover {
    color: #f39c12;
}

nav ul li a:hover:after {
    width: 100%;
}

.mobile-menu {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero szekció */
.hero-section {
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('https://images.unsplash.com/photo-1504674900247-0877df9cc836?ixlib=rb-4.0.3&auto=format&fit=crop&w=1350&q=80');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 5rem 0;
    text-align: center;
    border-radius: 0 0 12px 12px;
    margin-bottom: 3rem;
}

.hero-section h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-section p.lead {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 2rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

/* Keresőmező */
.search-container {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

.search-bar {
    display: flex;
    border-radius: 50px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.search-bar input {
    flex: 1;
    padding: 1rem 1.5rem;
    border: none;
    font-size: 1rem;
    outline: none;
}

.search-bar button {
    background-color: #f39c12;
    color: white;
    border: none;
    padding: 0 1.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-bar button:hover {
    background-color: #e67e22;
}

/* Fő tartalom */
.main-content {
    display: flex;
    flex-wrap: wrap;
    gap: 2.5rem;
    margin: 3rem 0;
}

.main-content > .recipes {
    flex: 2;
    min-width: 300px;
}

.main-content > .sidebar {
    flex: 1;
    min-width: 280px;
}

.section-title {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid #e74c3c;
    display: inline-block;
    color: #2c3e50;
}

/* Recept kártyák */
.recipes-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

.recipes-grid > .card.recept-card {
    flex: 1 1 300px;
    max-width: 100%;
}

.card.recept-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    border: none;
}

.card.recept-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.recept-kep, .recept-default-kep {
    height: 200px;
    background-color: #eee;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
}

.recept-default-kep i {
    font-size: 3rem;
}

.recipe-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: #f39c12;
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.card-body {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-title {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    color: #2c3e50;
    line-height: 1.4;
}

.recept-meta {
    display: flex;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: #6c757d;
    gap: 1rem;
    flex-wrap: wrap;
}

.recept-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.card-text {
    margin-bottom: 1.5rem;
    color: #6c757d;
    flex-grow: 1;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding: 1rem 1.5rem;
    background-color: transparent;
    border-top: 1px solid #e9ecef;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #e74c3c;
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.read-more:hover {
    background-color: #c0392b;
    transform: translateX(5px);
    color: white;
    text-decoration: none;
}

.recipe-rating {
    color: #f39c12;
    font-weight: 600;
}

/* Oldalsáv */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.sidebar-widget {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.sidebar-widget h3 {
    margin-bottom: 1.2rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e74c3c;
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 10px;
}

.category-list {
    list-style: none;
}

.category-list li {
    margin-bottom: 0.8rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid #e9ecef;
}

.category-list li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.category-list a {
    color: #343a40;
    text-decoration: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.category-list a:hover {
    color: #e74c3c;
    text-decoration: none;
}

.category-count {
    background-color: #e9ecef;
    color: #6c757d;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    font-size: 0.8rem;
}

/* AdSense hirdetések */
.ad-container {
    background-color: #f8f9fa;
    border: 1px dashed #ddd;
    padding: 1.5rem;
    text-align: center;
    border-radius: 12px;
    margin: 1.5rem 0;
}

.ad-label {
    font-size: 0.8rem;
    color: #6c757d;
    margin-bottom: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.ad-placeholder {
    background: linear-gradient(135deg, #e9ecef 0%, #e9ecef 100%);
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    border-radius: 8px;
    font-weight: 500;
}

.ad-placeholder.sidebar-ad {
    height: 600px;
}

/* Hírlevél */
.newsletter {
    background: linear-gradient(135deg, #2c3e50 0%, #1a252f 100%);
    color: white;
    padding: 2.5rem;
    border-radius: 12px;
    text-align: center;
}

.newsletter h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.newsletter p {
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.newsletter-form {
    display: flex;
    border-radius: 50px;
    overflow: hidden;
    max-width: 400px;
    margin: 0 auto;
}

.newsletter-form input {
    flex: 1;
    padding: 0.8rem 1.2rem;
    border: none;
    font-size: 1rem;
    outline: none;
}

.newsletter-form button {
    background-color: #f39c12;
    color: white;
    border: none;
    padding: 0 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.newsletter-form button:hover {
    background-color: #e67e22;
}

/* Lábléc */
.main-footer {
    background-color: #2c3e50;
    color: white;
    padding: 4rem 0 2rem;
    margin-top: auto;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    gap: 2.5rem;
}

.footer-section {
    flex: 1 1 calc(25% - 2.5rem);
    min-width: 200px;
}

.footer-section h4 {
    margin-bottom: 1.5rem;
    color: #f39c12;
    font-size: 1.2rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.8rem;
}

.footer-section a {
    color: #ddd;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-section a:hover {
    color: #f39c12;
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255,255,255,0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: #f39c12;
    transform: translateY(-5px);
}

.copyright {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: #aaa;
    font-size: 0.9rem;
}

/* Alert stílusok */
.alert {
    padding: 1rem;
    border-radius: 12px;
    margin-bottom: 1rem;
}

.alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Reszponzív design */
@media (max-width: 992px) {
    .footer-section {
        flex: 1 1 calc(50% - 2.5rem);
    }
}

@media (max-width: 768px) {
    .main-content {
        flex-direction: column;
    }
    
    .header-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    nav ul {
        gap: 1.5rem;
    }
    
    .hero-section h1 {
        font-size: 2.2rem;
    }
    
    .hero-section p.lead {
        font-size: 1rem;
    }
    
    .recipes-grid > .card.recept-card {
        flex: 1 1 100%;
    }
    
    .footer-content {
        flex-direction: column;
    }
    
    .footer-section {
        flex: 1 1 100%;
    }
    
    .mobile-menu {
        display: block;
    }
    
    nav ul {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero-section {
        padding: 3rem 0;
    }
    
    .hero-section h1 {
        font-size: 1.8rem;
    }
    
    .recept-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
}