/* ============================================
   JASMINE KNOWLEDGE BASE — ILLUSTRATIONS CSS
   Styles for SVG illustrations and visual elements
   ============================================ */

/* ==================== ILLUSTRATION CONTAINER ==================== */
.svg-illustration {
    display: inline-block;
    width: 100%;
    height: auto;
}

.svg-illustration use {
    width: 100%;
    height: 100%;
}

/* ==================== SPECIES CARD ILLUSTRATIONS ==================== */
.species-card-body {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: var(--space-xl);
    align-items: start;
}

.species-illustration {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 140px;
    height: 140px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, #f8f7f0, #f0efe8);
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.04);
}

.species-illustration svg {
    width: 120px;
    height: 120px;
    transition: transform 0.5s ease;
}

.species-card:hover .species-illustration svg {
    transform: scale(1.1) rotate(5deg);
}

/* Flower glow effect on hover */
.species-illustration::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, rgba(232, 197, 71, 0.15) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.species-card:hover .species-illustration::after {
    opacity: 1;
}

/* ==================== SECTION DECORATIVE ILLUSTRATIONS ==================== */
.section-decoration {
    position: absolute;
    pointer-events: none;
    opacity: 0.08;
    z-index: 0;
}

.section-decoration.top-right {
    top: -20px;
    right: -20px;
    width: 200px;
    height: 200px;
}

.section-decoration.bottom-left {
    bottom: -20px;
    left: -20px;
    width: 180px;
    height: 180px;
}

/* ==================== HERO DECORATIVE FLOWERS ==================== */
.hero-decor {
    position: absolute;
    pointer-events: none;
    z-index: 1;
}

.hero-decor.flower-1 {
    top: 15%;
    left: 5%;
    width: 100px;
    height: 100px;
    opacity: 0.12;
    animation: float-slow 8s ease-in-out infinite;
}

.hero-decor.flower-2 {
    top: 25%;
    right: 8%;
    width: 80px;
    height: 80px;
    opacity: 0.1;
    animation: float-slow 10s ease-in-out infinite 2s;
}

.hero-decor.flower-3 {
    bottom: 20%;
    left: 12%;
    width: 60px;
    height: 60px;
    opacity: 0.08;
    animation: float-slow 12s ease-in-out infinite 4s;
}

.hero-decor.flower-4 {
    bottom: 30%;
    right: 15%;
    width: 90px;
    height: 90px;
    opacity: 0.1;
    animation: float-slow 9s ease-in-out infinite 1s;
}

.hero-decor.leaf-1 {
    top: 40%;
    left: 2%;
    width: 50px;
    height: 25px;
    opacity: 0.15;
    transform: rotate(-30deg);
}

.hero-decor.leaf-2 {
    top: 60%;
    right: 3%;
    width: 45px;
    height: 22px;
    opacity: 0.12;
    transform: rotate(25deg);
}

@keyframes float-slow {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-10px) rotate(3deg); }
    50% { transform: translateY(-5px) rotate(-2deg); }
    75% { transform: translateY(-12px) rotate(1deg); }
}

/* ==================== BOTANICAL DIAGRAM ==================== */
.botanical-diagram {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: var(--space-xl);
    background: linear-gradient(135deg, #fafaf5, #f5f4ef);
    border-radius: var(--radius-lg);
    margin: var(--space-xl) 0;
    border: 1px solid rgba(0,0,0,0.04);
}

.botanical-diagram svg {
    width: 100%;
    max-width: 350px;
    height: auto;
}

/* ==================== SECTION ILLUSTRATION BANNERS ==================== */
.section-illustration {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: var(--space-xl);
    padding: var(--space-lg);
    background: linear-gradient(135deg, rgba(255,249,230,0.5), rgba(255,243,204,0.3));
    border-radius: var(--radius-lg);
    border: 1px solid rgba(232,197,71,0.1);
}

.section-illustration svg {
    max-width: 300px;
    width: 100%;
    height: auto;
    opacity: 0.8;
}

/* ==================== PROCESSING CARDS WITH ICONS ==================== */
.process-card-header {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
}

.process-card-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    background: var(--jasmine-cream);
    flex-shrink: 0;
}

.process-card-icon svg {
    width: 30px;
    height: 30px;
}

