/* Infinite Casual Games Directory - Static Site Styles */
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800;900&family=DM+Sans:wght@400;500;600&display=swap');

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

:root {
  --primary: #6C3FE8;
  --primary-fg: #fff;
  --secondary: #1D9A78;
  --secondary-fg: #fff;
  --accent: #E8952A;
  --accent-fg: #fff;
  --bg: #F2F4F7;
  --fg: #1A2030;
  --card: #FFFFFF;
  --muted: #6B7A90;
  --border: #E0E4EA;
  --radius: 12px;
  --font-display: 'Nunito', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --container: 1200px;
}

body { font-family: var(--font-body); color: var(--fg); background: var(--bg); line-height: 1.6; }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-display); color: var(--fg); line-height: 1.3; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* Header */
.header { position: sticky; top: 0; z-index: 100; background: rgba(242,244,247,0.95); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { font-family: var(--font-display); font-size: 20px; font-weight: 800; color: var(--primary); display: flex; align-items: center; gap: 8px; }
.logo span { color: var(--secondary); }
.nav { display: flex; align-items: center; gap: 32px; }
.nav a { font-size: 14px; font-weight: 500; transition: color 0.2s; }
.nav a:hover { color: var(--primary); }
.nav-cta { background: var(--primary); color: var(--primary-fg) !important; padding: 8px 16px; border-radius: var(--radius); font-weight: 700; }
.nav-cta:hover { opacity: 0.9; }
.mobile-toggle { display: none; background: none; border: none; font-size: 24px; cursor: pointer; }

/* Hero Banner */
.hero-banner { background: var(--fg); color: #fff; position: relative; overflow: hidden; }
.hero-banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.3; }
.hero-banner-content { position: relative; padding: 64px 0; text-align: center; }
.hero-banner h1 { font-size: 42px; font-weight: 900; margin-bottom: 12px; color: #fff; }
.hero-banner h1 span { color: var(--accent); }
.hero-banner p { font-size: 18px; opacity: 0.8; max-width: 640px; margin: 0 auto; }

/* Featured Card */
.hero { display: flex; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; margin: 32px 0 48px; background: var(--card); }
.hero-img { width: 60%; }
.hero-img img { width: 100%; height: 100%; object-fit: cover; }
.hero-content { width: 40%; padding: 40px; display: flex; flex-direction: column; justify-content: center; }
.hero-content .tag { display: inline-block; background: var(--primary); color: var(--primary-fg); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; padding: 4px 12px; border-radius: 4px; margin-bottom: 16px; align-self: flex-start; }
.hero-content h2 { font-size: 26px; font-weight: 800; margin-bottom: 16px; }
.hero-content p { color: var(--muted); margin-bottom: 24px; }
.hero-meta { font-size: 13px; color: var(--muted); }

/* Cards Grid */
.section-title { font-size: 24px; font-weight: 800; margin-bottom: 32px; }
.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 48px; }
.card { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--card); transition: transform 0.2s, box-shadow 0.2s; }
.card:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(108,63,232,0.12); }
.card-img { aspect-ratio: 16/9; overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.card:hover .card-img img { transform: scale(1.05); }
.card-body { padding: 20px; }
.card-body .tag { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--primary); margin-bottom: 8px; }
.card-body h3 { font-size: 17px; font-weight: 800; margin-bottom: 8px; transition: color 0.2s; }
.card:hover .card-body h3 { color: var(--primary); }
.card-body p { font-size: 14px; color: var(--muted); margin-bottom: 12px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-meta { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); }

/* Footer */
.footer { background: var(--fg); color: #fff; padding: 48px 0 24px; }
.footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; margin-bottom: 32px; }
.footer h3 { font-size: 18px; font-weight: 800; margin-bottom: 16px; color: #fff; }
.footer h3 span { color: var(--accent); }
.footer h4 { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 16px; color: #fff; }
.footer p, .footer li, .footer address { font-size: 14px; opacity: 0.7; font-style: normal; line-height: 1.8; }
.footer a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); padding-top: 24px; display: flex; justify-content: space-between; align-items: center; font-size: 12px; opacity: 0.5; flex-wrap: wrap; gap: 12px; }

/* Article Page */
.article-page { max-width: 800px; margin: 0 auto; padding: 32px 24px 64px; }
.article-page .back-link { font-size: 14px; color: var(--muted); display: inline-block; margin-bottom: 24px; }
.article-page .back-link:hover { color: var(--primary); }
.article-page .tag { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--primary); margin-bottom: 12px; display: inline-block; }
.article-page h1 { font-size: 34px; font-weight: 800; margin-bottom: 16px; }
.article-page .meta { font-size: 14px; color: var(--muted); margin-bottom: 32px; }
.article-page .featured-img { aspect-ratio: 16/9; border-radius: var(--radius); overflow: hidden; margin-bottom: 32px; background: var(--card); }
.article-page .featured-img img { width: 100%; height: 100%; object-fit: cover; }
.article-content h2 { font-size: 22px; margin: 32px 0 12px; }
.article-content p { margin-bottom: 16px; }
.article-content ul { list-style: disc; padding-left: 24px; margin-bottom: 16px; }
.article-content li { margin-bottom: 8px; }

/* Legal Pages */
.legal-page { max-width: 800px; margin: 0 auto; padding: 48px 24px 64px; }
.legal-page h1 { font-size: 32px; font-weight: 800; margin-bottom: 8px; }
.legal-page .date { font-size: 14px; color: var(--muted); margin-bottom: 32px; }
.legal-page h2 { font-size: 20px; margin: 28px 0 12px; }
.legal-page h3 { font-size: 17px; margin: 20px 0 8px; }
.legal-page p { margin-bottom: 14px; }
.legal-page ul { list-style: disc; padding-left: 24px; margin-bottom: 14px; }
.legal-page li { margin-bottom: 6px; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.contact-info-item { display: flex; gap: 12px; margin-bottom: 24px; }
.contact-info-item h3 { font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.contact-info-item p { font-size: 14px; color: var(--muted); }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 4px; }
.form-group input, .form-group textarea { width: 100%; border: 1px solid var(--border); border-radius: var(--radius); padding: 8px 12px; font-size: 14px; font-family: var(--font-body); background: var(--card); }
.form-group textarea { resize: vertical; }
.btn-primary { background: var(--primary); color: var(--primary-fg); border: none; border-radius: var(--radius); padding: 10px 20px; font-size: 14px; font-weight: 700; font-family: var(--font-body); cursor: pointer; width: 100%; }
.btn-primary:hover { opacity: 0.9; }

@media (max-width: 768px) {
  .nav { display: none; }
  .mobile-toggle { display: block; }
  .hero { flex-direction: column; }
  .hero-img, .hero-content { width: 100%; }
  .hero-content { padding: 24px; }
  .hero-content h2 { font-size: 22px; }
  .hero-banner h1 { font-size: 28px; }
  .cards-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .article-page h1 { font-size: 24px; }
}
