/* Referenciák oldal stílusok */

/* Filter Controls */
.references-controls {
    background: white;
    padding: 1rem; /* kompaktabb */
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 1rem; /* kevesebb alsó tér */
}

.search-container {
    margin-bottom: 0.75rem; /* kisebb függőleges tér */
}

.search-box {
    position: relative;
    max-width: 500px;
    margin: 0 auto;
}

.search-box i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    z-index: 2;
}

.search-box input {
    width: 100%;
    padding: 0.55rem 0.9rem 0.55rem 2.2rem; /* alacsonyabb mező */
    border: 2px solid #e1e5e9;
    border-radius: 25px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.search-box input:focus {
    outline: none;
    border-color: #0056a6;
    background: white;
    box-shadow: 0 0 0 3px rgba(0, 86, 166, 0.1);
}

.clear-btn {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.clear-btn:hover {
    background: #c82333;
}

.filter-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: flex-end;
    justify-content: center;
}

.filter-group {
    display: flex;
    flex-direction: column;
    min-width: 180px;
    flex: 1;
}

.filter-group label {
    font-weight: 600;
    margin-bottom: 0.35rem; /* kisebb távolság a label és a select között */
    color: #333;
    font-size: 0.85rem;
}

.filter-group select {
    padding: 0.5rem 0.75rem;
    border: 2px solid #e1e5e9;
    border-radius: 6px;
    font-size: 0.9rem;
    background: white;
    transition: border-color 0.3s ease;
    height: 42px; /* Egyforma magasság */
    box-sizing: border-box;
}

.filter-group select:focus {
    outline: none;
    border-color: #0056a6;
}

.btn-secondary {
    background: #6c757d;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    height: 42px; /* Egyforma magasság a select mezőkkel */
    box-sizing: border-box;
    white-space: nowrap;
}

.btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-1px);
}

.results-info {
    text-align: center;
    margin-top: 0.5rem; /* kisebb felső tér */
}

.results-info p {
    color: #666;
    font-size: 0.85rem;
    margin: 0;
}

/* No Results State */
.no-results {
    text-align: center;
    padding: 3rem 1rem;
    color: #666;
}

.no-results i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #ddd;
}

.no-results h3 {
    margin-bottom: 0.5rem;
    color: #333;
}

.no-results p {
    font-size: 1rem;
    margin: 0;
}

.references-hero {
    background: linear-gradient(rgba(0, 9, 40, 0.8), rgba(0, 86, 166, 0.7)), url('../assets/references/references-hero.jpg');
    background-size: cover;
    background-position: center;
}

.case-studies {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.case-study {
    background-color: var(--white-color);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
}

.case-study h3 {
    color: var(--primary-color);
    padding: 20px;
    margin: 0;
    font-size: 22px;
    border-bottom: 1px solid #eee;
}

.case-content {
    display: flex;
    flex-wrap: wrap;
    padding: 20px;
}

.case-image {
    flex: 1;
    min-width: 300px;
    max-width: 500px;
    margin-right: 30px;
    margin-bottom: 20px;
}

.case-image img {
    width: 100%;
    height: auto;
    border-radius: 5px;
    box-shadow: var(--shadow);
}

.case-text {
    flex: 2;
    min-width: 300px;
}

.case-text ul {
    margin: 20px 0;
    padding-left: 20px;
}

.case-text li {
    margin-bottom: 10px;
    list-style-type: disc;
}

.case-text p:last-child {
    font-weight: 500;
    color: var(--secondary-color);
}

.contact-cta {
    background: linear-gradient(rgba(0, 9, 40, 0.9), rgba(0, 86, 166, 0.8)), url('../assets/references/contact-bg.jpg');
    background-size: cover;
    background-position: center;
    color: var(--white-color);
    padding: 60px 0;
}

.contact-cta h2 {
    margin-bottom: 20px;
    font-size: 28px;
}

.contact-cta p {
    margin-bottom: 30px;
    font-size: 18px;
}

/* Reszponzív módosítások */
@media (max-width: 768px) {
    .references-controls {
        padding: 0.75rem;
    }
    
    .filter-container {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }
    
    .filter-group {
        min-width: auto;
        flex: none;
    }
    
    .btn-secondary {
        align-self: center;
        min-width: 200px;
        justify-content: center;
    }
    
    .case-content {
        flex-direction: column;
    }
    
    .case-image {
        margin-right: 0;
        max-width: 100%;
    }
}
