/**
 * ConvMaster - Scoville Heat Unit Calculator Styles
 * 
 * @package    ConvMaster
 * @version    1.0.0
 */

/* =====================================================
   TOOL PAGE LAYOUT
   ===================================================== */
.tool-page {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.tool-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.tool-header__icon {
    font-size: 2.5rem;
}

.tool-header__icon .icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: var(--radius-lg);
    background: var(--bg-tertiary);
    font-weight: 700;
    font-size: 2rem;
}

.tool-header__icon .icon--red {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

.tool-header__text h1 {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0 0 0.25rem;
    color: var(--text-primary);
}

.tool-header__text p {
    margin: 0;
    color: var(--text-secondary);
}

/* =====================================================
   CURRENT DATE BANNER
   ===================================================== */
.current-date-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.875rem 1.25rem;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(249, 115, 22, 0.1));
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: var(--radius-lg);
    margin-bottom: 1.5rem;
}

.current-date-banner__icon {
    font-size: 1.25rem;
}

.current-date-banner__text {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* =====================================================
   SCOVILLE WIDGET
   ===================================================== */
.scoville-widget {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 2rem;
}

/* =====================================================
   TOOLBAR
   ===================================================== */
.widget-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-tertiary);
    flex-wrap: wrap;
    gap: 1rem;
}

.widget-toolbar__left,
.widget-toolbar__right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.widget-toolbar__title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* Toolbar Buttons */
.btn-toolbar {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.875rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-toolbar:hover {
    color: var(--text-primary);
    background: var(--bg-tertiary);
    border-color: var(--text-tertiary);
}

.btn-toolbar__icon {
    font-size: 1rem;
}

/* Popup Button */
.btn-popup {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-popup:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: #ef4444;
}

.btn-popup__icon {
    font-size: 1rem;
}

/* =====================================================
   MODE TABS
   ===================================================== */
.mode-section {
    padding: 1.25rem;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-secondary);
}

.mode-tabs {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.mode-tab {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-secondary);
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 140px;
    justify-content: center;
}

.mode-tab:hover {
    color: var(--text-primary);
    border-color: var(--text-tertiary);
}

.mode-tab.active {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
    border-color: #ef4444;
}

.mode-tab__icon {
    font-size: 1.25rem;
}

/* =====================================================
   MODE CONTENT
   ===================================================== */
.mode-content {
    padding: 1.5rem;
}

.mode-content[hidden] {
    display: none;
}

.section-intro {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin: 0 0 1.5rem;
    line-height: 1.6;
}

/* =====================================================
   UNIT SECTION
   ===================================================== */
.unit-section {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.unit-section label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.unit-toggle {
    display: flex;
    gap: 0.25rem;
    background: var(--bg-secondary);
    padding: 0.25rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.unit-btn {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    background: transparent;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s ease;
}

.unit-btn:hover {
    color: var(--text-primary);
}

.unit-btn.active {
    color: white;
    background: #ef4444;
}

/* =====================================================
   INPUT SECTIONS
   ===================================================== */
.input-section {
    margin-bottom: 1.5rem;
}

.input-group {
    margin-bottom: 1rem;
}

.input-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.input-icon {
    font-size: 1.1rem;
}

.input-wrapper {
    display: flex;
    align-items: stretch;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--bg-secondary);
    transition: all 0.2s ease;
}

.input-wrapper:focus-within {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
}

.input-wrapper input {
    flex: 1;
    padding: 0.875rem 1rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    background: transparent;
    border: none;
}

.input-wrapper input:focus {
    outline: none;
}

/* Hide number input spinners */
.input-wrapper input[type="number"] {
    -moz-appearance: textfield;
}

.input-wrapper input[type="number"]::-webkit-outer-spin-button,
.input-wrapper input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.input-wrapper input::placeholder {
    color: var(--text-tertiary);
    opacity: 0.6;
}

.input-unit {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 1rem;
    min-width: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #6b7280;
    background: #f3f4f6;
    border-left: 1px solid var(--border-color);
    white-space: nowrap;
}

[data-theme="dark"] .input-unit {
    color: #9ca3af;
    background: #374151;
}

.input-hint {
    display: block;
    margin-top: 0.375rem;
    font-size: 0.8rem;
    color: var(--text-tertiary);
}

/* =====================================================
   PEPPERS SECTION
   ===================================================== */
.peppers-section {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
}

.peppers-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.peppers-header h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.btn-add-pepper {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 0.875rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: #22c55e;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-add-pepper:hover {
    background: rgba(34, 197, 94, 0.2);
    border-color: #22c55e;
}

/* Pepper Row */
.peppers-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.pepper-row {
    display: flex;
    gap: 0.75rem;
    align-items: flex-end;
    padding: 0.75rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    flex-wrap: wrap;
}

.pepper-row__select {
    flex: 2;
    min-width: 180px;
}

.pepper-row__select select {
    width: 100%;
    padding: 0.75rem;
    font-size: 0.9rem;
    color: var(--text-primary);
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
}

.pepper-row__select select:focus {
    outline: none;
    border-color: #ef4444;
}

.pepper-row__weight {
    flex: 1;
    min-width: 100px;
}

.pepper-row__weight .input-wrapper {
    height: 100%;
}

.pepper-row__weight input {
    padding: 0.75rem;
    font-size: 0.9rem;
}

.pepper-row__remove {
    flex: 0 0 auto;
}

.btn-remove-pepper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    font-size: 1.25rem;
    color: var(--text-tertiary);
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-remove-pepper:hover {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
}

/* =====================================================
   DILUTION SECTION
   ===================================================== */
.dilution-section,
.compare-section {
    /* Inherits from mode-content */
}

.dilution-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 1rem;
}

