/* SEO Pages Styles - Matching Main Page Dark Theme */

:root {
    --bg: #000000;
    --bg-elevated: #0a0a0a;
    --bg-card: rgba(255, 255, 255, 0.03);
    --text: #ffffff;
    --text-secondary: #a0a0a0;
    --muted: #666666;
    --border: rgba(255, 255, 255, 0.08);
    --accent: #ffffff;
    --accent-hover: #f0f0f0;
    --tier-s: #ff7f7f;
    --tier-a: #ffbf7f;
    --tier-b: #ffdf7f;
    --tier-c: #ffff7f;
    --tier-d: #bfff7f;
    --tier-f: #7fbfff;
}

/* Reset & Base */
.seo-page {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.seo-page * {
    box-sizing: border-box;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header - Matching Main Page */
.seo-header {
    position: sticky;
    top: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    z-index: 100;
    padding: 16px 0;
}

.seo-header .container {
    width: calc(100% - 200px);
    max-width: 1400px;
    margin: 0 auto;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.seo-header .logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    margin-left: 0;
}

.seo-header .logo img {
    height: 80px;
    width: auto;
    filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.6));
}

.seo-header .logo span {
    display: none;
}

.seo-header .container > .back-btn {
    margin-left: auto;
}

.back-btn {
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 200ms ease;
}

.back-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-left: auto;
}

.header-search {
    padding: 16px 24px;
    gap: 14px;
    background: rgba(255, 255, 255, 0.12);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
}

.header-search:focus-within {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.18);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.15);
}

.header-search svg {
    width: 24px;
    height: 24px;
    color: #ccc;
}

.header-search input {
    width: 400px;
    font-size: 18px;
    color: #fff;
}

.header-search input::placeholder {
    color: #999;
}

/* Main Content */
.seo-main {
    padding: 48px 0 80px;
}

/* Breadcrumbs */
.breadcrumbs {
    margin-bottom: 32px;
}

.breadcrumbs ol {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 14px;
}

.breadcrumbs li {
    display: flex;
    align-items: center;
    color: var(--muted);
}

.breadcrumbs li:not(:last-child)::after {
    content: '/';
    margin-left: 8px;
    color: var(--muted);
}

.breadcrumbs a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumbs a:hover {
    color: var(--text);
}

/* Tier List Article */
.tier-list-article {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 32px;
    margin-bottom: 48px;
}

.tier-list-header h1 {
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 16px;
    line-height: 1.2;
    color: var(--text);
    /* Override rainbow gradient from styles.css */
    background: none !important;
    -webkit-background-clip: unset !important;
    -webkit-text-fill-color: var(--text) !important;
    background-clip: unset !important;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.tier-list-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.category-badge {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.tier-list-description {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 24px;
}

.tier-list-description p {
    margin: 0;
    color: var(--text-secondary);
}

/* Tier List - Match main page styles exactly */
.seo-page .mini-tierlist {
    margin-bottom: 32px;
}

.seo-page .mini-tier-row {
    display: flex;
    min-height: 140px;
    background: #141414;
    overflow: hidden;
}

.seo-page .mini-tier-label {
    width: 120px;
    min-width: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 24px;
    color: #1a1a1a;
    text-align: center;
    word-break: break-word;
    overflow-wrap: break-word;
    line-height: 1.2;
    padding: 8px 6px;
}

.seo-page .mini-tier-items {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    min-height: 100px;
}

.seo-page .pool-item {
    width: 120px;
    height: 120px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    background: transparent;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.seo-page .pool-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    pointer-events: none;
    background: transparent;
}

.seo-page .pool-item:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.15);
}

.seo-page .pool-item.text-only {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    justify-content: center;
    cursor: default;
}

.seo-page .pool-item.text-only:hover {
    transform: none;
    box-shadow: none;
}

.seo-page .pool-item .item-name-text {
    padding: 10px;
    font-size: 13px;
    color: var(--text);
    text-align: center;
    word-break: break-word;
    line-height: 1.3;
}

/* Tags */
.tier-list-tags {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.tier-list-tags h3 {
    font-size: 16px;
    margin: 0 0 12px;
    color: var(--text);
}

.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    background: var(--bg-elevated);
    color: var(--text-secondary);
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 13px;
    border: 1px solid var(--border);
}

/* CTA Section */
.cta-section {
    margin-top: 32px;
    padding: 32px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    text-align: center;
}

.cta-section h3 {
    margin: 0 0 8px;
    font-size: 24px;
    color: var(--text);
}

.cta-section p {
    margin: 0 0 20px;
    color: var(--text-secondary);
}

.cta-button {
    display: inline-block;
    padding: 12px 24px;
    background: #ffffff;
    color: #0a0a0a;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    margin: 0 8px;
    border: 1px solid #ffffff;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.15);
    transition: all 0.2s;
}

.cta-button:hover {
    background: #f0f0f0;
    border-color: #f0f0f0;
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.25);
}

.cta-button.secondary {
    background: transparent;
    border: 2px solid #ffffff;
    color: #ffffff;
}

.cta-button.secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

/* Related Tier Lists */
.related-tier-lists {
    margin-bottom: 48px;
}

.related-tier-lists h2 {
    font-size: 24px;
    margin: 0 0 24px;
    color: var(--text);
}

/* Tier Lists Grid */
.tier-lists-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.tier-list-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.2s;
}

.tier-list-card:hover {
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-4px);
}

.tier-list-card a {
    display: block;
    text-decoration: none;
    color: inherit;
}

.tier-preview {
    background: #0a0a0a;
    padding: 12px;
    border-bottom: 1px solid var(--border);
}

