/* assets/css/tabs/strains.css */

/* --- ZÜCHTER FILTER DROPDOWN --- */
.breeder-filter-container {
    margin-bottom: 25px;
    background: var(--primary-light);
    padding: 15px;
    border-radius: 10px;
    border-left: 4px solid var(--primary-color);
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.breeder-filter-container label {
    font-weight: bold;
    color: var(--primary-dark);
}

#breederFilter {
    padding: 10px 15px;
    border-radius: 8px;
    border: 1px solid #ccc;
    outline: none;
    font-size: 1rem;
    cursor: pointer;
    min-width: 280px;
    background-color: var(--white);
    transition: border-color 0.2s, box-shadow 0.2s;
}

#breederFilter:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(90, 125, 110, 0.1);
}

/* --- TERPENE FILTER BUTTONS --- */
.terpene-filter-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.terpene-filter-btn {
    background: var(--white);
    border: 1px solid #ccc;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: bold;
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.terpene-filter-btn:hover {
    border-color: var(--primary-color);
    background: var(--primary-light);
}

.terpene-filter-btn.active {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
    box-shadow: 0 4px 10px rgba(90, 125, 110, 0.3);
}

/* --- STRAIN KARTEN HEADER (NAME LINKS, BADGE RECHTS) --- */
.strain-card .card-head {
    display: flex;
    justify-content: space-between; /* Drückt Badge nach rechts */
    align-items: flex-start;        /* Richtet beide oben aus */
    gap: 12px;                      /* Abstand falls der Name sehr lang ist */
    margin-bottom: 5px;
}

.strain-card .card-head h4 {
    margin: 0;
    font-size: 1.3rem;
    color: var(--primary-dark);
    line-height: 1.2;
    flex: 1; /* Name nimmt den restlichen Platz ein */
}

.strain-card .card-head .tag {
    white-space: nowrap; /* Verhindert Zeilenumbruch im Badge */
    margin-top: 2px;     /* Feinjustierung zur Baseline des Namens */
}

/* --- STRAIN KARTEN INFOS --- */
.breeder-name {
    font-size: 0.85rem;
    color: var(--text-light);
    margin: 5px 0 15px 0;
}

/* --- THC / CBD BOXEN --- */
.strain-stats {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px dashed var(--border-color);
}

.stat-box {
    flex: 1;
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 8px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.stat-box .stat-label {
    display: block;
    font-size: 0.7rem;
    color: #999;
    text-transform: uppercase;
    font-weight: bold;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.stat-box strong {
    font-size: 1.1rem;
    color: var(--primary-dark);
}

/* --- TERPENE BADGES (MODAL TRIGGER) --- */
.strain-terpene-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 15px;
}

.terpene-mini-badge {
    background: rgba(90, 125, 110, 0.08);
    color: var(--primary-dark);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 6px;
    border: 1px solid rgba(90, 125, 110, 0.15);
    transition: all 0.2s ease;
    cursor: pointer;
}

.terpene-mini-badge i {
    font-size: 0.85rem;
}

.terpene-mini-badge:hover {
    background: var(--primary-color) !important;
    color: var(--white) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(90, 125, 110, 0.2);
}

/* --- PHÄNOTYP FARBEN --- */
.tag-sativa { background: #fff3cd; color: #856404; border: 1px solid #ffeeba; }
.tag-indica { background: #e2d9f3; color: #38187d; border: 1px solid #d0c0eb; }
.tag-hybrid { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }

/* --- DETAILS --- */
.strain-card .terpene-details {
    margin-top: auto; 
    background: rgba(255, 255, 255, 0.6);
    border-radius: 8px;
    padding: 12px;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.strain-card .terpene-details p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.4;
}

.strain-card .terpene-details p:first-child {
    margin-bottom: 5px;
}

/* --- MOBILE OPTIMIERUNG --- */
@media (max-width: 600px) {
    .breeder-filter-container { 
        flex-direction: column; 
        align-items: stretch; 
    }
    #breederFilter { 
        min-width: 100%; 
    }
}

/* --- TRADING CARD HOVER EFFEKT --- */
.strain-trading-card:hover {
    transform: rotate(0deg) scale(1.05) !important;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2) !important;
    z-index: 10;
}

@media (max-width: 600px) {
    .detail-header {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center;
    }
    .strain-trading-card {
        margin-bottom: 20px;
        transform: rotate(0deg) !important;
    }
    .strain-stats {
        justify-content: center;
    }
}

/* --- VISUAL ANALYSIS CONTAINER (BILD LINKS, TEXT RECHTS) --- */
.visual-analysis-container {
    display: grid;
    /* Spalte 1: Exakt die Breite des Bildes (z.B. 300px), Spalte 2: Restlicher Platz */
    grid-template-columns: 320px 1fr;
    gap: 30px;
    align-items: stretch; /* Zwingt beide Boxen auf die exakt gleiche Höhe */
    margin-top: 40px;
}

.strain-trading-card {
    display: flex;
    flex-direction: column;
    height: 100%; /* Nimmt die Höhe des Grids an */
}

.strain-trading-card img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Bild wird niemals beschnitten, behält Format */
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    border: 4px solid var(--white);
    background-color: var(--white); /* Verhindert durchsichtige Ecken, falls Bild schmaler ist */
}

.terpene-analysis-section {
    padding: 30px;
    background: #f4f7f6;
    border-radius: 15px;
    border: 1px solid #e0e6e4;
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Verteilt Inhalt gleichmäßig (Titel oben, Fazit unten) */
    height: 100%; /* Nimmt die Höhe des Grids an */
}

/* --- MOBILE OPTIMIERUNG --- */
@media (max-width: 900px) { /* Brechpunkt etwas höher gesetzt für Tablets */
    .visual-analysis-container {
        /* Auf Handys/Tablets rutschen sie untereinander */
        grid-template-columns: 1fr; 
    }

    .strain-trading-card img {
        max-width: 350px; /* Bild wird auf Handys nicht riesig */
        margin: 0 auto;
    }
}