* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    padding: 20px;
    background-color: #f8f9fa;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

h1 {
    color: #1a1a1a;
    margin-bottom: 10px;
    font-size: 28px;
}

h2 {
    color: #0066cc;
    margin-top: 20px;
    margin-bottom: 15px;
    font-size: 22px;
}

p {
    margin-bottom: 15px;
    color: #555;
}

a {
    color: #0066cc;
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: #0052a3;
    text-decoration: underline;
}

#loading {
    text-align: center;
    padding: 40px;
    font-size: 18px;
    color: #666;
}

#content {
    padding: 20px 0;
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 14px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    overflow-x: auto;
    display: block;
}

table th,
table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

table th {
    background-color: #0066cc;
    color: white;
    font-weight: 600;
    border-bottom: 2px solid #0052a3;
    position: sticky;
    top: 0;
}

table tr {
    display: table;
    width: 100%;
    table-layout: fixed;
}

table tr:hover {
    background-color: #f5f5f5;
}

table a {
    color: #0066cc;
    word-break: break-all;
}

table a:hover {
    text-decoration: underline;
}

/* Make Terms and Privacy columns smaller */
table th:nth-child(7),
table th:nth-child(8),
table td:nth-child(7),
table td:nth-child(8) {
    padding: 4px 2px;
    font-size: 12px;
    text-align: center;
    width: 60px;
}
table th:nth-child(6),
table td:nth-child(6),
table th:nth-child(4),
table td:nth-child(4)
{
    padding: 4px 2px;
    font-size: 12px;
    text-align: center;
    width: 90px;
}
/* Responsive Table */
@media (max-width: 1024px) {
    table {
        font-size: 13px;
    }
    
    table th,
    table td {
        padding: 10px 8px;
    }
    table th:nth-child(6),
    table td:nth-child(6),
    table th:nth-child(4),
    table td:nth-child(4),
    table th:nth-child(7),
    table th:nth-child(8),
    table td:nth-child(7),
    table td:nth-child(8) {
        padding: 8px 4px;
        width: 50px;
    }
}

@media (max-width: 768px) {
    table {
        font-size: 12px;
    }
    
    table th,
    table td {
        padding: 8px 6px;
        word-break: break-word;
    }
    
    /* Hide certain columns on mobile */
    table th:nth-child(4),
    table th:nth-child(5),
    table th:nth-child(7),
    table th:nth-child(8),
    table td:nth-child(4),
    table td:nth-child(5),
    table td:nth-child(7),
    table td:nth-child(8) {
        display: none;
    }
    
    /* Make URL and Maintainer wider on mobile */
    table th:nth-child(1),
    table th:nth-child(3),
    table td:nth-child(1),
    table td:nth-child(3) {
        min-width: 100px;
    }
    
    .container {
        padding: 15px;
    }
    
    h1 {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    table {
        font-size: 11px;
    }
    
    table th,
    table td {
        padding: 6px 4px;
    }
    
    /* On very small screens, show only essential columns */
    table th:nth-child(2),
    table th:nth-child(6),
    table td:nth-child(2),
    table td:nth-child(6) {
        display: none;
    }
    
    /* Make columns more compact */
    table th:nth-child(1),
    table th:nth-child(3),
    table td:nth-child(1),
    table td:nth-child(3) {
        min-width: 80px;
        max-width: 150px;
    }
    
    .container {
        padding: 10px;
    }
    
    h1 {
        font-size: 18px;
    }
    
    p {
        font-size: 13px;
    }
}

/* Buttons */
button {
    padding: 12px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s ease;
    width: 100%;
    margin-bottom: 10px;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

#toggle-pds {
    background: #0066cc;
    color: white;
}

#toggle-pds:hover {
    background: #0052a3;
}

#toggle-bsky {
    background: #0066cc;
    color: white;
}

#toggle-bsky:hover {
    background: #0052a3;
}

/* Sections */
#pds-section,
#bsky-section,
#cool-section {
    margin-top: 15px;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 4px;
    border-left: 4px solid #0066cc;
}

/* Search and Filters */
#search-input {
    width: 100%;
    padding: 10px 12px;
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

#search-input:focus {
    outline: none;
    border-color: #0066cc;
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

#filters {
    margin-bottom: 20px;
    padding: 15px;
    background: #f0f4f8;
    border-radius: 4px;
    border: 1px solid #ddd;
}

#filters label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-right: 15px;
    cursor: pointer;
    color: #333;
}

#filters input[type="radio"] {
    cursor: pointer;
    width: 18px;
    height: 18px;
}

/* Mobile Popup Styles */
#mobile-popup {
    backdrop-filter: blur(4px);
}

#mobile-popup button {
    padding: 10px 20px !important;
    width: auto !important;
    margin: 0 !important;
}

/* Info boxes */
#no-data {
    text-align: center;
    padding: 40px 20px;
    color: #999;
    font-size: 16px;
}

.stats {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.stat {
    padding: 15px;
    background: linear-gradient(135deg, #0066cc 0%, #0052a3 100%);
    color: white;
    border-radius: 4px;
    font-weight: 600;
    min-width: 200px;
}

.stat-label {
    font-size: 12px;
    opacity: 0.9;
    margin-bottom: 5px;
}

.stat-value {
    font-size: 24px;
}

@media (max-width: 768px) {
    .stat {
        min-width: 150px;
        flex: 1;
    }
    
    .stat-value {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .stats {
        gap: 10px;
    }
    
    .stat {
        min-width: 120px;
        padding: 12px;
    }
    
    .stat-value {
        font-size: 18px;
    }
}