/* Sunlight Requirements Checker - Tool Specific CSS */

/* ===== SEARCH SECTION ===== */
.sc-search-section {
    margin: 24px 0 16px;
}

.sc-search-wrap {
    position: relative;
}

.sc-search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    z-index: 1;
    pointer-events: none;
}

.sc-search-wrap input {
    width: 100%;
    padding: 16px 50px 16px 50px;
    border: 2px solid #e5e7eb;
    border-radius: 14px;
    font-size: 16px;
    background: #fff;
    color: #1f2937;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.sc-search-wrap input:focus {
    outline: none;
    border-color: #f59e0b;
    box-shadow: 0 0 0 4px rgba(245,158,11,0.12);
}

.sc-clear-btn {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: #e5e7eb;
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 13px;
    color: #6b7280;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sc-clear-btn:hover {
    background: #d1d5db;
}

/* Dropdown */
.sc-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    z-index: 100;
    max-height: 320px;
    overflow-y: auto;
}

.sc-dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    cursor: pointer;
    border-bottom: 1px solid #f3f4f6;
    transition: background 0.15s;
}

.sc-dropdown-item:hover {
    background: #fffbeb;
}

.sc-dropdown-item:last-child {
    border-bottom: none;
}

.sc-dropdown-item .di-emoji {
    font-size: 24px;
    flex-shrink: 0;
}

.sc-dropdown-item strong {
    display: block;
    font-size: 14px;
    color: #1f2937;
}

.sc-dropdown-item small {
    color: #6b7280;
    font-size: 12px;
}

.sc-no-result {
    padding: 16px;
    text-align: center;
    color: #9ca3af;
    font-size: 14px;
}

/* ===== POPULAR CHIPS ===== */
.sc-popular-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.sc-popular-label {
    font-size: 13px;
    font-weight: 600;
    color: #6b7280;
    white-space: nowrap;
}

.sc-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.sc-chip {
    background: #fff;
    border: 1.5px solid #e5e7eb;
    border-radius: 20px;
    padding: 6px 14px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
    color: #374151;
}

.sc-chip:hover {
    border-color: #f59e0b;
    background: #fffbeb;
    color: #92400e;
}

/* ===== RESULT SECTION ===== */
#scResultSection {
    margin-bottom: 32px;
}

/* Main plant card */
.sc-plant-card {
    border-radius: 18px;
    padding: 24px;
    margin-bottom: 16px;
    border: 1px solid rgba(0,0,0,0.06);
}

.sc-plant-top {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.sc-plant-emoji {
    font-size: 52px;
    line-height: 1;
}

.sc-plant-name {
    font-size: 24px;
    font-weight: 800;
    color: #1f2937;
    margin-bottom: 2px;
}

.sc-plant-latin {
    font-size: 14px;
    color: #6b7280;
    font-style: italic;
}

.sc-badge-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.sc-sun-badge {
    color: #fff;
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 700;
}

.sc-hours-badge {
    background: #fff;
    border-radius: 30px;
    padding: 8px 20px;
    font-size: 15px;
    font-weight: 600;
    color: #1f2937;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.sc-sun-desc {
    font-size: 15px;
    color: #4b5563;
    line-height: 1.6;
}

/* Section headers inside result */
.sc-section-title {
    font-size: 16px;
    font-weight: 700;
    color: #1f2937;
    margin: 20px 0 12px;
}

/* Location grid */
.sc-location-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 4px;
}

.sc-loc-card {
    border-radius: 14px;
    padding: 16px;
    text-align: center;
    border: 2px solid;
}

.sc-loc-card.ok {
    background: #f0fdf4;
    border-color: #86efac;
}

.sc-loc-card.no {
    background: #fff7ed;
    border-color: #fed7aa;
}

.sc-loc-label {
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 8px;
}

.sc-loc-badge {
    display: inline-block;
    border-radius: 20px;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 6px;
}

.sc-loc-badge.ok {
    background: #dcfce7;
    color: #166534;
}

.sc-loc-badge.no {
    background: #fee2e2;
    color: #991b1b;
}

.sc-loc-tip {
    font-size: 12px;
    color: #6b7280;
    line-height: 1.4;
}

/* Windows grid */
.sc-windows-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(175px, 1fr));
    gap: 12px;
    margin-bottom: 4px;
}

