/* GeneratorDatabase.com — Dark machinery theme with electric yellow accent */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #121212;
    color: #e0e0e0;
    line-height: 1.6;
}

a { color: #f5c518; text-decoration: none; }
a:hover { text-decoration: underline; color: #ffd700; }

header {
    background: #1a1a2e;
    color: #fff;
    padding: 1rem;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 12px rgba(0,0,0,0.4);
    border-bottom: 2px solid #f5c518;
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.logo {
    font-size: 1.3rem;
    font-weight: 800;
    color: #f5c518 !important;
    text-decoration: none;
    letter-spacing: -0.5px;
}

.logo:hover { color: #ffd700 !important; }

.search-form {
    display: flex;
    gap: 0.5rem;
}

.search-form input {
    padding: 0.5rem 1rem;
    border: 1px solid #333;
    border-radius: 4px;
    font-size: 0.9rem;
    min-width: 200px;
    background: #2a2a3e;
    color: #e0e0e0;
}

.search-form input:focus {
    outline: none;
    border-color: #f5c518;
}

.search-form button {
    padding: 0.5rem 1rem;
    background: #f5c518;
    color: #1a1a2e;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 700;
}

.search-form button:hover {
    background: #ffd700;
}

main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* ── Hero ── */
.hero {
    text-align: center;
    padding: 3.5rem 2rem;
    background: #1a1a2e;
    border-radius: 8px;
    margin-bottom: 2rem;
    box-shadow: 0 2px 12px rgba(0,0,0,0.3);
    border: 1px solid #2a2a3e;
    position: relative;
    overflow: hidden;
}

/* Subtle grid texture */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        repeating-linear-gradient(90deg,
            transparent, transparent 39px,
            rgba(245,197,24,0.04) 39px, rgba(245,197,24,0.04) 40px),
        repeating-linear-gradient(0deg,
            transparent, transparent 39px,
            rgba(245,197,24,0.04) 39px, rgba(245,197,24,0.04) 40px);
    pointer-events: none;
}

/* Warm glow above h1 */
.hero::after {
    content: '';
    position: absolute;
    top: -40px; left: 50%; transform: translateX(-50%);
    width: 500px; height: 200px;
    background: radial-gradient(ellipse, rgba(245,197,24,0.07) 0%, transparent 70%);
    pointer-events: none;
}

.hero h1 {
    font-size: clamp(1.8rem, 4vw, 2.75rem);
    margin-bottom: 0.75rem;
    color: #f5c518;
    font-weight: 800;
    letter-spacing: -0.02em;
    position: relative;
}

.hero > p {
    max-width: 520px;
    margin: 0 auto 2rem;
    font-size: 1.05rem;
    color: #888;
    position: relative;
}

/* Hero stat blocks */
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 0;
    position: relative;
}

.hero-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 2rem;
    border-right: 1px solid rgba(255,255,255,0.07);
}

.hero-stat:last-child { border-right: none; }

.hero-stat-value {
    font-size: 2rem;
    font-weight: 800;
    color: #f5c518;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.hero-stat-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #666;
    margin-top: 0.3rem;
}

section { margin-bottom: 2.5rem; }

h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #f5c518;
    font-weight: 700;
    border-bottom: 2px solid #2a2a3e;
    padding-bottom: 0.3rem;
}

h3 { color: #f5c518; }

.brand-grid, .cat-grid, .tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.tools-grid {
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
}

.brand-link, .cat-link {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: #1a1a2e;
    padding: 1rem;
    border-radius: 6px;
    font-weight: 600;
    box-shadow: 0 1px 4px rgba(0,0,0,0.2);
    border: 1px solid #2a2a3e;
    color: #e0e0e0 !important;
    transition: box-shadow 0.2s, border-color 0.2s, transform 0.2s;
}

.brand-link:hover, .cat-link:hover {
    box-shadow: 0 3px 12px rgba(245, 197, 24, 0.2);
    border-color: #f5c518;
    text-decoration: none;
    transform: translateY(-2px);
    color: #f5c518 !important;
}

.brand-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #f5c518;
    flex-shrink: 0;
    opacity: 0.5;
    transition: opacity 0.15s;
}

