/* d:\!! PROJECT PIXEL PLAY\pixel_town\public\css\app.css */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  /* Background layers - Dark Mode */
  --bg-base:      #0f172a; /* slate-900 */
  --bg-surface:   #1e293b; /* slate-800 */
  --bg-card:      #1e293b; /* slate-800 */
  --bg-elevated:  #334155; /* slate-700 */
  --bg-hover:     #475569; /* slate-600 */

  /* Brand — Pixel Play green */
  --accent:       #a3e635; /* pixel-300 */
  --accent-hover: #bef264; /* pixel-200 */
  --accent-dim:   #65a30d;
  --accent-glow:  rgba(163, 230, 53, 0.2);

  /* Text - Dark Mode */
  --text-primary:   #f1f5f9; /* slate-100 */
  --text-secondary: #94a3b8; /* slate-400 */
  --text-muted:     #64748b; /* slate-500 */

  /* Borders */
  --border:       #334155; /* slate-700 */
  --border-hover: #475569; /* slate-600 */

  /* Pixel Play Verified */
  --verified-green: #22c55e;
  --verified-glow:  rgba(34, 197, 94, 0.2);

  /* Status */
  --success: #22c55e;
  --warning: #fbbf24;
  --danger:  #f87171;
  --info:    #3b82f6;

  /* Radius */
  --radius-sm:  8px;
  --radius-md:  16px;
  --radius-lg:  24px;
  --radius-xl:  32px;
  --radius-full: 9999px;

  /* Shadows - Dark Mode */
  --shadow-sm:  0 1px 2px rgba(0,0,0,0.3);
  --shadow-md:  0 4px 6px -1px rgba(0,0,0,0.4);
  --shadow-lg:  0 10px 15px -3px rgba(0,0,0,0.5);
  --shadow-glow: 0 0 20px var(--accent-glow);

  /* Font */
  --font-sans: 'Inter', 'Outfit', system-ui, -apple-system, sans-serif;

  /* Transitions */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Custom Premium Scrollbar */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg-base);
  border-left: 1px solid rgba(255, 255, 255, 0.05);
}
::-webkit-scrollbar-thumb {
  background: var(--border-hover);
  border-radius: var(--radius-full);
  border: 2px solid var(--bg-base);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-dim);
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-base);
  color: var(--text-primary);
  line-height: 1.5;
  background-image: 
    radial-gradient(circle at 15% 50%, rgba(163, 230, 53, 0.02), transparent 30%),
    radial-gradient(circle at 85% 30%, rgba(34, 197, 94, 0.02), transparent 30%);
  background-attachment: fixed;
}

/* UI Decorators */
.bg-grid-pattern {
  background-size: 40px 40px;
  background-image: linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
                    linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
}

.glass-panel {
  background: rgba(30, 41, 59, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.glow-border {
  position: relative;
}
.glow-border::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(45deg, rgba(163, 230, 53, 0.4), rgba(34, 197, 94, 0.3), transparent 60%);
  z-index: -1;
  opacity: 0;
  filter: blur(3px);
  transition: opacity 0.5s ease;
}
.glow-border:hover::before {
  opacity: 1;
}

/* Custom UI Components for Pixel Town */
.hero-card {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.9), rgba(6, 78, 59, 0.8));
  border-radius: var(--radius-xl);
  padding: 4rem 2rem;
  color: #ffffff;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
  border: 1px solid rgba(163, 230, 53, 0.2);
}

.hero-card::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: radial-gradient(circle at 80% 20%, rgba(163, 230, 53, 0.15), transparent 40%);
  pointer-events: none;
}

.hero-card h1 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.hero-card h1 span {
  color: var(--accent);
}

.hero-card p {
  color: #94a3b8;
  font-size: 1.1rem;
  max-width: 600px;
  margin-bottom: 2rem;
}

.search-input-wrapper {
  background: #ffffff;
  border-radius: var(--radius-full);
  padding: 0.5rem;
  display: flex;
  gap: 0.5rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.search-input-wrapper input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 0.5rem 1.5rem;
  color: var(--text-primary);
  font-size: 1rem;
  outline: none;
}

.search-input-wrapper button {
  background: var(--accent);
  color: #0f172a;
  border: none;
  border-radius: var(--radius-full);
  padding: 0.8rem 2rem;
  font-weight: 600;
  cursor: pointer;
}

.pill-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.pill-tags .pill {
  background: rgba(255,255,255,0.1);
  color: #e2e8f0;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  border: 1px solid rgba(255,255,255,0.1);
}

.stats-card {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}

.navbar {
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 0.5em;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }

p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

/* Layout */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-full);
    font-weight: 500;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    gap: 0.5rem;
}

.btn-primary {
    background-color: var(--accent);
    color: var(--bg-base, #0f172a);
    box-shadow: 0 0 15px var(--accent-glow);
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px var(--accent-glow);
}

.btn-secondary {
    background-color: var(--bg-elevated, #334155);
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background-color: var(--bg-hover, #475569);
}

.btn-outline {
    background-color: transparent;
    color: var(--accent);
    border: 1px solid var(--accent);
}

.btn-outline:hover {
    background-color: var(--accent-glow);
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
}

.form-control {
    width: 100%;
    padding: 0.875rem 1rem;
    background-color: var(--bg-card, #1e293b);
    border: 1px solid var(--border);
    border-radius: var(--radius-md, 8px);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.2s;
}

.form-control:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-control::placeholder {
    color: var(--text-tertiary);
}

/* Cards */
.card {
    background-color: var(--bg-card, #1e293b);
    border-radius: var(--radius-lg, 16px);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    border-color: rgba(255,255,255,0.15);
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-verified {
    background-color: rgba(34, 197, 94, 0.1);
    color: var(--verified);
    border: 1px solid rgba(34, 197, 94, 0.2);
    box-shadow: 0 0 10px var(--verified-glow);
}

/* Utilities */
.text-center { text-align: center; }
.text-accent { color: var(--accent); }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-8 { margin-top: 2rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-8 { margin-bottom: 2rem; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 0.5rem; }
.gap-4 { gap: 1rem; }
