/* Reset and Base Styles */
* {
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #fafafa;
    color: #333;
    line-height: 1.6;
}

/* Screen Reader Only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Header */
.header {
    background: #fff;
    border-bottom: 1px solid #e1e5e9;
    padding: 20px 0;
    margin-bottom: 24px;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

h1 {
    margin: 0 0 8px 0;
    font-size: 24px;
    font-weight: 600;
    color: #1a1a1a;
}

.header-subtitle {
    margin: 0 0 12px 0;
    font-size: 14px;
    color: #6a737d;
    font-weight: 400;
}

.disclaimer {
    margin-top: 8px;
    padding: 8px 12px;
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 4px;
    font-size: 13px;
    color: #856404;
}

/* Site Description */
.site-description {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-left: 4px solid #ffc107;
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 24px;
    font-size: 14px;
    line-height: 1.6;
    color: #495057;
}

.site-description h2 {
    margin: 0 0 16px 0;
    font-size: 18px;
    font-weight: 600;
    color: #24292e;
}

.site-description p {
    margin: 0 0 12px 0;
}

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

/* Controls */
.controls {
    background: #fff;
    border: 1px solid #e1e5e9;
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 20px;
}

.controls h3 {
    margin: 0 0 16px 0;
    font-size: 14px;
    font-weight: 600;
    color: #586069;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-description {
    margin: 0 0 16px 0;
    padding: 8px 12px;
    background: #e8f4fd;
    border: 1px solid #b8daff;
    border-radius: 4px;
    font-size: 13px;
    color: #0c5aa6;
    line-height: 1.4;
}

.filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.filter-item {
    display: flex;
    align-items: center;
    font-size: 14px;
}

.filter-item input[type="checkbox"] {
    margin: 0 8px 0 0;
    transform: scale(1.1);
}

.filter-item label {
    cursor: pointer;
    color: #24292e;
    user-select: none;
}

.button-group {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.btn {
    padding: 6px 12px;
    border: 1px solid #d1d5da;
    border-radius: 4px;
    background: #fafbfc;
    font-size: 12px;
    cursor: pointer;
    text-decoration: none;
    color: #24292e;
    font-weight: 500;
    transition: background-color 0.2s, border-color 0.2s;
}

.btn:hover {
    background: #f3f4f6;
    border-color: #c6cbd1;
}

.btn:focus {
    outline: 2px solid #0366d6;
    outline-offset: 2px;
}

.btn-primary {
    background: #0366d6;
    color: #fff;
    border-color: #0366d6;
}

.btn-primary:hover {
    background: #0256cc;
    border-color: #0256cc;
}

.button-help {
    margin-top: 8px;
}

.button-help small {
    color: #6a737d;
    font-size: 11px;
    line-height: 1.4;
}

.result-info {
    font-size: 13px;
    color: #586069;
}

/* Table */
.table-wrapper {
    background: #fff;
    border: 1px solid #e1e5e9;
    border-radius: 6px;
    overflow: hidden;
    overflow-x: auto;
}

.table {
    width: 100%;
    min-width: 1000px;
    border-collapse: collapse;
}

.table th {
    background: #f6f8fa;
    border-bottom: 2px solid #e1e5e9;
    padding: 12px 15px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
    color: #24292e;
    white-space: nowrap;
}

.table th.text-center {
    text-align: center;
}

.table td {
    border-bottom: 1px solid #e1e5e9;
    padding: 12px 15px;
    vertical-align: top;
}

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

.table tr:hover {
    background: #f6f8fa;
}

.site-name {
    font-weight: 500;
    color: #0366d6;
    text-decoration: none;
    font-size: 15px;
    transition: text-decoration 0.2s;
}

.site-name:hover {
    text-decoration: underline;
}

.site-name:focus {
    outline: 2px solid #0366d6;
    outline-offset: 2px;
    border-radius: 2px;
}

.features-cell {
    font-size: 12px;
    color: #586069;
    line-height: 1.4;
}

.features-none {
    color: #6a737d;
    font-style: italic;
}

.categories-cell {
    /* Category styles handled by .category-tag */
}

.category-tag {
    display: inline-block;
    background: #f1f3f4;
    color: #586069;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    margin: 2px 4px 2px 0;
}

.fee-cell {
    text-align: center;
    font-size: 13px;
    font-weight: 600;
}

.fee-free {
    color: #28a745;
}

.fee-paid {
    color: #d73a49;
    font-size: 14px;
    font-weight: 700;
}

.fee-unknown {
    color: #6a737d;
}

.celebrity-cell {
    text-align: center;
    font-size: 13px;
    color: #24292e;
    font-weight: 500;
}

.celebrity-none {
    color: #6a737d;
    font-style: italic;
}

/* Loading and Error States */
.loading, .error {
    text-align: center;
    padding: 40px 20px;
    color: #586069;
}

.error {
    color: #d73a49;
    background: #ffeef0;
    border: 1px solid #fdaeb7;
    border-radius: 6px;
    margin: 20px 0;
}

/* Footer */
.footer {
    margin-top: 40px;
    background: #f6f8fa;
    border-top: 1px solid #e1e5e9;
    padding: 30px 0;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    align-items: start;
}

.footer-disclaimer h4 {
    margin: 0 0 12px 0;
    font-size: 16px;
    color: #24292e;
    font-weight: 600;
}

.footer-disclaimer p {
    margin: 0 0 12px 0;
    font-size: 13px;
    color: #586069;
    line-height: 1.5;
}

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

.footer-info {
    text-align: right;
    font-size: 12px;
    color: #6a737d;
}

.footer-info p {
    margin: 0 0 6px 0;
}

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

.copyright {
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid #d1d5da;
}

.copyright p {
    margin: 0;
    font-size: 11px;
    color: #8b949e;
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 768px) {
    .filter-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .footer-info {
        text-align: left;
    }
    
    .button-group {
        flex-wrap: wrap;
    }
    
    .container {
        padding: 0 15px;
    }
    
    h1 {
        font-size: 20px;
    }
    
    .table {
        min-width: 800px;
    }
}