/* 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 {
    text-align: center;
    padding: 3rem 1rem;
    background: #1a1a2e;
    border-radius: 8px;
    margin-bottom: 2rem;
    box-shadow: 0 2px 12px rgba(0,0,0,0.3);
    border: 1px solid #2a2a3e;
}

.hero h1 { font-size: 2rem; margin-bottom: 1rem; color: #f5c518; font-weight: 800; }
.hero p { max-width: 600px; margin: 0 auto 1.5rem; font-size: 1.1rem; color: #a0a0a0; }

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.stat {
    background: #f5c518;
    color: #1a1a2e;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 700;
}

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;
}

.brand-link, .cat-link {
    display: block;
    background: #1a1a2e;
    padding: 1rem;
    border-radius: 6px;
    text-align: center;
    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;
}

.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 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 {
    max-width: 250px;
    height: auto;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

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

.compare-btn {
    display: inline-block;
    background: #f5c518;
    color: #1a1a2e;
    padding: 0.5rem 1.5rem;
    border-radius: 4px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
}

.compare-btn:hover { background: #ffd700; text-decoration: none; }

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

.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; }

/* 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; }
    .brand-grid, .cat-grid { grid-template-columns: repeat(2, 1fr); }
    .spec-table { font-size: 0.8rem; }
    .compare-selects { flex-direction: column; }
}
