/* Reset and base styles */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --primary-color: #2563eb;
    --primary-hover: #1d4ed8;
    --text-color: #1f2937;
    --text-muted: #6b7280;
    --bg-color: #ffffff;
    --bg-secondary: #f3f4f6;
    --border-color: #e5e7eb;
    --max-width: 800px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
}

/* Header */
header {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 2rem;
}

nav {
    max-width: var(--max-width);
    margin: 0 auto;
    text-align: center;
}

.logo {
    font-family: 'Impact', 'Arial Black', 'Helvetica Neue', sans-serif;
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--primary-color);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.logo:hover {
    color: var(--primary-hover);
}

/* Main content */
main {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 2rem;
    min-height: calc(100vh - 200px);
}

/* Hero section */
.hero {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.hero p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* Lists grid */
.lists-grid {
    display: grid;
    gap: 1.5rem;
}

.list-card {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.2s, transform 0.2s;
}

.list-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.list-card a {
    display: block;
    padding: 1.5rem;
    text-decoration: none;
    color: inherit;
}

.list-card h2 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.list-card .meta {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.list-card .description {
    color: var(--text-color);
    font-size: 0.95rem;
}

.no-content {
    text-align: center;
    color: var(--text-muted);
    padding: 3rem;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.pagination a {
    color: var(--primary-color);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border: 1px solid var(--primary-color);
    border-radius: 4px;
}

.pagination a:hover {
    background: var(--primary-color);
    color: white;
}

.page-info {
    color: var(--text-muted);
}

/* Individual list page */
.top-10-list {
    max-width: 100%;
}

.list-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.list-header h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.list-header .meta {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.intro {
    margin-bottom: 2rem;
    font-size: 1.1rem;
    line-height: 1.8;
}

.top-10-items {
    list-style: none;
    margin-bottom: 2rem;
}

.list-item {
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

.list-item:last-child {
    border-bottom: none;
}

.list-item h2 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.list-item p {
    color: var(--text-muted);
    line-height: 1.7;
}

.conclusion {
    background: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.list-footer {
    padding-top: 1rem;
}

.list-footer a {
    color: var(--primary-color);
    text-decoration: none;
}

.list-footer a:hover {
    text-decoration: underline;
}

/* Featured image */
.featured-image {
    margin-bottom: 2rem;
}

.featured-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
}

.featured-image figcaption {
    margin-top: 0.5rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    text-align: center;
}

.featured-image figcaption a {
    color: var(--primary-color);
    text-decoration: none;
}

.featured-image figcaption a:hover {
    text-decoration: underline;
}

/* Page Layout with Sidebars */
.page-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    max-width: 1400px;
    margin: 0 auto;
}

.sidebar {
    display: none;
}

@media (min-width: 1200px) {
    .page-wrapper {
        grid-template-columns: 160px 1fr 160px;
        gap: 1rem;
    }

    .sidebar {
        display: block;
        padding: 1rem 0;
    }

    .sticky-ad {
        position: sticky;
        top: 1rem;
    }
}

/* Ad Units */
.ad-unit {
    margin: 1.5rem 0;
    text-align: center;
    min-height: 100px;
    background: var(--bg-secondary);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ad-inline {
    list-style: none;
    padding: 1rem;
}

.ad-unit ins {
    width: 100%;
}

/* Footer */
footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 2rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* Responsive */
@media (max-width: 600px) {
    main {
        padding: 1rem;
    }

    .hero h1 {
        font-size: 1.75rem;
    }

    .list-header h1 {
        font-size: 1.5rem;
    }
}