.brand-link:hover .brand-dot { opacity: 1; }

.tool-card {
    display: block;
    background: #1a1a2e;
    padding: 1.5rem;
    border-radius: 6px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.2);
    border: 1px solid #2a2a3e;
    color: #e0e0e0 !important;
    transition: border-color 0.2s, transform 0.2s;
}

.tool-card:hover {
    border-color: #f5c518;
    transform: translateY(-2px);
    text-decoration: none;
}

.tool-card h3 { color: #f5c518; margin-bottom: 0.5rem; }
.tool-card p { color: #a0a0a0; font-size: 0.9rem; }

.spec-table {
    width: 100%;
    border-collapse: collapse;
    background: #1a1a2e;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,0.2);
    border: 1px solid #2a2a3e;
}

.spec-table th, .spec-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid #2a2a3e;
}

.spec-table th {
    background: #2a2a3e;
    color: #f5c518;
    font-weight: 700;
}

.spec-table td { color: #d0d0d0; }

.spec-table tr:hover { background: #232340; }

.spec-table tbody tr:nth-child(even) {
    background: rgba(255,255,255,0.02);
}

.spec-table tbody tr {
    cursor: pointer;
    transition: background 0.12s;
}

.spec-table tbody tr:hover {
    background: rgba(245,197,24,0.05) !important;
}

.spec-table td a { color: #f5c518; }
.spec-table td a:hover { color: #ffd700; }

.breadcrumbs {
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    color: #666;
}

.breadcrumbs a { color: #f5c518; }
.breadcrumbs a:hover { color: #ffd700; }
.breadcrumbs span { color: #a0a0a0; }

.category-label {
    display: inline-block;
    background: #f5c518;
    color: #1a1a2e;
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.model-actions { margin: 1rem 0; }

.model-image {
    text-align: center;
    margin: 1.5rem 0;
}

.product-img-wrapper {
    max-width: 600px;
    margin: 1.5rem auto;
    text-align: center;
    background: #1e1e2e;
    border-radius: 8px;
    padding: 1rem;
}

.product-img {
    max-width: 100%;
    max-height: 400px;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    display: inline-block;
}

.img-placeholder {
    display: inline-block;
}

/* ── Type-aware product visual placeholder ── */
.product-visual {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.product-visual-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.product-visual-type {
    font-size: 0.65rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(245,197,24,0.45);
}

.product-visual-watts {
    font-size: 1rem;
    font-weight: 700;
    color: #f5c518;
    font-variant-numeric: tabular-nums;
}

.compare-btn {
    display: inline-block;
    background: transparent;
    color: #f5c518;
    border: 1.5px solid #f5c518;
    padding: 0.5rem 1.5rem;
    border-radius: 4px;
    font-weight: 700;
    cursor: pointer;
    font-size: 0.95rem;
    transition: background 0.15s, color 0.15s;
}

.compare-btn:hover {
    background: #f5c518;
    color: #1a1a2e;
    text-decoration: none;
}

.detail-table td:first-child {
    font-weight: 600;
    background: #232340;
    color: #f5c518;
    width: 40%;
}

/* Highlight key specs rows */
.detail-table tr.spec-key td {
    background: rgba(245,197,24,0.06);
}

.detail-table tr.spec-key td:first-child {
    background: rgba(245,197,24,0.12);
    border-left: 3px solid #f5c518;
    color: #ffd700;
}

.affiliate-section {
    margin: 2rem 0;
    padding: 1rem;
    background: #1a1a2e;
    border-radius: 6px;
    border: 1px solid #2a2a3e;
}

.affiliate-section h3 {
    margin-bottom: 0.8rem;
    color: #f5c518;
}

.buy-btn {
    display: inline-block;
    background: #27ae60;
    color: #fff !important;
    padding: 0.6rem 1.5rem;
    border-radius: 4px;
    font-weight: 600;
    margin: 0.3rem;
}

.buy-btn:hover { background: #2ecc71; text-decoration: none; }

.no-affiliates {
    color: #a0a0a0;
    font-style: italic;
    padding: 0.5rem;
}

/* Comparison table */
.compare-table th { text-align: center; }
.compare-table td:first-child { font-weight: 600; width: 25%; color: #f5c518; }

.better {
    background: rgba(46, 204, 113, 0.25) !important;
    color: #2ecc71 !important;
    font-weight: 600;
}

.worse {
    background: rgba(231, 76, 60, 0.25) !important;
    color: #e74c3c !important;
}

.equal {
    background: rgba(149, 165, 166, 0.2) !important;
    color: #bdc3c7 !important;
}

.color-sample {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    border-radius: 3px;
    font-size: 0.8rem;
}

.better-sample { background: rgba(46, 204, 113, 0.25); color: #2ecc71; }
.worse-sample { background: rgba(231, 76, 60, 0.25); color: #e74c3c; }
.equal-sample { background: rgba(149, 165, 166, 0.2); color: #bdc3c7; }

.share-link {
    margin: 1rem 0;
    padding: 1rem;
    background: #1a1a2e;
    border-radius: 6px;
    border: 1px solid #2a2a3e;
}

.share-link label { color: #f5c518; font-weight: 600; }

.share-link input {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #333;
    border-radius: 4px;
    font-size: 0.8rem;
    margin-top: 0.5rem;
    background: #2a2a3e;
    color: #e0e0e0;
}

.verdict {
    margin: 2rem 0;
    padding: 1.5rem;
    background: #1a1a2e;
    border-radius: 6px;
    border: 2px solid #f5c518;
}

.verdict h2 { border-bottom: none; margin-bottom: 0.5rem; color: #f5c518; }
.verdict ul { margin-left: 1.5rem; color: #e0e0e0; }
.verdict li { margin-bottom: 0.3rem; }

.compare-selects {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.compare-select {
    flex: 1;
    min-width: 250px;
    padding: 0.6rem;
    border: 1px solid #333;
    border-radius: 4px;
    background: #2a2a3e;
    color: #e0e0e0;
}

.compare-select:focus { outline: none; border-color: #f5c518; }

/* Calculator */
.calc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.appliance-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem;
    background: #1a1a2e;
    border-radius: 4px;
    border: 1px solid #2a2a3e;
    color: #e0e0e0;
}

.appliance-item label { cursor: pointer; }
.appliance-item input[type="checkbox"] { accent-color: #f5c518; }
.appliance-item input[type="number"] {
    background: #2a2a3e;
    color: #e0e0e0;
    border: 1px solid #333;
    border-radius: 3px;
    padding: 0.2rem;
    text-align: center;
}

.calc-result {
    padding: 1.5rem;
    background: #1a1a2e;
    color: #e0e0e0;
    border-radius: 6px;
    text-align: center;
    border: 1px solid #f5c518;
}

.calc-result h2 { color: #f5c518; border-bottom: none; }
#running-total, #starting-total {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0.5rem 0;
    color: #f5c518;
}

#recommendation { margin-top: 1rem; font-size: 1.1rem; color: #a0a0a0; }
#recommendation a { color: #f5c518; }

footer {
    text-align: center;
    padding: 2rem;
    background: #1a1a2e;
    color: #a0a0a0;
    margin-top: 3rem;
    border-top: 2px solid #2a2a3e;
}

footer a { color: #f5c518; }

/* ── Data source trust note ── */
.data-source-note {
    font-size: 0.8rem;
    color: #555;
    margin: 1.25rem 0 0;
    padding: 0.75rem 1rem;
    border-left: 3px solid #2a2a3e;
    background: rgba(255,255,255,0.02);
    border-radius: 0 4px 4px 0;
}

.data-source-note strong { color: #888; font-weight: 600; }
.data-source-note a { color: #666; }

/* Responsive */
@media (max-width: 768px) {
    .header-inner { flex-direction: column; }
    .search-form { width: 100%; }
    .search-form input { flex: 1; min-width: unset; }
    .hero h1 { font-size: 1.5rem; }
    .hero-stat { padding: 0 1.25rem; }
    .hero-stat-value { font-size: 1.5rem; }
    .brand-grid, .cat-grid { grid-template-columns: repeat(2, 1fr); }
    .spec-table { font-size: 0.8rem; }
    .compare-selects { flex-direction: column; }
}
