/* Enhanced Custom Styles for Hops Website */

/* Card Hover Effects */
.hover-shadow {
    transition: all 0.3s ease;
    border: 1px solid #e0e0e0;
}

.hover-shadow:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1) !important;
    border-color: #198754;
}

/* Search Results Enhancement */
.search-results-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 30px;
    border-left: 5px solid #198754;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.search-results-header h3 {
    color: #198754;
    font-size: 1.75rem;
    margin-bottom: 12px;
}

.search-results-header .results-summary {
    color: #6c757d;
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Hop Cards Enhancement */
.card {
    border: none;
    transition: all 0.3s ease;
}

.card:hover .card-title a {
    color: #146c43 !important;
}

.card-body {
    padding: 1.5rem;
}

.card-title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

/* Badges Enhancement */
.badge {
    font-weight: 500;
    padding: 0.4em 0.8em;
    font-size: 0.8rem;
}

.badge.bg-warning {
    background-color: #ffc107 !important;
    color: #000 !important;
}

/* Search Highlighting */
mark, .search-result-highlight {
    background-color: #fff3cd;
    padding: 0.1em 0.3em;
    border-radius: 3px;
    font-weight: 600;
}

/* No Results Style */
.no-results {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 60px 20px;
    text-align: center;
    border: 2px dashed #dee2e6;
}

.no-results i {
    font-size: 4rem;
    color: #dee2e6;
    margin-bottom: 20px;
    display: block;
}

.no-results h4 {
    color: #6c757d;
    margin-bottom: 15px;
}

.no-results p {
    color: #868e96;
    margin-bottom: 20px;
}

/* Active Filter Pills Animation */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.active-filter-pill {
    animation: slideIn 0.3s ease;
}

/* Beer Style Cards */
#by-style .card {
    border: 2px solid transparent;
    background: #f8f9fa;
}

#by-style .card:hover {
    border-color: #198754;
    background: #fff;
}

#by-style .card i {
    color: #198754;
    transition: transform 0.3s ease;
}

#by-style .card:hover i {
    transform: scale(1.1);
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Section Spacing */
section {
    position: relative;
}

section:target::before {
    content: "";
    display: block;
    height: 80px;
    margin-top: -80px;
}

/* Loading State */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin: -20px 0 0 -20px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #198754;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Improvements */
@media (max-width: 768px) {
    .search-results-header {
        padding: 20px;
        text-align: center;
    }
    
    .search-results-header h3 {
        font-size: 1.5rem;
    }
    
    .active-filter-pill {
        font-size: 0.85rem;
        padding: 5px 10px;
    }
    
    #active-filters-display {
        justify-content: center;
    }
}

/* Improved Form Controls */
.form-select:focus,
.form-control:focus {
    border-color: #198754;
    box-shadow: 0 0 0 0.25rem rgba(25, 135, 84, 0.25);
}

/* Button Enhancements */
.btn-success {
    background-color: #198754;
    border-color: #198754;
    transition: all 0.3s ease;
}

.btn-success:hover {
    background-color: #146c43;
    border-color: #146c43;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(25, 135, 84, 0.3);
}

.btn-outline-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(25, 135, 84, 0.3);
}

/* Hero Section Enhancement */
.bg-gradient {
    position: relative;
    overflow: hidden;
}

.bg-gradient::before {
    content: "";
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: pulse 15s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

/* Sticky Header Shadow */
.navbar.sticky-top {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Footer Enhancement */
footer {
    border-top: 3px solid #198754;
}