/* ===== Fruit Loop Rater ===== */

body {
    max-width: 640px;
    margin: 0 auto;
    padding: 0 16px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #2d2a26;
    background: #fffdf9;
    line-height: 1.55;
}

.fruit-card {
    background: #ffffff;
    border: 1px solid #eee5d8;
    border-radius: 12px;
    padding: 16px;
    margin: 12px 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.fruit-name {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.fruit-name a {
    text-decoration: none;
    color: inherit;
}

.rate-button {
    display: inline-block;
    margin-top: 10px;
    padding: 6px 14px;
    background: #e85d4a;
    color: white;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.9rem;
}

.headline-stat { font-size: 1.1rem; }
.alltime-stat  { color: #8a8378; }

a {
    color: #e85d4a;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.field {
    margin: 20px 0;
}

.field label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
}

input[type="range"] {
    width: 100%;
    accent-color: #e85d4a;
}

select, input[type="date"] {
    padding: 8px;
    border: 1px solid #ddd3c4;
    border-radius: 8px;
    font-size: 1rem;
}

.legend {
    color: #8a8378;
    font-size: 0.85rem;
}

.scale { display: flex; gap: 6px; }
.scale-option input { display: none; }
.scale-option span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 1px solid #ddd3c4;
    border-radius: 50%;
    font-size: 0.9rem;
    cursor: pointer;
}
.scale-option input:checked + span {
    background: #e85d4a;
    color: white;
    border-color: #e85d4a;
}

.date-row {
    display: flex;
    gap: 16px;
}

.date-row label {
    flex: 1;
}


.notice {
    background: #fff4e5;
    border: 1px solid #f0d9b5;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 0.9rem;
}

.weekly-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.weekly-table th {
    text-align: left;
    padding: 10px 12px;
    border-bottom: 2px solid #e85d4a;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #8a8378;
}

.weekly-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #eee5d8;
}

.weekly-table tr:last-child td {
    border-bottom: none;
}

.blurb {
    color: #6b6459;
    font-size: 0.95rem;
    margin: 4px 0;
}

@media (max-width: 480px) {
    .weekly-table thead, .weekly-table tr:first-child {
        display: none;
    }
    .weekly-table, .weekly-table tbody, .weekly-table tr, .weekly-table td {
        display: block;
        width: 100%;
    }
    .weekly-table tr {
        margin-bottom: 16px;
        border: 1px solid #eee5d8;
        border-radius: 10px;
        padding: 10px 12px;
    }
    .weekly-table td {
        border-bottom: none;
        padding: 4px 0;
    }
    .weekly-table td::before {
        content: attr(data-label);
        font-weight: 600;
        display: block;
        font-size: 0.75rem;
        color: #8a8378;
        text-transform: uppercase;
    }
}

.hero {
    text-align: center;
    margin: 32px 0 24px;
}

.hero h1 {
    margin-bottom: 4px;
    font-size: 2rem;
}

.page-intro {
    text-align: center;
    margin-bottom: 24px;
}


.stat-line::after {
    content: " · ";
    color: #8a8378;
}

.stat-line:last-of-type::after {
    content: "";
}

@media (max-width: 480px) {
    .stat-line {
        display: block;
        margin-bottom: 2px;
    }
    .stat-line::after {
        content: "";
    }
}

.delete-button {
    margin-top: 4px;
    padding: 3px 10px;
    background: none;
    border: 1px solid #cc4444;
    color: #cc4444;
    border-radius: 6px;
    font-size: 0.8rem;
    cursor: pointer;
}