/* ============================================
   CATALOGUE.CSS - Cannabis Strains Catalogue
   ============================================ */

:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --card-bg: #ffffff;
    --text-primary: #2d3436;
    --text-secondary: #636e72;
    --border-radius: 15px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 50%, #7e22ce 100%);
    min-height: 100vh;
    font-family: 'Montserrat', 'Open Sans', sans-serif;
}

/* === HERO SECTION === */
.catalogue-hero {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 3rem 2rem;
    margin-bottom: 3rem;
    border: 1px solid rgba(255,255,255,0.2);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
}

.catalogue-hero h1 {
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.catalogue-hero p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* === BANK LOGO HEADER === */
.bank-logo-header {
    background: rgba(255,255,255,0.95);
    padding: 1rem;
    border-radius: 15px;
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.bank-logo-header img {
    height: 60px;
    object-fit: contain;
}

.bank-logo-header h2 {
    margin: 0;
    color: #2d3436;
    font-weight: 700;
}

/* === SEARCH BOX STYLE === */
.search-box {
    position: relative !important;
    max-width: 600px;
    margin: 0 auto 2rem;
}

/* Applichiamo lo stile all'SVG che genera FontAwesome */
.search-box svg {
    position: absolute !important;
    left: 18px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 1.25rem !important; /* Dimensione corretta dell'icona */
    height: 1.25rem !important;
    z-index: 10 !important;
    pointer-events: none;
}

/* Colori Duotone: rendiamo l'icona "bella" */
.fa-primary {
    fill: #667eea !important; /* Colore principale (viola) */
}

.fa-secondary {
    fill: #764ba2 !important; /* Colore secondario */
    opacity: 0.4;             /* L'effetto trasparenza tipico dei Duotone */
}

.search-box input {
    width: 100% !important;
    padding: 12px 20px 12px 50px !important; /* Più spazio a sinistra per l'icona */
    border-radius: 50px !important;
    border: 2px solid rgba(255,255,255,0.2) !important;
    background: rgba(255,255,255,0.9) !important;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    font-family: 'Montserrat', sans-serif;
}

.search-box input:focus {
    background: #ffffff !important;
    box-shadow: 0 0 15px rgba(102, 126, 234, 0.4) !important;
    border-color: #667eea !important;
}
/* === FILTER BUTTONS === */
.filter-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

.filter-btn {
    padding: 0.6rem 1.2rem;
    border: 2px solid #e0e0e0;
    border-radius: 25px;
    background: white;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-btn:hover {
    border-color: #667eea;
    color: #667eea;
    transform: translateY(-2px);
}

.filter-btn.active {
    background: var(--primary-gradient);
    color: white;
    border-color: transparent;
}

/* === STATS COUNTER === */
.stats-counter {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.stat-item {
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    padding: 1rem 2rem;
    border-radius: 15px;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.2);
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: white;
    display: block;
}

.stat-label {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.8);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* === STRAINS GRID === */
.strains-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 1.5rem;
}

/* === STRAIN CARDS === */
.strain-card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    transition: var(--transition);
    overflow: hidden;
    height: 100%;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    position: relative;
}

.strain-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0,0,0,0.25);
}

.strain-card a {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* === STRAIN IMAGE === */
.strain-img-wrapper {
    position: relative;
    height: 220px;
    overflow: hidden;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.strain-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.strain-card:hover .strain-img-wrapper img {
    transform: scale(1.1);
}

/* === STRAIN TYPE BADGE === */
.strain-type {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 0.4rem 0.9rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    z-index: 10;
    backdrop-filter: blur(10px);
    color: white;
}

.strain-type.auto {
    background: rgba(255, 152, 0, 0.9);
}

.strain-type.fem {
    background: rgba(233, 30, 99, 0.9);
}

.strain-type.regular {
    background: rgba(76, 175, 80, 0.9);
}

/* === STRAIN INFO === */
.strain-info {
    padding: 1.25rem;
}

.strain-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    min-height: 50px;
    display: flex;
    align-items: center;
}

.strain-bank {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.strain-bank i {
    color: #667eea;
}

/* === STRAIN BADGES === */
.strain-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.strain-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
}

.strain-badge.auto {
    background: rgb(96 255 0 / 10%);
    color: #75e300;
}

.strain-badge.photo {
    background: rgba(255, 193, 7, 0.1);
    color: #ffa726;
}

.strain-badge.fem {
    background: rgba(233, 30, 99, 0.1);
    color: #e91e63;
}

.strain-badge.cbd {
    background: rgba(76, 175, 80, 0.1);
    color: #4caf50;
}

/* === NO RESULTS === */
.no-results {
    text-align: center;
    padding: 4rem 2rem;
    color: white;
}

.no-results i {
    font-size: 4rem;
    opacity: 0.3;
    margin-bottom: 1rem;
}

.no-results h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.no-results p {
    color: rgba(255,255,255,0.7);
    font-size: 1.1rem;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .catalogue-hero {
        padding: 2rem 1rem;
    }
    
    .catalogue-hero h1 {
        font-size: 1.8rem;
    }
    
    .strain-img-wrapper {
        height: 180px;
    }
    
    .strains-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 1rem;
    }
    
    .strain-name {
        font-size: 0.95rem;
        min-height: 40px;
    }
    
    .filter-group {
        gap: 0.5rem;
    }
    
    .filter-btn {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
    
    .stats-counter {
        gap: 1rem;
    }
    
    .stat-item {
        padding: 0.75rem 1.25rem;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
}

@media (max-width: 576px) {
    .strains-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}