@media (max-width: 768px) {
    .dilution-grid {
        grid-template-columns: 1fr;
    }
}

.dilution-grid .input-group {
    min-width: 0; /* Prevent grid blowout */
}

.dilution-grid .input-wrapper {
    width: 100%;
}

.dilution-grid .input-wrapper input {
    min-width: 0;
    width: 100%;
}

/* =====================================================
   COMPARE SECTION
   ===================================================== */
.compare-grid {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.compare-item {
    flex: 1;
    min-width: 200px;
}

.compare-item label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.compare-item select {
    width: 100%;
    padding: 0.875rem 1rem;
    font-size: 1rem;
    color: var(--text-primary);
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
}

.compare-item select:focus {
    outline: none;
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
}

.compare-vs {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-tertiary);
    padding: 0 0.5rem;
}

/* =====================================================
   ACTION SECTION
   ===================================================== */
.action-section {
    margin-top: 1.5rem;
    text-align: center;
}

.btn-calculate {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: white;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.btn-calculate:hover {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    box-shadow: 0 6px 16px rgba(239, 68, 68, 0.4);
    transform: translateY(-2px);
}

.btn-calculate:active {
    transform: translateY(0);
}

/* =====================================================
   MESSAGE CONTAINER
   ===================================================== */
.message-container {
    margin: 1rem 1.5rem;
    padding: 0.875rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.message-container[hidden] {
    display: none;
}

.message-container--error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

.message-container--success {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #22c55e;
}

.message-container--info {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: #3b82f6;
}

/* =====================================================
   RESULTS SECTION
   ===================================================== */
.results-section {
    border-top: 1px solid var(--border-color);
    padding: 1.5rem;
}

.results-section[hidden] {
    display: none;
}

.results-header {
    margin-bottom: 1.5rem;
}

.results-header h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

/* Scoville Gauge */
.scoville-gauge {
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.05), rgba(249, 115, 22, 0.05));
    border-radius: var(--radius-lg);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.gauge-display {
    text-align: center;
    margin-bottom: 1rem;
}

.gauge-value {
    font-size: 3rem;
    font-weight: 800;
    color: #ef4444;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.gauge-label {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

.gauge-bar {
    position: relative;
    height: 12px;
    background: linear-gradient(to right, 
        #22c55e 0%, 
        #84cc16 20%, 
        #eab308 40%, 
        #f97316 60%, 
        #ef4444 80%, 
        #7c2d12 100%
    );
    border-radius: 6px;
    margin-bottom: 0.5rem;
    overflow: visible;
}

.gauge-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: rgba(0, 0, 0, 0.15);
    border-radius: 6px;
    transition: width 0.5s ease;
}

.gauge-marker {
    position: absolute;
    top: -4px;
    width: 4px;
    height: 20px;
    background: var(--text-primary);
    border-radius: 2px;
    transform: translateX(-50%);
    transition: left 0.5s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.gauge-scale {
    display: flex;
    justify-content: space-between;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-tertiary);
}

/* Results Stats */
.results-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.stat-card {
    padding: 1rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    text-align: center;
}

.stat-card--main {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
}

.stat-label {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 0.375rem;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    font-variant-numeric: tabular-nums;
}

.stat-value--min {
    color: #22c55e;
}

.stat-value--max {
    color: #ef4444;
}

/* Heat Level */
.heat-level {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    flex-wrap: wrap;
}

.heat-level__icon {
    font-size: 2rem;
}

.heat-level__text {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}

.heat-level__desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    width: 100%;
    text-align: center;
    margin-top: 0.25rem;
}

