/* public/assets/css/market.css */

/* --- Hero Szekció --- */
.market-hero {
    background: linear-gradient(135deg, var(--brand-teal) 0%, var(--brand-rosy) 100%);
    color: white;
    padding: 4rem 1rem;
    text-align: center;
    border-radius: 0 0 50% 50% / 4%; /* Enyhe ív az alján */
    margin-bottom: 3rem;
    position: relative;
    overflow: hidden;
}

.market-hero h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.market-hero p {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* Keresőmező a Hero-ban */
.hero-search-wrapper {
    max-width: 500px;
    margin: 2rem auto 0;
    position: relative;
}

.hero-search-input {
    width: 100%;
    padding: 1rem 1.5rem;
    padding-left: 3rem;
    border: none;
    border-radius: 50px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.hero-search-input:focus {
    outline: none;
    box-shadow: 0 4px 25px rgba(0,0,0,0.25);
    transform: scale(1.02);
}

.search-icon {
    position: absolute;
    left: 1.2rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

/* --- Piac Kártyák (Grid) --- */
.market-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

.market-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border-color: var(--primary-color);
}

/* Kép konténer */
.market-img-wrapper {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    background-color: #f1f5f9;
    overflow: hidden;
}

.market-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

/* Dátum Badge a képen */
.date-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(4px);
    padding: 8px 12px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    min-width: 60px;
}

.date-month {
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--text-muted);
    line-height: 1;
}

.date-day {
    display: block;
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--primary-dark);
    line-height: 1.1;
}

/* Tartalom */
.market-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.market-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #1e293b;
    line-height: 1.3;
}

.market-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #64748b;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.market-footer {
    margin-top: auto;
    text-align: center; /* Középre igazítás */
    padding-top: 15px;
}

.btn-apply {
    width: auto; /* Ne legyen 100% */
    display: inline-block;
    min-width: 180px; /* De legyen egy szép alapmérete */
    background-color: var(--primary-color);
    color: white;
    font-weight: 600;
    padding: 0.6rem 1.5rem; /* Kicsit kisebb padding */
    border-radius: 50px; /* Kerekített, modern gomb */
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-apply:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(117, 181, 167, 0.4);
}

/* Mobilon maradhat szélesebb a könnyebb kattintásért */
@media (max-width: 768px) {
    .btn-apply {
        width: 100%;
        border-radius: 10px;
    }
}

/* Üres állapot */
.empty-state {
    text-align: center;
    padding: 4rem 1rem;
    background: #f8fafc;
    border-radius: 20px;
    border: 2px dashed #cbd5e1;
}

/* public/assets/css/market.css kiegészítés */

@media (max-width: 768px) {
    .market-hero {
        padding: 3rem 1rem;
        border-radius: 0 0 30px 30px;
    }
    
    .market-hero h1 {
        font-size: 1.8rem;
    }
    
    .hero-search-wrapper {
        margin-top: 1.5rem;
    }
    
    /* Kártyák mobilon: teljes szélesség, de ne legyen túl magas */
    .market-img-wrapper {
        padding-top: 60%; /* Kicsit laposabb */
    }
    
    .market-card {
        margin-bottom: 20px;
        box-shadow: 0 4px 15px rgba(0,0,0,0.05); /* Kisebb árnyék mobilon a teljesítményért */
    }
}