/*
Theme Name: Game Portal
Theme URI: https://example.com/game-portal
Author: Your Name
Author URI: https://example.com
Description: 游戏发布主题，支持免费发布、置顶发布和精品置顶发布。基于 WordPress FSE 构建，提供游戏列表、发布、搜索等完整功能。
Version: 1.2.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: game-portal
Requires at least: 6.0
Requires PHP: 7.4
Tags: block-patterns, block-templates, games, portal

Game Portal WordPress Theme, (C) 2025 Your Name
Game Portal is distributed under the terms of the GNU GPL v2 or later.
*/

/* ====== CSS Custom Properties ====== */
:root {
    --gp-primary: #6366f1;
    --gp-primary-dark: #4f46e5;
    --gp-accent: #f97316;
    --gp-accent-dark: #ea580c;
    --gp-bg: #f8fafc;
    --gp-surface: #ffffff;
    --gp-card: #ffffff;
    --gp-text: #1e293b;
    --gp-text-muted: #64748b;
    --gp-border: #e2e8f0;
    --gp-gold: #f59e0b;
}

/* ====== Reset & Base ====== */
*, *::before, *::after { box-sizing: border-box; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--gp-bg);
    color: var(--gp-text);
    margin: 0;
    line-height: 1.6;
}

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

img { max-width: 100%; height: auto; }

/* ====== Badges ====== */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    flex-shrink: 0;
}
.badge-featured {
    background: linear-gradient(135deg, var(--gp-gold), #fbbf24);
    color: #000;
}
.badge-sticky {
    background: linear-gradient(135deg, var(--gp-accent), #ea580c);
    color: #fff;
}
.badge-platform {
    background: rgba(99, 102, 241, 0.1);
    color: var(--gp-primary);
}

/* ====== Buttons ====== */
.game-btn-primary {
    display: inline-flex;
    align-items: center;
    padding: 10px 22px;
    background: linear-gradient(135deg, var(--gp-primary), var(--gp-primary-dark));
    color: #fff !important;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.25);
}
.game-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.35);
    color: #fff !important;
}

/* ====== Responsive ====== */
@media (max-width: 768px) {
    .game-meta-info {
        grid-template-columns: 1fr 1fr !important;
    }
}