/* Layout Optimization & Spacing Fixes */

/* Nav/Search Area */
.nav {
    background: #F9F7F5;
    padding: 1.25rem 0;
    margin: 0;
    box-shadow: 0px 4px 12px rgba(0,0,0,0.08);
    border-bottom: 1px solid rgba(184, 134, 139, 0.15);
}

.search-container {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    background: #F9F7F5;
    padding: 1rem;
    border-radius: 12px;
    box-shadow: 0px 4px 12px rgba(0,0,0,0.08);
}

.search-hint {
    position: absolute;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.8rem;
    color: #999;
    pointer-events: none;
}

.search-hint kbd {
    background: #f0f0f0;
    border: 1px solid #EEDDD8;
    border-radius: 3px;
    padding: 2px 6px;
    font-size: 0.75rem;
    font-family: inherit;
}

#clearSearch {
    position: absolute;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: #999;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 4px 8px;
    transition: color 0.2s ease;
}

#clearSearch:hover {
    color: #D4A5A5;
}

.search-input {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0.85rem 1.2rem;
    border: 2px solid #EEDDD8;
    border-radius: 10px;
    font-size: 1.05rem;
    color: var(--text-primary);
    background: white;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
    box-shadow: 0px 4px 12px rgba(0,0,0,0.08);
}

.search-input:focus {
    border-color: #D4A5A5;
    box-shadow: 0px 4px 14px rgba(212, 165, 165, 0.3);
    transform: translateY(-1px);
}

.filter-container {
    max-width: 1200px;
    margin: 1rem auto 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    justify-content: center;
}

/* Section Dividers */
.tools-section {
    position: relative;
}

.tools-section::after {
    content: '';
    display: block;
    height: 1px;
    background: linear-gradient(to right, transparent, #EEDDD8 20%, #EEDDD8 80%, transparent);
    margin-top: 2rem;
}

.tools-section:last-of-type::after {
    display: none;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .search-container {
        max-width: 90%;
    }
    
    .logo-banner {
        max-width: 280px !important;
    }
    
    .logo-image {
        width: 280px !important;
    }
}

@media (max-width: 480px) {
    .search-container {
        max-width: 95%;
    }
    
    .logo-banner {
        max-width: 240px !important;
    }
    
    .logo-image {
        width: 240px !important;
    }
}