/* Dilution Result */
.dilution-result {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: var(--radius-md);
    margin-top: 1rem;
}

.dilution-result[hidden] {
    display: none;
}

.dilution-result__icon {
    font-size: 2.5rem;
}

.dilution-result__text {
    font-size: 1rem;
    color: var(--text-primary);
    line-height: 1.6;
}

/* Compare Result */
.compare-result {
    margin-top: 1.5rem;
}

.compare-result[hidden] {
    display: none;
}

.compare-bars {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.compare-bar {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.compare-bar__name {
    flex: 0 0 150px;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9rem;
    text-align: right;
}

.compare-bar__track {
    flex: 1;
    height: 24px;
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.compare-bar__fill {
    height: 100%;
    border-radius: var(--radius-sm);
    transition: width 0.5s ease;
}

.compare-bar__fill--1 {
    background: linear-gradient(90deg, #f97316, #ef4444);
}

.compare-bar__fill--2 {
    background: linear-gradient(90deg, #eab308, #f97316);
}

.compare-bar__value {
    flex: 0 0 100px;
    font-weight: 700;
    color: var(--text-primary);
    font-size: 0.9rem;
    font-variant-numeric: tabular-nums;
}

.compare-verdict {
    margin-top: 1rem;
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    text-align: center;
    font-size: 1rem;
    color: var(--text-primary);
}

.compare-verdict strong {
    color: #ef4444;
}

/* =====================================================
   SCALE SECTION
   ===================================================== */
.scale-section {
    border-top: 1px solid var(--border-color);
}

.scale-header {
    padding: 1rem 1.5rem;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
}

.scale-header h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.scale-visual {
    display: flex;
    flex-wrap: wrap;
}

.scale-item {
    flex: 1;
    min-width: 150px;
    padding: 1rem;
    text-align: center;
    border-right: 1px solid var(--border-color);
}

.scale-item:last-child {
    border-right: none;
}

.scale-item--mild {
    background: rgba(34, 197, 94, 0.1);
}

.scale-item--medium {
    background: rgba(132, 204, 22, 0.1);
}

.scale-item--hot {
    background: rgba(234, 179, 8, 0.1);
}

.scale-item--veryhot {
    background: rgba(249, 115, 22, 0.1);
}

.scale-item--extreme {
    background: rgba(239, 68, 68, 0.1);
}

.scale-item__range {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-tertiary);
    margin-bottom: 0.375rem;
}

.scale-item__name {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.scale-item__examples {
    font-size: 0.75rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* =====================================================
   CHART SECTION
   ===================================================== */
.chart-section {
    border-top: 1px solid var(--border-color);
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    flex-wrap: wrap;
    gap: 1rem;
}

.chart-header h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.chart-search input {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    color: var(--text-primary);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    min-width: 200px;
}

.chart-search input:focus {
    outline: none;
    border-color: #ef4444;
}

.chart-search input::placeholder {
    color: var(--text-tertiary);
    opacity: 0.6;
}

.chart-container {
    overflow-x: auto;
}

.pepper-chart {
    width: 100%;
    border-collapse: collapse;
}

.pepper-chart th,
.pepper-chart td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.pepper-chart th {
    background: var(--bg-tertiary);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
}

.pepper-chart td {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.pepper-chart tbody tr:hover {
    background: var(--bg-secondary);
}

.pepper-chart .pepper-name {
    font-weight: 600;
    color: var(--text-primary);
}

.heat-badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 4px;
    text-transform: uppercase;
}

.heat-badge--mild {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
}

.heat-badge--medium {
    background: rgba(132, 204, 22, 0.1);
    color: #84cc16;
}

.heat-badge--hot {
    background: rgba(234, 179, 8, 0.1);
    color: #ca8a04;
}

.heat-badge--veryhot {
    background: rgba(249, 115, 22, 0.1);
    color: #ea580c;
}

.heat-badge--extreme {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.heat-badge--superhot {
    background: rgba(127, 29, 29, 0.2);
    color: #991b1b;
}

/* =====================================================
   PRIVACY NOTICE
   ===================================================== */
.privacy-notice {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem;
    font-size: 0.8rem;
    color: var(--text-tertiary);
    background: var(--bg-secondary);
}

/* =====================================================
   SEO CONTENT
   ===================================================== */
.seo-content {
    margin-top: 2rem;
}

.seo-section {
    margin-bottom: 2.5rem;
}

.seo-section h2 {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 1rem;
}

.seo-section > p {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 0;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}

.feature-card {
    padding: 1.25rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
}

.feature-card:hover {
    border-color: var(--text-tertiary);
}

.feature-card__icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

.feature-card__title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 0.5rem;
}

.feature-card__text {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
}

/* Steps Grid */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.step-card {
    position: relative;
    padding: 1.25rem;
    padding-left: 3.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
}

.step-card__number {
    position: absolute;
    left: 1rem;
    top: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    border-radius: 50%;
    font-weight: 700;
    font-size: 0.85rem;
}

.step-card__title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 0.375rem;
}

.step-card__text {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
}

/* FAQ List */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 1rem 1.25rem;
    font-size: 0.95rem;
    font-weight: 600;
    text-align: left;
    color: var(--text-primary);
    background: transparent;
    border: none;
    cursor: pointer;
    transition: background 0.2s ease;
}

.faq-question:hover {
    background: var(--bg-secondary);
}

.faq-icon {
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--text-tertiary);
    transition: transform 0.2s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer p {
    padding: 0 1.25rem 1rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 768px) {
    .tool-page {
        padding: 1rem 0.75rem;
    }
    
    .tool-header {
        flex-direction: column;
        text-align: center;
    }
    
    .tool-header__text h1 {
        font-size: 1.5rem;
    }
    
    .widget-toolbar {
        flex-direction: column;
        align-items: stretch;
    }
    
    .widget-toolbar__left,
    .widget-toolbar__right {
        justify-content: center;
    }
    
    .mode-tabs {
        flex-direction: column;
    }
    
    .mode-tab {
        min-width: 100%;
    }
    
    .unit-section {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .unit-toggle {
        width: 100%;
    }
    
    .unit-btn {
        flex: 1;
    }
    
    .pepper-row {
        flex-direction: column;
        align-items: stretch;
    }
    
    .pepper-row__select,
    .pepper-row__weight {
        min-width: 100%;
    }
    
    .pepper-row__remove {
        align-self: flex-end;
    }
    
    .compare-grid {
        flex-direction: column;
    }
    
    .compare-vs {
        transform: rotate(90deg);
        padding: 0.5rem 0;
    }
    
    .compare-item {
        min-width: 100%;
    }
    
    .results-stats {
        grid-template-columns: 1fr;
    }
    
    .gauge-value {
        font-size: 2.5rem;
    }
    
    .scale-visual {
        flex-direction: column;
    }
    
    .scale-item {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }
    
    .scale-item:last-child {
        border-bottom: none;
    }
    
    .chart-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .chart-search {
        width: 100%;
    }
    
    .chart-search input {
        width: 100%;
    }
    
    .compare-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }
    
    .compare-bar__name {
        flex: none;
        text-align: left;
    }
    
    .compare-bar__value {
        flex: none;
        text-align: right;
    }
    
    .features-grid,
    .steps-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .gauge-value {
        font-size: 2rem;
    }
    
    .stat-value {
        font-size: 1.25rem;
    }
    
    .heat-level__text {
        font-size: 1.1rem;
    }
}
