/* PokeAchieve - Light Pokemon Theme */
/* Colors: White/Red/Blue/Yellow */

:root {
    --color-primary-red: #E53935;
    --color-primary-red-dark: #C62828;
    --color-primary-blue: #1E88E5;
    --color-primary-blue-dark: #1565C0;
    --color-accent-yellow: #FDD835;
    --color-accent-yellow-dark: #FBC02D;
    
    --bg-white: #FFFFFF;
    --bg-light: #F8F9FA;
    --bg-gray: #E9ECEF;
    --bg-card: #FFFFFF;
    
    --text-dark: #212529;
    --text-gray: #6C757D;
    --text-light: #ADB5BD;
    
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.15);
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

body {
    font-family: var(--font-main);
    background: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
}

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

/* Navigation */
.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 32px;
    background: var(--bg-white);
    border-bottom: 1px solid var(--bg-gray);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--color-primary-red) 0%, var(--color-primary-red-dark) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(229, 57, 53, 0.3);
}

.pokeball {
    font-size: 20px;
}

.brand-text {
    font-size: 24px;
    font-weight: 800;
    color: var(--text-dark);
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 8px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-gray);
    font-weight: 500;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--color-primary-red);
    background: rgba(229, 57, 53, 0.1);
}

.nav-auth {
    display: flex;
    gap: 12px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary-red) 0%, var(--color-primary-red-dark) 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(229, 57, 53, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(229, 57, 53, 0.4);
}

.btn-secondary {
    background: var(--color-primary-blue);
    color: white;
}

.btn-secondary:hover {
    background: var(--color-primary-blue-dark);
}

.btn-outline {
    background: transparent;
    color: var(--text-gray);
    border: 2px solid var(--bg-gray);
}

.btn-outline:hover {
    border-color: var(--color-primary-red);
    color: var(--color-primary-red);
}

.btn-large {
    padding: 14px 28px;
    font-size: 16px;
    border-radius: var(--radius-md);
}

/* Hero Section */
.hero {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 32px;
    background: linear-gradient(135deg, var(--bg-white) 0%, var(--bg-light) 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(30, 136, 229, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(229, 57, 53, 0.08) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-content {
    margin: 0 auto;
    max-width: 600px;
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 56px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    color: var(--text-dark);
}

.hero .highlight {
    color: var(--color-primary-red);
    position: relative;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-gray);
    margin-bottom: 32px;
    line-height: 1.6;
}

.hero-cta {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
}

.hero-stats {
    display: flex;
    gap: 48px;
}

.hero-stats .stat {
    display: flex;
    flex-direction: column;
}

.hero-stats .stat-number {
    font-size: 32px;
    font-weight: 800;
    color: var(--color-primary-red);
}

.hero-stats .stat-label {
    font-size: 14px;
    color: var(--text-gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero-visual {
    display: none;
    position: relative;
    z-index: 1;
}

.floating-pokemon {
    font-size: 200px;
    animation: float 3s ease-in-out infinite;
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.1));
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* Section Styles */
.section-title {
    font-size: 36px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 48px;
    color: var(--text-dark);
}

/* Featured Games */
.featured-games {
    padding: 80px 0;
    background: var(--bg-white);
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.game-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid var(--bg-gray);
}

.game-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.game-cover {
    width: 100%;
    height: 160px;
    object-fit: cover;
    background: linear-gradient(135deg, var(--bg-gray) 0%, var(--bg-light) 100%);
}

.game-info {
    padding: 20px;
}

.game-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.game-meta {
    font-size: 14px;
    color: var(--text-gray);
    margin-bottom: 16px;
}

.game-progress {
    margin-top: 12px;
}

.progress-bar {
    height: 8px;
    background: var(--bg-gray);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--color-primary-red) 0%, var(--color-accent-yellow) 100%);
    border-radius: 4px;
    transition: width 0.5s ease;
}

/* Pokemon News */
.pokemon-news {
    padding: 80px 0;
    background: var(--bg-light);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.news-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--bg-gray);
    transition: all 0.2s ease;
}

.news-card:hover {
    box-shadow: var(--shadow-md);
}

.news-source {
    display: inline-block;
    padding: 4px 12px;
    background: var(--color-primary-blue);
    color: white;
    font-size: 12px;
    font-weight: 600;
    border-radius: 20px;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.news-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-dark);
    line-height: 1.4;
}

