:root {
    --primary-color: #45927c;
    --secondary-color: #3c836f;
    --accent-color: #9ed719;
    --dark-bg: #033c15;
    --card-bg: #ffffff;
    --light-text: #1a1a1a;
    --muted-text: #5a6b5c;
    --border-color: #d4e5d8;
    --success-color: #22c55e;
    --warning-color: #eab308;
    --danger-color: #d8492d;
    --pokemon-type-normal: #A8A77A;
    --pokemon-type-fire: #EE8130;
    --pokemon-type-water: #6390F0;
    --pokemon-type-electric: #F7D02C;
    --pokemon-type-grass: #7AC74C;
    --pokemon-type-ice: #96D9D6;
    --pokemon-type-fighting: #C22E28;
    --pokemon-type-poison: #A33EA1;
    --pokemon-type-ground: #E2BF65;
    --pokemon-type-flying: #A98FF3;
    --pokemon-type-psychic: #F95587;
    --pokemon-type-bug: #A6B91A;
    --pokemon-type-rock: #B6A136;
    --pokemon-type-ghost: #735797;
    --pokemon-type-dragon: #6F35FC;
    --pokemon-type-dark: #705746;
    --pokemon-type-steel: #B7B7CE;
    --pokemon-type-fairy: #D685AD;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background-color: #f0f7f2;
    background-image: linear-gradient(135deg, #f0f7f2 0%, #e8f5e9 50%, #f1f8e9 100%);
    color: var(--light-text);
    line-height: 1.6;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s;
}

a:hover {
    color: var(--primary-color);
}

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

/* Header Styles */
.header {
    background: linear-gradient(135deg, #45927c 0%, #3c836f 100%);
    border-bottom: none;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(3, 60, 21, 0.15);
}

.header-top {
    background: #033c15;
    padding: 8px 0;
    font-size: 12px;
}

.header-top .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-actions {
    display: flex;
    gap: 15px;
}

.header-actions a {
    color: rgba(255, 255, 255, 0.8);
}

.header-actions a:hover {
    color: #9ed719;
}

.header-main {
    padding: 15px 0;
}

.header-main .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: bold;
    color: white;
}

.logo img {
    width: 40px;
    height: 40px;
}

.search-box {
    flex: 1;
    max-width: 500px;
    position: relative;
}

.search-box input {
    width: 100%;
    padding: 12px 20px;
    padding-right: 50px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    font-size: 14px;
}

.search-box input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.search-box input:focus {
    outline: none;
    border-color: #9ed719;
    background: rgba(255, 255, 255, 0.25);
}

.search-box button {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: #9ed719;
    border: none;
    padding: 8px 15px;
    border-radius: 20px;
    color: #033c15;
    font-weight: 600;
    cursor: pointer;
}

.search-box button:hover {
    background: #b8e944;
}

/* Navigation */
.nav-menu {
    background: rgba(3, 60, 21, 0.2);
    padding: 10px 0;
}

.nav-menu ul {
    display: flex;
    list-style: none;
    gap: 5px;
    flex-wrap: wrap;
}

.nav-menu li {
    position: relative;
}

.nav-menu a {
    padding: 8px 15px;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 500;
    display: block;
    color: rgba(255, 255, 255, 0.9);
}

.nav-menu a:hover,
.nav-menu a.active {
    background: #9ed719;
    color: #033c15;
}

.nav-menu .dropdown {
    position: relative;
}

.nav-menu .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    min-width: 200px;
    display: none;
    z-index: 100;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.nav-menu .dropdown:hover .dropdown-menu {
    display: block;
}

.nav-menu .dropdown-menu a {
    padding: 10px 15px;
    white-space: nowrap;
    color: var(--light-text);
}

.nav-menu .dropdown-menu a:hover {
    background: #f0f7f2;
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #45927c 0%, #3c836f 50%, #316f5e 100%);
    padding: 60px 0;
    text-align: center;
    color: white;
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #ffffff, #9ed719);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.85);
    max-width: 600px;
    margin: 0 auto 30px;
}

/* Section Styles */
.section {
    padding: 50px 0;
    border-bottom: 1px solid var(--border-color);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.section-title {
    font-size: 28px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #033c15;
}

.section-title::before {
    content: '';
    width: 5px;
    height: 30px;
    background: linear-gradient(180deg, #45927c, #9ed719);
    border-radius: 3px;
}

.section-link {
    color: var(--primary-color);
    font-weight: 500;
}

.section-link:hover {
    color: #316f5e;
}

/* Card Grid */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.card {
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 8px rgba(3, 60, 21, 0.08);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(3, 60, 21, 0.15);
    border-color: #45927c;
}

.card-image {
    height: 150px;
    background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    overflow: hidden;
}

.card-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.card-content {
    padding: 20px;
}

.card-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #033c15;
}

.card-description {
    font-size: 14px;
    color: var(--muted-text);
    margin-bottom: 15px;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--muted-text);
}

/* Guide Card Styles */
.guide-card {
    background: var(--card-bg);
    border-radius: 10px;
    padding: 20px;
    border: 1px solid var(--border-color);
    transition: all 0.2s;
}

.guide-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(69, 146, 124, 0.15);
}

