/* Custom styles for Varun's List */

:root {
    --accent: #1e3a5f;
    --accent-hover: #2d4a6f;
    --card-bg: #fafafa;
    --card-border: #e5e5e5;
}

@media (prefers-color-scheme: dark) {
    :root {
        --card-bg: #1a1a2e;
        --card-border: #2d2d44;
    }
}

/* Layout */
body {
    max-width: 1100px;
    margin: 0 auto;
    padding: 3rem 2.5rem;
}

/* Section spacing */
hr {
    margin: 4rem 0;
    border: none;
    border-top: 1px solid var(--card-border);
}

h3 {
    margin-top: 2.5rem;
    margin-bottom: 1.5rem;
    font-size: 1.75rem;
}

h5 {
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

/* Accent color for links */
a {
    color: var(--accent);
    transition: color 0.2s ease;
}

a:hover {
    color: var(--accent-hover);
}

/* Card-style sections */
.card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 2.5rem 3rem;
    margin-bottom: 2.5rem;
}

.card h3 {
    margin-top: 0;
}

.card h3:first-child {
    margin-top: 0;
}

/* Paragraph spacing */
.card p {
    line-height: 1.7;
    margin-bottom: 1.25rem;
}

/* Individual items within cards */
.item {
    padding: 1.75rem 0;
    border-bottom: 1px solid var(--card-border);
}

.item:first-of-type {
    padding-top: 0.5rem;
}

.item:last-of-type {
    border-bottom: none;
    padding-bottom: 0;
}

.item h5 {
    margin-top: 0;
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
    color: var(--accent);
}

.item p:last-child {
    margin-bottom: 0;
}

/* Table styling */
table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 1.5rem 0;
    font-size: 0.95rem;
    border: 1px solid var(--card-border);
    border-radius: 8px;
}

thead {
    background: #f3f4f6;
    color: #1f2937;
}

thead th {
    padding: 0.75rem 1rem;
    text-align: left;
    font-weight: 600;
}


tbody tr:nth-child(even) {
    background: var(--card-bg);
}

tbody td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--card-border);
    border-right: 1px solid var(--card-border);
}

tbody td:last-child {
    border-right: none;
}

tbody tr:last-child td {
    border-bottom: none;
}

thead th {
    border-bottom: 1px solid var(--card-border);
    border-right: 1px solid var(--card-border);
}

thead th:last-child {
    border-right: none;
}

/* Image styling */
.product-image {
    max-width: 400px;
    width: 100%;
    height: auto;
    display: block;
    margin: 1.5rem 0;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Meter accent color */
.meter-fill {
    background-color: var(--accent) !important;
}

/* Color picker */
.color-picker {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.color-swatch {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 3px solid transparent;
    cursor: pointer;
    transition: transform 0.15s ease, border-color 0.15s ease;
}

.color-swatch:hover {
    transform: scale(1.15);
}

.color-swatch.active {
    border-color: #333;
}

@media (prefers-color-scheme: dark) {
    .color-swatch.active {
        border-color: #fff;
    }
}

/* Header styling */
.site-header {
    text-align: center;
    margin-bottom: 4rem;
    padding: 2rem 0;
}

.site-header h1 {
    margin-bottom: 1rem;
    font-size: 2.75rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.site-header p {
    color: #666;
    font-size: 1.25rem;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}
