/*
Theme Name: PGO Theme Ultimate
Theme URI: https://askme.rest
Author: Pokemon GO Database
Description: Complete Pokemon GO Database theme with full plugin integration for PokeGO Pro Database, Extra Data, and SEO Articles
Version: 2.7.0
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 7.4
License: GPL v2 or later
Text Domain: pgo-theme
*/

:root {
    --pgo-primary: #3b82f6;
    --pgo-primary-dark: #2563eb;
    --pgo-secondary: #8b5cf6;
    --pgo-bg: #0f172a;
    --pgo-bg-alt: #1e293b;
    --pgo-card: #1e293b;
    --pgo-card-hover: #334155;
    --pgo-text: #f1f5f9;
    --pgo-text-muted: #94a3b8;
    --pgo-border: #334155;
    --pgo-success: #22c55e;
    --pgo-warning: #f59e0b;
    --pgo-danger: #ef4444;
}

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

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

a { color: var(--pgo-primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--pgo-primary-dark); }

.pgo-container { max-width: 1200px; margin: 0 auto; padding: 0 1rem; }

/* Header */
.pgo-header {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--pgo-border);
    position: sticky;
    top: 0;
    z-index: 1000;
}
.pgo-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    gap: 1rem;
}
.pgo-logo { font-size: 1.25rem; font-weight: 700; color: var(--pgo-text); display: flex; align-items: center; gap: 0.5rem; }
.pgo-nav { display: flex; gap: 1.5rem; }
.pgo-nav a { color: var(--pgo-text-muted); font-weight: 500; }
.pgo-nav a:hover { color: var(--pgo-text); }

/* Hero */
.pgo-hero {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 50%, #8b5cf6 100%);
    padding: 4rem 1rem;
    text-align: center;
}
.pgo-hero__title { font-size: 2.5rem; font-weight: 800; margin-bottom: 0.5rem; }
.pgo-hero__subtitle { color: rgba(255,255,255,0.8); margin-bottom: 2rem; }
.pgo-hero__stats { display: flex; justify-content: center; gap: 2rem; flex-wrap: wrap; margin-bottom: 2rem; }
.pgo-hero__stat { text-align: center; }
.pgo-hero__stat-value { font-size: 2rem; font-weight: 700; }
.pgo-hero__stat-label { font-size: 0.875rem; opacity: 0.8; }

/* Buttons */
.pgo-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
    text-decoration: none;
}
.pgo-btn--primary { background: var(--pgo-primary); color: white; }
.pgo-btn--primary:hover { background: var(--pgo-primary-dark); color: white; }
.pgo-btn--secondary { background: var(--pgo-card); color: var(--pgo-text); }
.pgo-btn--secondary:hover { background: var(--pgo-card-hover); }
.pgo-btn--sm { padding: 0.5rem 1rem; font-size: 0.875rem; }
.pgo-btn--lg { padding: 1rem 2rem; font-size: 1.125rem; }

/* Cards */
.pgo-card {
    background: var(--pgo-card);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}
.pgo-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,0,0,0.3); }
.pgo-card__content { padding: 1.25rem; }

/* Pokemon Grid */
.pgo-pokemon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
}
.pgo-pokemon-card {
    background: var(--pgo-card);
    border-radius: 12px;
    padding: 1rem;
    text-align: center;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s;
    display: block;
}
.pgo-pokemon-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    color: inherit;
}
.pgo-pokemon-card__img {
    width: 96px;
    height: 96px;
    object-fit: contain;
    margin: 0 auto 0.5rem;
    display: block;
}
.pgo-pokemon-card__number { font-size: 0.75rem; color: var(--pgo-text-muted); }
.pgo-pokemon-card__name { font-weight: 600; font-size: 0.9375rem; margin-top: 0.25rem; }
.pgo-pokemon-card__types { display: flex; gap: 0.25rem; justify-content: center; margin-top: 0.5rem; }

