:root {
    --bg: #0f172a;
    --card-bg: #1e293b;
    --primary: #3b82f6;
    --text: #f1f5f9;
    --text-muted: #94a3b8;
    --border: #334155;
    --accent: #8b5cf6;
}

body {
    font-family: 'Inter', system-ui, sans-serif;
    background: var(--bg);
    color: var(--text);
    margin: 0;
    min-height: 100vh;
}

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

.header {
    text-align: center;
    margin-bottom: 5rem;
    position: relative;
}

.header h1 {
    font-size: 3.5rem;
    font-weight: 800;
    background: linear-gradient(to right, var(--primary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0 0 1rem 0;
    letter-spacing: -0.02em;
}

.header p {
    color: var(--text-muted);
    font-size: 1.25rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Theme & Language Selectors */
.theme-selector,
.lang-selector {
    margin-top: 2rem;
    display: inline-flex;
    background: var(--card-bg);
    padding: 0.5rem;
    border-radius: 9999px;
    border: 1px solid var(--border);
    gap: 0.5rem;
}

.lang-selector {
    margin-left: 1rem;
}

.theme-btn,
.lang-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 0.5rem 1.5rem;
    border-radius: 9999px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s;
}

.theme-btn.active,
.lang-btn.active {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.card {
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: 1.5rem;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: 0 20px 40px -5px rgba(0, 0, 0, 0.3);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(to right, var(--primary), var(--accent));
    opacity: 0;
    transition: opacity 0.3s;
}

.card:hover::before {
    opacity: 1;
}

.card h2 {
    font-size: 1.75rem;
    margin: 0 0 1.5rem 0;
    color: white;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 2rem;
    flex-grow: 1;
}

.tag {
    background: rgba(59, 130, 246, 0.1);
    color: #60a5fa;
    padding: 0.35rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    background: white;
    color: var(--bg);
    padding: 1rem;
    border-radius: 1rem;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.btn:hover {
    background: var(--primary);
    color: white;
    transform: scale(1.02);
}

.stats {
    margin-top: 5rem;
    padding: 3rem;
    background: var(--card-bg);
    border-radius: 1.5rem;
    border: 1px solid var(--border);
}

.stats h3 {
    color: var(--text-muted);
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 0.1em;
    margin: 0 0 1rem 0;
}

.stats p {
    line-height: 1.8;
    color: var(--text);
}

/* PFP Gallery Styles */
.pfp-item {
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 4px;
    border-radius: 50%;
    border: 2px solid transparent;
}

.pfp-item:hover {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.05);
}

.pfp-item.active {
    border-color: var(--primary);
    background: rgba(59, 130, 246, 0.1);
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.3);
}

.pfp-frame {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--card-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--border);
}

.pfp-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pfp-placeholder {
    font-size: 2rem;
    opacity: 0.5;
}