/* ==================== CULTIVAR GRID WITH MINI ILLUSTRATIONS ==================== */
.cultivar-item {
    display: grid;
    grid-template-columns: 60px 1fr;
    gap: var(--space-md);
    align-items: start;
}

.cultivar-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f8f7f0, #f0efe8);
    border-radius: var(--radius-md);
    flex-shrink: 0;
}

.cultivar-icon svg {
    width: 50px;
    height: 50px;
}

/* ==================== SECTION HEADER WITH FLOWER ==================== */
.section-header {
    position: relative;
}

.section-header .header-flower {
    position: absolute;
    top: -10px;
    right: -30px;
    width: 80px;
    height: 80px;
    opacity: 0.1;
    pointer-events: none;
}

/* ==================== FOOD USES WITH ICONS ==================== */
.food-use {
    display: grid;
    grid-template-columns: 60px 1fr;
    gap: var(--space-md);
    align-items: start;
}

.food-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--jasmine-cream);
    border-radius: var(--radius-md);
    flex-shrink: 0;
}

.food-icon svg {
    width: 40px;
    height: 40px;
}

/* ==================== GARLAND BANNER ==================== */
.garland-banner {
    display: flex;
    justify-content: center;
    margin: var(--space-xl) 0;
    opacity: 0.6;
}

.garland-banner svg {
    width: 100%;
    max-width: 400px;
    height: auto;
}

/* ==================== WORLD MAP SECTION ==================== */
.world-map-section {
    display: flex;
    justify-content: center;
    margin: var(--space-lg) 0;
}

.world-map-section svg {
    width: 100%;
    max-width: 200px;
    height: auto;
    opacity: 0.6;
}

/* ==================== HIGHLIGHT BOX ILLUSTRATIONS ==================== */
.highlight-box.illustrated {
    display: grid;
    grid-template-columns: 1fr 150px;
    gap: var(--space-xl);
    align-items: center;
}

.highlight-box.illustrated .box-illustration {
    display: flex;
    justify-content: center;
    align-items: center;
}

.highlight-box.illustrated .box-illustration svg {
    width: 120px;
    height: 120px;
    opacity: 0.7;
}

/* ==================== CLUSTER DECORATION ==================== */
.cluster-decoration {
    position: absolute;
    width: 100px;
    height: 100px;
    opacity: 0.06;
    pointer-events: none;
}

/* ==================== ANIMATED FLOWER FOR HERO ==================== */
.hero-flower-main {
    position: absolute;
    width: 300px;
    height: 300px;
    opacity: 0.06;
    pointer-events: none;
    animation: rotate-slow 60s linear infinite;
}

@keyframes rotate-slow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ==================== RESPONSIVE ILLUSTRATIONS ==================== */
@media (max-width: 1024px) {
    .species-card-body {
        grid-template-columns: 120px 1fr;
    }

    .species-illustration {
        width: 120px;
        height: 120px;
    }

    .species-illustration svg {
        width: 100px;
        height: 100px;
    }

    .highlight-box.illustrated {
        grid-template-columns: 1fr;
    }

    .cultivar-item {
        grid-template-columns: 50px 1fr;
    }

    .cultivar-icon {
        width: 50px;
        height: 50px;
    }

    .cultivar-icon svg {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 768px) {
    .species-card-body {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }

    .species-illustration {
        width: 100%;
        height: 120px;
        margin: 0 auto;
    }

    .species-illustration svg {
        width: 100px;
        height: 100px;
    }

    .food-use {
        grid-template-columns: 1fr;
    }

    .food-icon {
        display: none;
    }

    .cultivar-item {
        grid-template-columns: 1fr;
    }

    .cultivar-icon {
        display: none;
    }

    .botanical-diagram {
        padding: var(--space-md);
    }

    .botanical-diagram svg {
        max-width: 250px;
    }

    .hero-decor {
        display: none;
    }
}

/* ==================== PRINT STYLES ==================== */
@media print {
    .hero-decor,
    .section-decoration,
    .cluster-decoration,
    .hero-flower-main {
        display: none !important;
    }

    .species-illustration {
        background: #f5f5f0 !important;
        border: 1px solid #ddd !important;
    }
}