.tier-preview.empty-preview {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100px;
    color: var(--text-secondary);
    font-size: 13px;
}

.preview-tier {
    display: flex;
    align-items: stretch;
    margin-bottom: 2px;
}

.preview-tier:last-child {
    margin-bottom: 0;
}

.preview-label {
    width: 24px;
    min-height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
    color: #000;
    flex-shrink: 0;
}

.preview-items {
    display: flex;
    flex: 1;
    background: #1a1a1a;
    gap: 1px;
    padding: 1px;
}

.preview-item {
    width: 24px;
    height: 24px;
    background: #222;
    overflow: hidden;
}

.preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.preview-item.empty {
    background: #1a1a1a;
}

.card-content {
    padding: 16px;
}

.tier-list-card h3 {
    margin: 0 0 10px;
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    line-height: 1.3;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: var(--text-secondary);
}

.card-meta .category {
    color: var(--text-secondary);
}

/* Category Links */
.category-links {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 32px;
}

.category-links h2 {
    font-size: 24px;
    margin: 0 0 24px;
    color: var(--text);
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 16px;
}

.category-card {
    display: block;
    padding: 20px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 10px;
    text-decoration: none;
    text-align: center;
    transition: all 0.2s;
}

.category-card:hover {
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.05);
}

.category-card h3 {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
}

/* Category Page - Matching Main Page Hero */
.category-header {
    margin-bottom: 32px;
    text-align: center;
    padding: 40px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.category-header h1 {
    font-size: 48px;
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin: 0 0 20px;
    color: var(--text);
    /* Override rainbow gradient from styles.css */
    background: none !important;
    -webkit-background-clip: unset !important;
    -webkit-text-fill-color: var(--text) !important;
    background-clip: unset !important;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.5), 0 0 40px rgba(255, 255, 255, 0.3);
}

.category-description {
    font-size: 20px;
    color: var(--text-secondary);
    margin: 0 auto;
    max-width: 520px;
    line-height: 1.6;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.3), 0 0 30px rgba(255, 255, 255, 0.2);
}

.seo-content {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 32px;
}

.seo-content p {
    margin: 0;
    color: var(--text-secondary);
    line-height: 1.7;
}

.tier-lists-section {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 32px;
    margin-bottom: 48px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
}

.section-header h2 {
    margin: 0;
    font-size: 24px;
    color: var(--text);
}

.section-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.search-box {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    padding: 8px 12px;
    transition: all 0.2s;
}

.search-box:focus-within {
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.08);
}

.search-box svg {
    color: #888;
    flex-shrink: 0;
}

.search-box input {
    background: none;
    border: none;
    color: #fff;
    font-size: 14px;
    width: 180px;
    outline: none;
    font-family: inherit;
}

.search-box input::placeholder {
    color: #666;
}

.create-button {
    display: inline-block;
    padding: 10px 20px;
    background: #ffffff;
    color: #0a0a0a;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    border: 1px solid #ffffff;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.15);
    transition: all 0.2s;
}

.create-button:hover {
    background: #f0f0f0;
    border-color: #f0f0f0;
    transform: translateY(-1px);
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.25);
}

.empty-state {
    text-align: center;
    padding: 48px 20px;
    color: var(--text-secondary);
}

.empty-state p {
    margin: 0 0 20px;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.pagination a, .pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

.pagination a {
    background: var(--bg-elevated);
    color: var(--text);
    border: 1px solid var(--border);
    transition: all 0.2s;
}

.pagination a:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.pagination .current {
    background: #ffffff;
    color: #0a0a0a;
}

.pagination .ellipsis {
    color: var(--text-secondary);
}

/* Other Categories */
.other-categories {
    margin-top: 48px;
}

.other-categories h2 {
    font-size: 24px;
    margin: 0 0 24px;
    color: var(--text);
}

/* Footer */
.seo-footer {
    background: var(--bg-elevated);
    border-top: 1px solid var(--border);
    padding: 48px 0 24px;
    margin-top: 64px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 48px;
    margin-bottom: 32px;
}

.footer-brand a {
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
    text-decoration: none;
}

.footer-brand p {
    margin: 12px 0 0;
    color: var(--text-secondary);
    font-size: 14px;
}

.footer-links h4 {
    margin: 0 0 16px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--muted);
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--text);
}

.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid var(--border);
    text-align: center;
}

.footer-bottom p {
    margin: 0;
    font-size: 13px;
    color: var(--muted);
}

/* Responsive */
@media (max-width: 768px) {
    .seo-header .container {
        width: calc(100% - 32px);
        padding: 0 16px;
        flex-wrap: wrap;
        gap: 12px;
    }
    
    .seo-header .logo img {
        height: 40px;
    }
    
    .header-actions {
        width: 100%;
        order: 3;
        flex-direction: column;
        gap: 10px;
    }
    
    .header-search {
        width: 100%;
    }
    
    .header-search input {
        width: 100%;
        flex: 1;
    }
    
    .back-btn {
        padding: 8px 16px;
        font-size: 13px;
        width: 100%;
        text-align: center;
    }
    
    .tier-list-article {
        padding: 20px;
    }
    
    .tier-list-header h1 {
        font-size: 24px;
    }
    
    .cta-section {
        padding: 24px;
    }
    
    .cta-button {
        display: block;
        margin: 8px 0;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .category-header h1 {
        font-size: 28px;
    }
    
    .section-header {
        flex-direction: column;
        gap: 16px;
        align-items: stretch;
    }
    
    .section-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .search-box {
        width: 100%;
    }
    
    .search-box input {
        width: 100%;
        flex: 1;
    }
    
    .create-button {
        width: 100%;
        text-align: center;
    }
}
