/* Clover Garden Library - Frontend Styles */

/* ===== Wrapper ===== */
.cgl-catalogus-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    font-family: inherit;
}

/* ===== Filters ===== */
.cgl-filters {
    margin-bottom: 32px;
    padding: 24px;
    background: #f8faf8;
    border: 1px solid #d4e6d4;
    border-radius: 8px;
}

.cgl-zoekbalk {
    margin-bottom: 16px;
}

.cgl-zoek-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #d4e6d4;
    border-radius: 6px;
    font-size: 16px;
    background: #fff;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.cgl-zoek-input:focus {
    outline: none;
    border-color: #4a7c59;
    box-shadow: 0 0 0 3px rgba(74, 124, 89, 0.1);
}

.cgl-filter-rij {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.cgl-filter-groep {
    flex: 1;
    min-width: 150px;
}

.cgl-filter-select {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid #d4e6d4;
    border-radius: 6px;
    font-size: 14px;
    background: #fff;
    cursor: pointer;
    appearance: auto;
    transition: border-color 0.2s;
}

.cgl-filter-select:focus {
    outline: none;
    border-color: #4a7c59;
}

.cgl-filters-wissen {
    padding: 10px 20px;
    background: transparent;
    border: 2px solid #4a7c59;
    border-radius: 6px;
    color: #4a7c59;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.cgl-filters-wissen:hover {
    background: #4a7c59;
    color: #fff;
}

/* ===== Grid ===== */
.cgl-grid {
    display: grid;
    gap: 24px;
}

.cgl-kolommen-2 {
    grid-template-columns: repeat(2, 1fr);
}

.cgl-kolommen-3 {
    grid-template-columns: repeat(3, 1fr);
}

.cgl-kolommen-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* ===== Plant Kaart ===== */
.cgl-plant-kaart {
    background: #fff;
    border: 1px solid #e0e8e0;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.cgl-plant-kaart:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(74, 124, 89, 0.12);
}

.cgl-plant-afbeelding {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #f0f4f0;
}

.cgl-plant-afbeelding img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.cgl-plant-kaart:hover .cgl-plant-afbeelding img {
    transform: scale(1.05);
}

.cgl-geen-afbeelding {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #a0bfa0;
    font-size: 48px;
}

.cgl-plant-info {
    padding: 16px;
}

.cgl-plant-titel {
    margin: 0 0 4px 0;
    font-size: 18px;
    line-height: 1.3;
}

.cgl-plant-titel a {
    color: #2d5a3d;
    text-decoration: none;
}

.cgl-plant-titel a:hover {
    color: #4a7c59;
}

.cgl-plant-latijn {
    margin: 0 0 8px 0;
    color: #6b8f6b;
    font-size: 13px;
}

.cgl-plant-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
}

.cgl-tag {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.cgl-tag-categorie {
    background: #e8f5e9;
    color: #2e7d32;
}

.cgl-tag-kleur {
    background: #fff3e0;
    color: #e65100;
}

.cgl-tag-moeilijkheid {
    background: #e3f2fd;
    color: #1565c0;
}

.cgl-tag-seizoen {
    background: #fce4ec;
    color: #ad1457;
}

.cgl-tag-zonlicht {
    background: #fffde7;
    color: #f57f17;
}

.cgl-plant-details {
    display: flex;
    gap: 12px;
    margin-bottom: 8px;
}

.cgl-detail {
    font-size: 13px;
    color: #666;
}

.cgl-plant-excerpt {
    font-size: 14px;
    color: #555;
    line-height: 1.5;
    margin-bottom: 12px;
}

.cgl-meer-lezen {
    display: inline-block;
    color: #4a7c59;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: color 0.2s;
}

.cgl-meer-lezen:hover {
    color: #2d5a3d;
}

/* ===== Geen resultaten ===== */
.cgl-geen-resultaten {
    grid-column: 1 / -1;
    text-align: center;
    padding: 48px 24px;
    color: #888;
    font-size: 16px;
}

/* ===== Laden indicator ===== */
.cgl-laden {
    grid-column: 1 / -1;
    text-align: center;
    padding: 32px;
}

.cgl-laden::after {
    content: '';
    display: inline-block;
    width: 32px;
    height: 32px;
    border: 3px solid #d4e6d4;
    border-top-color: #4a7c59;
    border-radius: 50%;
    animation: cgl-spin 0.8s linear infinite;
}

@keyframes cgl-spin {
    to { transform: rotate(360deg); }
}

/* ===== Paginering ===== */
.cgl-paginering {
    text-align: center;
    margin-top: 32px;
}

.cgl-meer-laden {
    padding: 14px 36px;
    background: #4a7c59;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.cgl-meer-laden:hover {
    background: #3a6347;
}

.cgl-meer-laden:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* ===== Single Plant (shortcode versie) ===== */
.cgl-single-plant {
    max-width: 900px;
    margin: 0 auto;
}

.cgl-fout {
    padding: 16px;
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 6px;
    color: #856404;
}

/* ===== Single Template - Wrapper ===== */
.cgl-single-wrapper {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px 60px;
    font-family: inherit;
}

/* ===== Hero Section ===== */
.cgl-hero {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 0;
    min-height: 320px;
    display: flex;
    align-items: flex-end;
}

.cgl-hero-image {
    position: absolute;
    inset: 0;
}

.cgl-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cgl-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.1) 60%, transparent 100%);
}