.sc-window-card {
    background: #fff;
    border-radius: 14px;
    padding: 16px;
    text-align: center;
    border: 1.5px solid #e5e7eb;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}

.sc-win-emoji {
    font-size: 28px;
    display: block;
    margin-bottom: 8px;
}

.sc-win-label {
    font-size: 14px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 4px;
}

.sc-win-quality {
    font-size: 11px;
    font-weight: 600;
    color: #f59e0b;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.sc-win-desc {
    font-size: 12px;
    color: #6b7280;
    line-height: 1.5;
}

/* Season grid */
.sc-season-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 4px;
}

.sc-season-card {
    background: #fff;
    border-radius: 14px;
    padding: 16px;
    border: 1.5px solid #e5e7eb;
}

.sc-season-name {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 6px;
    color: #1f2937;
}

.sc-season-tip {
    font-size: 13px;
    color: #4b5563;
    line-height: 1.5;
}

/* Extra info grid */
.sc-extra-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin: 20px 0;
}

.sc-extra-card {
    background: #fff;
    border-radius: 14px;
    padding: 16px;
    text-align: center;
    border: 1.5px solid #e5e7eb;
}

.sc-extra-icon {
    font-size: 24px;
    margin-bottom: 6px;
}

.sc-extra-label {
    font-size: 11px;
    color: #9ca3af;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.sc-extra-val {
    font-size: 13px;
    font-weight: 600;
    color: #1f2937;
}

.sc-extra-val.yes { color: #16a34a; }
.sc-extra-val.no  { color: #dc2626; }

/* Vastu card */
.sc-vastu-card {
    border-radius: 14px;
    padding: 16px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.6;
    margin-top: 4px;
}

.sc-vastu-card.positive {
    background: #f0fdf4;
    border: 2px solid #86efac;
    color: #166534;
}

.sc-vastu-card.negative {
    background: #fffbeb;
    border: 2px solid #fde68a;
    color: #92400e;
}

.sc-vastu-card.neutral {
    background: #f9fafb;
    border: 2px solid #e5e7eb;
    color: #4b5563;
}

/* Reset button */
.sc-reset-btn {
    display: block;
    margin: 20px auto 0;
    background: #f59e0b;
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 12px 32px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.sc-reset-btn:hover {
    background: #d97706;
    transform: translateY(-1px);
}

/* ===== BROWSE SECTION ===== */
.sc-browse-section {
    background: #fff;
    border-radius: 18px;
    padding: 24px;
    border: 1.5px solid #e5e7eb;
    margin-top: 8px;
}

.sc-browse-section h2 {
    font-size: 18px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 16px;
}

.sc-cat-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.sc-cat-tab {
    background: #f3f4f6;
    border: none;
    border-radius: 20px;
    padding: 7px 16px;
    font-size: 13px;
    cursor: pointer;
    color: #4b5563;
    font-weight: 500;
    transition: all 0.2s;
}

.sc-cat-tab:hover,
.sc-cat-tab.active {
    background: #f59e0b;
    color: #fff;
    font-weight: 600;
}

.sc-browse-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
    max-height: 420px;
    overflow-y: auto;
}

.sc-browse-card {
    background: #f9fafb;
    border: 1.5px solid #e5e7eb;
    border-radius: 12px;
    padding: 12px 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}

.sc-browse-card:hover {
    border-color: #f59e0b;
    background: #fffbeb;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(245,158,11,0.15);
}

.sc-bc-emoji {
    font-size: 28px;
    display: block;
    margin-bottom: 6px;
}

.sc-bc-name {
    font-size: 12px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 4px;
    line-height: 1.3;
}

.sc-bc-sun {
    font-size: 11px;
    font-weight: 500;
}



.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.info-item {
    padding: 20px;
    background: white;
    border-radius: 10px;
    color: #666;
}

.info-item strong {
    display: block;
    color: #667eea;
    margin-bottom: 5px;
    font-size: 15px;
    font-weight: 700;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 640px) {
	.info-grid {
        grid-template-columns: 1fr;
    }
    .sc-location-grid {
        grid-template-columns: 1fr;
    }

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

    .sc-season-grid {
        grid-template-columns: 1fr;
    }

    .sc-plant-top {
        flex-direction: column;
        text-align: center;
    }

    .sc-badge-row {
        justify-content: center;
    }
}