.news-date {
    font-size: 13px;
    color: var(--text-light);
}

/* How It Works */
.how-it-works {
    padding: 80px 0;
    background: var(--bg-white);
}

.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.step {
    text-align: center;
    padding: 32px;
}

.step-number {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--color-primary-red) 0%, var(--color-primary-red-dark) 100%);
    color: white;
    font-size: 28px;
    font-weight: 800;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    box-shadow: 0 8px 24px rgba(229, 57, 53, 0.3);
}

.step h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.step p {
    color: var(--text-gray);
    line-height: 1.6;
}

/* Footer */
.footer {
    background: var(--text-dark);
    color: var(--text-light);
    padding: 48px 0 24px;
}

.footer-content {
    text-align: center;
}

.footer-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 24px;
    font-weight: 700;
    color: white;
    margin-bottom: 16px;
}

.footer-text {
    margin-bottom: 24px;
    color: var(--text-gray);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 32px;
}

.footer-links a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--color-primary-red);
}

.footer-legal {
    font-size: 12px;
    color: var(--text-gray);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.5;
}

/* Responsive */
@media (max-width: 768px) {
    .navbar {
        flex-wrap: wrap; gap: 12px;
    }
    
    .nav-links {
        display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; font-size: 13px;
    }
    
    .hero {
        flex-direction: column;
        padding: 48px 16px;
        text-align: center;
    }
    
    .hero h1 {
        font-size: 36px;
    }
    
    .hero-cta {
        flex-direction: column;
    }
    
    .hero-stats {
        justify-content: center;
        gap: 24px;
    }
    
    .floating-pokemon {
        font-size: 120px;
        margin-top: 32px;
    }
    
    .steps {
        grid-template-columns: 1fr;
    }
    
    .games-grid,
    .news-grid {
        grid-template-columns: 1fr;
    }
}

/* Login Page Styles */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--bg-light) 0%, var(--bg-gray) 100%);
    padding: 24px;
}

.login-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 48px;
    width: 100%;
    max-width: 400px;
    box-shadow: var(--shadow-lg);
}

.login-header {
    text-align: center;
    margin-bottom: 32px;
}

.login-header h1 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
}

.login-header p {
    color: var(--text-gray);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--bg-gray);
    border-radius: var(--radius-sm);
    font-size: 14px;
    transition: border-color 0.2s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--color-primary-red);
}

.btn-full {
    width: 100%;
}

.login-footer {
    text-align: center;
    margin-top: 24px;
    font-size: 14px;
    color: var(--text-gray);
}

.login-footer a {
    color: var(--color-primary-red);
    text-decoration: none;
    font-weight: 500;
}

/* Dashboard Styles */
.dashboard {
    padding: 32px;
    max-width: 1200px;
    margin: 0 auto;
}

.dashboard-header {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 32px;
}

.dashboard-header h1 {
    font-size: 32px;
    font-weight: 700;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 16px;
}

.user-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-primary-blue) 0%, var(--color-primary-red) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 18px;
}

/* API Keys Section */
.api-keys-section {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 32px;
    margin-top: 32px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--bg-gray);
}

.api-keys-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.api-keys-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--color-accent-yellow) 0%, var(--color-accent-yellow-dark) 100%);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.api-keys-form {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

.api-keys-form input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid var(--bg-gray);
    border-radius: var(--radius-sm);
    font-size: 14px;
}

.api-keys-form input:focus {
    outline: none;
    border-color: var(--color-primary-red);
}

.api-key-item {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 16px;
    background: var(--bg-light);
    border-radius: var(--radius-sm);
    margin-bottom: 12px;
}

.api-key-info h4 {
    font-weight: 600;
    margin-bottom: 4px;
}

.api-key-info p {
    font-size: 13px;
    color: var(--text-gray);
}

.btn-danger {
    background: var(--color-primary-red);
    color: white;
    padding: 8px 16px;
}

.btn-danger:hover {
    background: var(--color-primary-red-dark);
}

.alert {
    padding: 16px;
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
}

.alert-warning {
    background: #FFF3E0;
    border: 1px solid #FFE0B2;
    color: #E65100;
}

.code-block {
    background: var(--text-dark);
    color: white;
    padding: 12px;
    border-radius: var(--radius-sm);
    font-family: monospace;
    font-size: 13px;
    word-break: break-all;
    margin: 12px 0;
}
