/* calc/assets/css/calculators/seedlings.css */

:root {
    --seed-primary: #15803D;
    --seed-bg: #F0FDF4;
    --seed-border: #BBF7D0;
    --seed-hover: #DCFCE7;
    --text-main: #1F2937;
}

.seedlings-page { 
    font-family: 'Inter', sans-serif; 
    color: var(--text-main); 
    width: 100%;
}

/* HEADER */
.classic-header { margin-bottom: 24px; padding-bottom: 16px; border-bottom: 1px solid #E5E7EB; }
.classic-header h1 { font-size: 24px; font-weight: 800; margin: 8px 0; line-height: 1.2; }
.intro-lead { font-size: 15px; color: #4B5563; line-height: 1.5; }
.back-link { 
    font-size: 14px; text-decoration: none; color: #6B7280; 
    display: inline-flex; align-items: center; gap: 5px; margin-bottom: 8px; 
}

/* LAYOUT GRID */
.classic-layout { display: grid; grid-template-columns: 1fr; gap: 32px; }
@media (min-width: 992px) { .classic-layout { grid-template-columns: 2fr 1fr; } }

/* CALCULATOR CARD */
.calculator-box {
    background: #fff; border: 1px solid #E5E7EB; border-radius: 12px;
    padding: 20px; margin-bottom: 32px; box-shadow: 0 4px 10px rgba(0,0,0,0.03);
}

.calc-form { display: flex; flex-direction: column; gap: 20px; margin-bottom: 24px; }
.form-group label { display: block; font-weight: 600; margin-bottom: 8px; font-size: 14px; color: #374151; }
.form-control { width: 100%; padding: 12px; border: 1px solid #D1D5DB; border-radius: 8px; background: #FAFAFA; box-sizing: border-box; }

/* CUSTOM SELECT */
.custom-select { position: relative; width: 100%; }
.select-trigger {
    display: flex; align-items: center; justify-content: space-between;
    background: #fff; border: 1px solid #D1D5DB; padding: 10px 14px;
    border-radius: 8px; cursor: pointer; min-height: 48px; box-sizing: border-box;
}
.trigger-icon { font-size: 22px; margin-right: 12px; flex-shrink: 0; }
.trigger-text { 
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; 
    font-size: 15px; font-weight: 500; color: #1F2937; 
}
.options-list {
    position: absolute; top: 105%; left: 0; right: 0;
    background: #fff; border: 1px solid #E5E7EB; border-radius: 8px;
    max-height: 300px; overflow-y: auto; z-index: 100;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15); display: none;
}
.custom-select.open .options-list { display: block; }
.option-item { 
    padding: 12px; border-bottom: 1px solid #f3f4f6; 
    display: flex; align-items: center; cursor: pointer; 
}
.option-item:hover { background: var(--seed-hover); }
.option-item.selected { background: var(--seed-bg); }
.option-info { margin-left: 12px; display: flex; flex-direction: column; }
.opt-name { font-size: 14px; font-weight: 600; color: #1F2937; }
.opt-desc { font-size: 12px; color: #6b7280; margin-top: 2px; }

/* QUICK REGIONS */
.quick-regions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.quick-regions span {
    font-size: 12px; color: var(--seed-primary); background: var(--seed-bg);
    padding: 6px 10px; border-radius: 6px; cursor: pointer; 
    border: 1px solid var(--seed-border); transition: all 0.2s;
}
.quick-regions span:hover { background: var(--seed-primary); color: #fff; }

/* RESULT AREA */
.calc-result { background: var(--seed-bg); border: 1px solid var(--seed-border); border-radius: 8px; padding: 20px; }
.plant-identity { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; }
.plant-emoji { font-size: 32px; line-height: 1; }
.plant-name { font-size: 18px; font-weight: 800; color: var(--seed-primary); line-height: 1.2; }
.plant-desc-small { font-size: 13px; color: #4B5563; margin-top: 2px; }

/* TIMELINE (MOBILE OPTIMIZED) */
.growth-timeline-wrapper { margin: 20px 0 30px 0; }
.timeline-labels { 
    display: flex; justify-content: space-between; 
    font-size: 11px; text-transform: uppercase; color: #6B7280; 
    margin-bottom: 8px; font-weight: 700; letter-spacing: 0.5px;
}

.timeline-track { position: relative; height: 40px; display: flex; align-items: center; }
.timeline-point { 
    position: relative; z-index: 2; width: 40px; 
    display: flex; flex-direction: column; align-items: center; 
}
.point-marker { 
    width: 12px; height: 12px; background: #fff; 
    border: 3px solid var(--seed-primary); border-radius: 50%; 
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.point-date {
    position: absolute; top: 22px; font-size: 12px; font-weight: 700;
    white-space: nowrap; color: var(--text-main);
}
/* Mobile safe edges */
.timeline-point.start .point-date { left: 0; text-align: left; }
.timeline-point.end .point-date { right: 0; text-align: right; }

.timeline-bar { 
    flex-grow: 1; height: 6px; background: rgba(0,0,0,0.05); 
    border-radius: 4px; margin: 0 2px; position: relative; 
}
.bar-fill { 
    height: 100%; background: var(--seed-primary); 
    border-radius: 4px; width: 0%; transition: width 0.8s ease-out; 
}
.bar-label {
    position: absolute; top: -24px; left: 50%; transform: translateX(-50%);
    font-size: 10px; background: #fff; padding: 2px 6px; border-radius: 4px;
    border: 1px solid var(--seed-border); white-space: nowrap; color: var(--seed-primary); font-weight: 700;
}

/* DETAILS GRID */
.result-details-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.detail-card { 
    background: #fff; padding: 12px; border-radius: 8px; 
    border: 1px solid rgba(0,0,0,0.05); font-size: 13px; 
    display: flex; flex-direction: column; gap: 4px; 
}
.detail-card i { font-size: 18px; color: var(--seed-primary); }
.detail-card b { font-size: 14px; color: var(--text-main); }

/* CONTENT STYLES (IMPROVED SPACING) */
.content-article { margin-top: 30px; }
.content-article h2 { font-size: 20px; font-weight: 800; color: #111827; margin: 30px 0 16px 0; }

/* Исправленные отступы для заголовков H3 (Таблица и FAQ) */
.content-article h3 { 
    margin-top: 40px; 
    margin-bottom: 24px; /* Увеличено с 16px */
    font-size: 18px; 
    color: var(--seed-primary); 
    font-weight: 700;
}

.content-article p { font-size: 15px; line-height: 1.6; margin-bottom: 20px; }

.info-blocks { display: grid; grid-template-columns: 1fr; gap: 16px; margin: 24px 0; }
@media (min-width: 600px) { .info-blocks { grid-template-columns: 1fr 1fr; } }
.info-card { background: #FAFAFA; padding: 16px; border-radius: 8px; border: 1px solid #eee; }
.info-card h3 { margin-top: 0; font-size: 16px; color: var(--seed-primary); margin-bottom: 12px; }
.info-card p { font-size: 14px; margin: 0; }

/* TABLE (IMPROVED SPACING) */
.table-responsive { 
    overflow-x: auto; 
    margin-bottom: 48px; /* Сильно увеличен отступ снизу, чтобы отделить от FAQ */
    border: 1px solid #eee; 
    border-radius: 8px; 
}
.simple-table { width: 100%; min-width: 320px; border-collapse: collapse; font-size: 14px; }
.simple-table th, .simple-table td { padding: 12px; border-bottom: 1px solid #eee; text-align: left; }
.simple-table th { background: #F9FAFB; color: #6B7280; font-size: 12px; text-transform: uppercase; }

/* FAQ */
.simple-faq details { margin-bottom: 10px; border: 1px solid #E5E7EB; border-radius: 8px; overflow: hidden; }
.simple-faq summary { padding: 14px; font-weight: 600; background: #fff; list-style: none; position: relative; font-size: 15px; }
.simple-faq summary::after { content: '+'; position: absolute; right: 14px; color: #9CA3AF; }
.simple-faq details[open] summary { color: var(--seed-primary); background: #F0FDF4; }
.simple-faq details[open] summary::after { content: '−'; color: var(--seed-primary); }
.simple-faq p { padding: 14px; margin: 0; font-size: 14px; color: #4B5563; background: #fff; }

/* MOBILE MEDIA QUERY */
@media (max-width: 480px) {
    .container { padding: 16px; }
    .calculator-box { padding: 16px; }
    .classic-header h1 { font-size: 20px; }
    .result-details-grid { grid-template-columns: 1fr; }
    .detail-card { flex-direction: row; align-items: center; gap: 12px; }
    
    /* Скрыть среднюю метку на шкале, если экран совсем узкий */
    #lbl-mid { display: none; }
    .bar-label { font-size: 9px; padding: 1px 4px; top: -18px; }
}