.cgl-hero-content {
    position: relative;
    z-index: 2;
    padding: 40px 36px;
    width: 100%;
}

.cgl-hero-titel {
    margin: 0 0 4px 0;
    font-size: 36px;
    color: #fff;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.cgl-hero-latijn {
    margin: 0 0 12px 0;
    font-size: 18px;
    color: rgba(255,255,255,0.85);
}

.cgl-hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.cgl-hero-tags .cgl-tag {
    background: rgba(255,255,255,0.2);
    color: #fff;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255,255,255,0.3);
    padding: 4px 14px;
    font-size: 13px;
}

/* ===== Kenmerken Tags Bar ===== */
.cgl-kenmerken-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0 0 20px 0;
    margin-bottom: 24px;
    border-bottom: 1px solid #e0e8e0;
}

.cgl-kenmerken-bar .cgl-tag {
    padding: 5px 14px;
    font-size: 13px;
}

/* ===== Terug link ===== */
.cgl-terug-bar {
    padding: 16px 0;
}

.cgl-terug-link {
    color: #4a7c59;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: color 0.2s;
}

.cgl-terug-link:hover {
    color: #2d5a3d;
}

.cgl-terug-bar-onder {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #e0e8e0;
}

/* ===== 4 Detail Kaarten ===== */
.cgl-detail-kaarten {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 40px;
}

.cgl-kaart {
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid transparent;
}

.cgl-kaart-header {
    padding: 14px 20px;
}

.cgl-kaart-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cgl-kaart-body {
    padding: 4px 20px 20px;
}

/* --- Kaart 1: Zaaien (roze) --- */
.cgl-kaart-zaaien {
    background: #fdf2f4;
    border-color: #f5c6ce;
}

.cgl-kaart-zaaien .cgl-kaart-header {
    background: #f8d7dd;
}

.cgl-kaart-zaaien .cgl-kaart-header h3 {
    color: #8b2040;
}

/* --- Kaart 2: In de tuin (groen) --- */
.cgl-kaart-tuin {
    background: #f0f8f0;
    border-color: #b8dab8;
}

.cgl-kaart-tuin .cgl-kaart-header {
    background: #d4edda;
}

.cgl-kaart-tuin .cgl-kaart-header h3 {
    color: #1b5e20;
}

/* --- Kaart 3: Vasteleven (paars) --- */
.cgl-kaart-vasteleven {
    background: #f5f0fa;
    border-color: #d1b3e8;
}

.cgl-kaart-vasteleven .cgl-kaart-header {
    background: #e1d5f0;
}

.cgl-kaart-vasteleven .cgl-kaart-header h3 {
    color: #4a148c;
}

/* --- Kaart 4: Opmerking (oranje) --- */
.cgl-kaart-opmerking {
    background: #fff8f0;
    border-color: #ffd8a8;
}

.cgl-kaart-opmerking .cgl-kaart-header {
    background: #ffe8cc;
}

.cgl-kaart-opmerking .cgl-kaart-header h3 {
    color: #bf360c;
}

/* --- Kaart rijen --- */
.cgl-kaart-rij {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 10px 0;
    border-bottom: 1px solid rgba(0,0,0,0.06);
}

.cgl-kaart-rij:last-child {
    border-bottom: none;
}

.cgl-kaart-rij-blok {
    flex-direction: column;
    gap: 6px;
}

.cgl-kaart-label {
    font-weight: 600;
    font-size: 13px;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    flex-shrink: 0;
    margin-right: 12px;
}

.cgl-kaart-waarde {
    font-size: 14px;
    color: #333;
    text-align: right;
}

.cgl-kaart-rij-blok .cgl-kaart-waarde {
    text-align: left;
}

.cgl-kaart-tekst {
    margin: 0;
    font-size: 14px;
    color: #444;
    line-height: 1.6;
}

.cgl-kaart-leeg {
    color: #999;
    font-style: italic;
    font-size: 13px;
    margin: 8px 0 0 0;
}

/* --- Status badge --- */
.cgl-status-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-left: 8px;
    vertical-align: middle;
}

.cgl-status-beschikbaar {
    background: #c8e6c9;
    color: #2e7d32;
}

