/* My3Patti.online - Mobile-First SEO Optimized */
:root {
  --primary: #0d6efd;
  --primary-dark: #0a58ca;
  --accent: #ff6b35;
  --dark: #1a1a2e;
  --text: #333;
  --text-muted: #6c757d;
  --bg: #f8f9fa;
  --white: #fff;
  --radius: 12px;
  --shadow: 0 2px 10px rgba(0,0,0,.08);
  --shadow-hover: 0 8px 25px rgba(0,0,0,.12);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; line-height: 1.6; color: var(--text); background: var(--bg); font-size: 16px; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--primary-dark); }
h1, h2, h3, h4 { line-height: 1.3; color: var(--dark); }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }

/* Header */
.site-header { background: var(--white); box-shadow: var(--shadow); position: sticky; top: 0; z-index: 100; }
.site-header .container { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; }
.logo { font-size: 1.4rem; font-weight: 700; color: var(--dark); }
.logo span { color: var(--primary); }
.nav-main { display: flex; gap: 20px; align-items: center; }
.nav-main a { font-weight: 500; }
.menu-toggle { display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer; padding: 5px; }

/* Hero */
.hero { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%); color: var(--white); padding: 40px 0 50px; text-align: center; }
.hero h1 { font-size: 1.75rem; color: var(--white); margin-bottom: 12px; }
.hero p { font-size: 1rem; opacity: .95; max-width: 600px; margin: 0 auto; }

/* Games Grid */
.games-section { padding: 40px 0 60px; }
.section-title { text-align: center; font-size: 1.5rem; margin-bottom: 30px; color: var(--dark); }
.games-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; }
.game-card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; transition: transform .25s, box-shadow .25s; }
.game-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.game-card img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.game-card-content { padding: 20px; }
.game-card h2 { font-size: 1.2rem; margin-bottom: 8px; }
.game-card p { font-size: .9rem; color: var(--text-muted); margin-bottom: 16px; }
.btn { display: inline-block; padding: 12px 24px; background: var(--primary); color: var(--white) !important; border-radius: 8px; font-weight: 600; border: none; cursor: pointer; transition: background .2s; }
.btn:hover { background: var(--primary-dark); }
.btn-block { display: block; text-align: center; }

/* Article Page */
.article-page { padding: 24px 0 50px; }
.article-header { text-align: center; margin-bottom: 30px; }
.article-header img { max-width: 300px; margin: 0 auto 20px; border-radius: var(--radius); }
.article-header h1 { font-size: 1.75rem; margin-bottom: 12px; }
.download-cta { background: linear-gradient(135deg, var(--accent), #e55a2b); color: var(--white) !important; padding: 20px; border-radius: var(--radius); text-align: center; margin: 30px 0; }
.download-cta a { color: var(--white) !important; font-weight: 700; font-size: 1.1rem; }
.article-content { max-width: 800px; margin: 0 auto; }
.article-content p { margin-bottom: 16px; }
.article-content h2 { font-size: 1.35rem; margin: 28px 0 16px; }
.article-content h3 { font-size: 1.15rem; margin: 24px 0 12px; }
.article-content ul { margin: 16px 0; padding-left: 24px; }
.article-content li { margin-bottom: 8px; }

/* Footer */
.site-footer { background: var(--dark); color: #ccc; padding: 40px 0 20px; margin-top: 60px; }
.footer-content { display: grid; gap: 30px; margin-bottom: 30px; }
.footer-brand .logo { color: var(--white); display: inline-block; margin-bottom: 12px; }
.footer-brand p { font-size: .9rem; opacity: .9; }
.footer-links h4 { color: var(--white); font-size: 1rem; margin-bottom: 12px; }
.footer-links a { color: #ccc; display: block; margin-bottom: 8px; }
.footer-links a:hover { color: var(--white); }
.footer-bottom { padding-top: 20px; border-top: 1px solid rgba(255,255,255,.1); text-align: center; font-size: .9rem; }

/* Mobile */
@media (max-width: 768px) {
  .menu-toggle { display: block; }
  .nav-main { position: fixed; top: 56px; left: 0; right: 0; background: var(--white); flex-direction: column; padding: 20px; box-shadow: var(--shadow); transform: translateY(-100%); opacity: 0; visibility: hidden; transition: all .3s; }
  .nav-main.open { transform: translateY(0); opacity: 1; visibility: visible; }
  .games-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 1.5rem; }
  .article-header h1 { font-size: 1.5rem; }
}
@media (min-width: 769px) {
  .footer-content { grid-template-columns: 1fr 1fr; }
  .games-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .games-grid { grid-template-columns: repeat(3, 1fr); }
  .hero h1 { font-size: 2.25rem; }
  .article-header h1 { font-size: 2rem; }
}