.guide-card h3 {
    font-size: 16px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #033c15;
}

.guide-card h3 img {
    width: 24px;
    height: 24px;
}

/* Pokemon Type Badges */
.type-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: bold;
    color: white;
    text-transform: uppercase;
}

.type-badge.normal { background: var(--pokemon-type-normal); }
.type-badge.fire { background: var(--pokemon-type-fire); }
.type-badge.water { background: var(--pokemon-type-water); }
.type-badge.electric { background: var(--pokemon-type-electric); color: #333; }
.type-badge.grass { background: var(--pokemon-type-grass); }
.type-badge.ice { background: var(--pokemon-type-ice); color: #333; }
.type-badge.fighting { background: var(--pokemon-type-fighting); }
.type-badge.poison { background: var(--pokemon-type-poison); }
.type-badge.ground { background: var(--pokemon-type-ground); color: #333; }
.type-badge.flying { background: var(--pokemon-type-flying); }
.type-badge.psychic { background: var(--pokemon-type-psychic); }
.type-badge.bug { background: var(--pokemon-type-bug); color: #333; }
.type-badge.rock { background: var(--pokemon-type-rock); }
.type-badge.ghost { background: var(--pokemon-type-ghost); }
.type-badge.dragon { background: var(--pokemon-type-dragon); }
.type-badge.dark { background: var(--pokemon-type-dark); }
.type-badge.steel { background: var(--pokemon-type-steel); }
.type-badge.fairy { background: var(--pokemon-type-fairy); }

/* List Styles */
.list-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.list-item {
    background: var(--card-bg);
    border-radius: 8px;
    padding: 15px;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.2s;
}

.list-item:hover {
    border-color: var(--primary-color);
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(69, 146, 124, 0.1);
}

.list-item-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    background: #e8f5e9;
}

.list-item-content h4 {
    font-size: 14px;
    margin-bottom: 4px;
    color: #033c15;
}

.list-item-content p {
    font-size: 12px;
    color: var(--muted-text);
}

/* Table Styles */
.data-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(3, 60, 21, 0.08);
}

.data-table th,
.data-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.data-table th {
    background: #45927c;
    font-weight: bold;
    font-size: 14px;
    color: white;
    text-transform: uppercase;
}

.data-table tr:hover td {
    background: rgba(69, 146, 124, 0.05);
}

/* Tag Styles */
.tag {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 5px;
    font-size: 12px;
    font-weight: 500;
    background: #e8f5e9;
    color: #033c15;
}

.tag.new { background: var(--success-color); color: white; }
.tag.updated { background: var(--warning-color); color: #333; }
.tag.hot { background: var(--danger-color); color: white; }

/* Breadcrumb */
.breadcrumb {
    padding: 15px 0;
    font-size: 14px;
    color: var(--muted-text);
}

.breadcrumb a {
    color: var(--primary-color);
}

.breadcrumb span {
    margin: 0 10px;
}

/* Page Header */
.page-header {
    padding: 40px 0;
    background: linear-gradient(135deg, #45927c 0%, #3c836f 100%);
    border-bottom: none;
    color: white;
}

.page-header h1 {
    font-size: 36px;
    margin-bottom: 10px;
}

.page-header p {
    color: rgba(255, 255, 255, 0.85);
}

/* Article Styles */
.article-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
}

.article-content h2 {
    font-size: 28px;
    margin: 40px 0 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border-color);
    color: #033c15;
}

.article-content h3 {
    font-size: 22px;
    margin: 30px 0 15px;
    color: #45927c;
}

.article-content p {
    margin-bottom: 15px;
    line-height: 1.8;
    color: var(--light-text);
}

.article-content ul,
.article-content ol {
    margin: 15px 0;
    padding-left: 30px;
}

.article-content li {
    margin-bottom: 10px;
}

.article-content .highlight-box {
    background: #e8f5e9;
    border-left: 4px solid var(--primary-color);
    padding: 20px;
    margin: 20px 0;
    border-radius: 0 10px 10px 0;
}

.article-content .warning-box {
    background: rgba(234, 179, 8, 0.1);
    border-left: 4px solid var(--warning-color);
    padding: 20px;
    margin: 20px 0;
    border-radius: 0 10px 10px 0;
}

.article-content .info-box {
    background: rgba(69, 146, 124, 0.1);
    border-left: 4px solid var(--secondary-color);
    padding: 20px;
    margin: 20px 0;
    border-radius: 0 10px 10px 0;
}

/* Sidebar */
.sidebar-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 30px;
    padding: 40px 0;
}

.sidebar {
    position: sticky;
    top: 100px;
}

.sidebar-widget {
    background: var(--card-bg);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 8px rgba(3, 60, 21, 0.08);
}

.sidebar-widget h4 {
    font-size: 16px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
    color: #033c15;
}

.sidebar-widget ul {
    list-style: none;
}

.sidebar-widget li {
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
}

.sidebar-widget li:last-child {
    border-bottom: none;
}

.sidebar-widget a {
    font-size: 14px;
    display: flex;
    justify-content: space-between;
}

/* Footer */
.footer {
    background: #033c15;
    padding: 60px 0 30px;
    border-top: none;
    margin-top: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    font-size: 18px;
    margin-bottom: 20px;
    color: #9ed719;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 10px;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

.footer-section a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
}

/* Quick Links Section */
.quick-links {
    background: var(--card-bg);
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
}

.quick-links ul {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    list-style: none;
}

.quick-links a {
    font-size: 14px;
    color: var(--primary-color);
}

.quick-links a:hover {
    color: #316f5e;
    text-decoration: underline;
}

/* Tabs */
.tabs {
    display: flex;
    gap: 5px;
    margin-bottom: 30px;
    border-bottom: 2px solid var(--border-color);
}

.tab {
    padding: 12px 25px;
    background: transparent;
    border: none;
    color: var(--muted-text);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 0.2s;
}

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

.tab.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Event Cards */
.event-card {
    background: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 8px rgba(3, 60, 21, 0.08);
}

.event-banner {
    height: 120px;
    background: linear-gradient(135deg, #45927c, #9ed719);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
}

.event-content {
    padding: 20px;
}

.event-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #033c15;
}

.event-dates {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: var(--muted-text);
    margin-bottom: 15px;
}

.event-status {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: bold;
}

.event-status.ongoing {
    background: var(--success-color);
    color: white;
}

.event-status.upcoming {
    background: var(--secondary-color);
    color: white;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 40px 0;
}

.pagination a,
.pagination span {
    padding: 10px 15px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    color: var(--light-text);
}

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

.pagination .active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .header-main .container {
        flex-direction: column;
        gap: 15px;
    }
    
    .search-box {
        width: 100%;
        max-width: none;
    }
    
    .nav-menu ul {
        justify-content: center;
    }
    
    .hero h1 {
        font-size: 32px;
    }
    
    .section-title {
        font-size: 22px;
    }
    
    .card-grid {
        grid-template-columns: 1fr;
    }
    
    .sidebar-layout {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        position: static;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease-out;
}

/* Loading */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Tooltip */
.tooltip {
    position: relative;
}

.tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 8px 12px;
    background: #033c15;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s;
    color: white;
}

.tooltip:hover::after {
    opacity: 1;
    visibility: visible;
}

/* Stats Badge */
.stat-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    background: #e8f5e9;
    border-radius: 5px;
    font-size: 12px;
    margin-right: 5px;
    color: #033c15;
}

.stat-badge i {
    color: var(--primary-color);
}

/* Rank Badge */
.rank-badge {
    display: inline-block;
    width: 30px;
    height: 30px;
    line-height: 30px;
    text-align: center;
    border-radius: 50%;
    font-weight: bold;
    font-size: 14px;
}

.rank-badge.gold {
    background: linear-gradient(135deg, #ffd700, #ffaa00);
    color: #333;
}

.rank-badge.silver {
    background: linear-gradient(135deg, #c0c0c0, #a0a0a0);
    color: #333;
}

.rank-badge.bronze {
    background: linear-gradient(135deg, #cd7f32, #b87333);
    color: #333;
}