.cgl-status-uitgeleend {
    background: #fff9c4;
    color: #f57f17;
}

.cgl-status-uitgeput {
    background: #ffcdd2;
    color: #c62828;
}

/* ===== Beschrijving (single template) ===== */
.cgl-single-beschrijving {
    margin-bottom: 40px;
}

.cgl-single-beschrijving h3 {
    color: #2d5a3d;
    font-size: 20px;
    margin: 0 0 12px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid #d4e6d4;
}

.cgl-single-content {
    color: #444;
    line-height: 1.7;
}

.cgl-single-content p {
    margin-bottom: 12px;
}

/* ===== Info Blokken (Verzorgingstips & Bijzonderheden) ===== */
.cgl-info-blokken {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 40px;
}

.cgl-info-blok {
    padding: 24px;
    border-radius: 10px;
    border: 1px solid transparent;
}

.cgl-info-blok h3 {
    margin: 0 0 12px 0;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cgl-info-blok p {
    margin: 0;
    font-size: 14px;
    line-height: 1.7;
    color: #444;
}

.cgl-info-verzorging {
    background: #f0f8f0;
    border-color: #b8dab8;
}

.cgl-info-verzorging h3 {
    color: #1b5e20;
}

.cgl-info-bijzonderheden {
    background: #f5f0fa;
    border-color: #d1b3e8;
}

.cgl-info-bijzonderheden h3 {
    color: #4a148c;
}

/* ===== Uitleenformulier ===== */
.cgl-uitleen-sectie {
    background: #f8faf8;
    border: 2px solid #d4e6d4;
    border-radius: 10px;
    padding: 28px;
    margin-bottom: 40px;
}

.cgl-uitleen-sectie h3 {
    margin: 0 0 8px 0;
    color: #2d5a3d;
    font-size: 20px;
}

.cgl-uitleen-intro {
    color: #666;
    margin: 0 0 20px 0;
    font-size: 14px;
}

.cgl-form-rij {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.cgl-form-groep {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 12px;
}

.cgl-form-groep label {
    font-weight: 600;
    font-size: 13px;
    color: #333;
}

.cgl-form-groep input,
.cgl-form-groep textarea {
    padding: 10px 12px;
    border: 2px solid #d4e6d4;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.cgl-form-groep input:focus,
.cgl-form-groep textarea:focus {
    outline: none;
    border-color: #4a7c59;
    box-shadow: 0 0 0 3px rgba(74, 124, 89, 0.1);
}

.cgl-uitleen-btn {
    padding: 12px 32px;
    background: #4a7c59;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.cgl-uitleen-btn:hover {
    background: #3a6347;
}

.cgl-uitleen-btn:disabled {
    background: #999;
    cursor: not-allowed;
}

.cgl-uitleen-melding {
    margin-top: 16px;
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 14px;
}

.cgl-uitleen-melding.cgl-succes {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.cgl-uitleen-melding.cgl-fout-melding {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* ===== Gerelateerde planten ===== */
.cgl-gerelateerd {
    margin-bottom: 32px;
}

.cgl-gerelateerd h3 {
    color: #2d5a3d;
    font-size: 20px;
    margin: 0 0 20px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid #d4e6d4;
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
    .cgl-kolommen-3,
    .cgl-kolommen-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .cgl-single-header {
        grid-template-columns: 1fr;
    }

    .cgl-filter-rij {
        flex-direction: column;
    }

    .cgl-filter-groep {
        min-width: 100%;
    }

    .cgl-hero-titel {
        font-size: 28px;
    }

    .cgl-hero-content {
        padding: 28px 24px;
    }
}

@media (max-width: 700px) {
    .cgl-detail-kaarten {
        grid-template-columns: 1fr;
    }

    .cgl-info-blokken {
        grid-template-columns: 1fr;
    }

    .cgl-form-rij {
        grid-template-columns: 1fr;
    }

    .cgl-gerelateerd .cgl-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .cgl-kolommen-2,
    .cgl-kolommen-3,
    .cgl-kolommen-4 {
        grid-template-columns: 1fr;
    }

    .cgl-filters {
        padding: 16px;
    }

    .cgl-hero {
        min-height: 240px;
    }

    .cgl-hero-titel {
        font-size: 22px;
    }

    .cgl-hero-latijn {
        font-size: 15px;
    }

    .cgl-hero-content {
        padding: 20px 16px;
    }

    .cgl-kaart-header {
        padding: 12px 16px;
    }

    .cgl-kaart-body {
        padding: 4px 16px 16px;
    }

    .cgl-kaart-rij {
        flex-direction: column;
        gap: 2px;
    }

    .cgl-kaart-waarde {
        text-align: left;
    }

    .cgl-uitleen-sectie {
        padding: 20px 16px;
    }
}