/* Type Badges */
.pgo-type {
    display: inline-block;
    padding: 0.125rem 0.5rem;
    border-radius: 4px;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    color: white;
}
.pgo-type--normal { background: #a8a878; }
.pgo-type--fire { background: #f08030; }
.pgo-type--water { background: #6890f0; }
.pgo-type--electric { background: #f8d030; color: #1e293b; }
.pgo-type--grass { background: #78c850; }
.pgo-type--ice { background: #98d8d8; color: #1e293b; }
.pgo-type--fighting { background: #c03028; }
.pgo-type--poison { background: #a040a0; }
.pgo-type--ground { background: #e0c068; color: #1e293b; }
.pgo-type--flying { background: #a890f0; }
.pgo-type--psychic { background: #f85888; }
.pgo-type--bug { background: #a8b820; }
.pgo-type--rock { background: #b8a038; }
.pgo-type--ghost { background: #705898; }
.pgo-type--dragon { background: #7038f8; }
.pgo-type--dark { background: #705848; }
.pgo-type--steel { background: #b8b8d0; color: #1e293b; }
.pgo-type--fairy { background: #ee99ac; }

/* Footer */
.pgo-footer {
    background: var(--pgo-bg-alt);
    border-top: 1px solid var(--pgo-border);
    padding: 3rem 1rem;
    margin-top: 4rem;
}
.pgo-footer__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2rem; }
.pgo-footer__title { font-weight: 700; margin-bottom: 1rem; }
.pgo-footer__links { list-style: none; }
.pgo-footer__links li { margin-bottom: 0.5rem; }
.pgo-footer__links a { color: var(--pgo-text-muted); }
.pgo-footer__links a:hover { color: var(--pgo-text); }
.pgo-footer__bottom { text-align: center; margin-top: 2rem; padding-top: 2rem; border-top: 1px solid var(--pgo-border); color: var(--pgo-text-muted); font-size: 0.875rem; }

/* Main Content */
.pgo-main { padding: 2rem 0; }
.pgo-section { margin-bottom: 3rem; }
.pgo-section__header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; flex-wrap: wrap; gap: 1rem; }
.pgo-section__title { font-size: 1.5rem; font-weight: 700; display: flex; align-items: center; gap: 0.5rem; }

/* Responsive */
@media (max-width: 768px) {
    .pgo-hero__title { font-size: 1.75rem; }
    .pgo-hero__stats { gap: 1rem; }
    .pgo-nav { display: none; }
    .pgo-pokemon-grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
}

/* About Content Styling */
.pgo-about-content {
    line-height: 1.8;
}
.pgo-about-section {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--pgo-border);
}
.pgo-about-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}
.pgo-about-section h3 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--pgo-primary);
}
.pgo-about-section p {
    margin-bottom: 1rem;
    color: var(--pgo-text);
}
.pgo-about-section p:last-child {
    margin-bottom: 0;
}
.pgo-about-intro {
    font-size: 1.0625rem;
    line-height: 1.9;
}
.pgo-about-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}
.pgo-about-list li {
    padding: 0.75rem 1rem;
    margin-bottom: 0.5rem;
    background: var(--pgo-bg);
    border-radius: 8px;
    border-left: 3px solid var(--pgo-primary);
}
.pgo-about-list li:last-child {
    margin-bottom: 0;
}
.pgo-about-list li strong {
    color: var(--pgo-text);
}
.pgo-about-list li small {
    display: block;
    margin-top: 0.25rem;
    color: var(--pgo-text-muted);
    font-size: 0.8125rem;
}
.pgo-about-list--numbered {
    counter-reset: counter;
}
.pgo-about-list--numbered li {
    counter-increment: counter;
    position: relative;
    padding-left: 3rem;
}
.pgo-about-list--numbered li::before {
    content: counter(counter);
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    background: var(--pgo-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
}
.pgo-about-section em {
    display: block;
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 8px;
    color: var(--pgo-text-muted);
    font-style: normal;
    font-size: 0.875rem;
}
