/* InsidePlay - ClickJogos Style Gaming Portal */
:root {
  --bg: #0d0d0d;
  --bg-elevated: #1a1a1a;
  --bg-card: #1f1f1f;
  --border: #333;
  --text: #f0f0f0;
  --text-muted: #aaa;
  --accent: #ff6b00;
  --accent-hover: #ff8533;
  --accent-light: #ffaa00;
  --green: #28a745;
  --blue: #007bff;
  --radius: 8px;
  --shadow: 0 4px 12px rgba(0,0,0,0.5);
  --shadow-hover: 0 8px 24px rgba(0,0,0,0.7);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
.container {
  width: min(1280px, 100% - 40px);
  margin: 0 auto;
}
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(13,13,13,0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px; gap: 20px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 1.25rem; color: var(--text);
}
.brand-mark {
  width: 36px; height: 36px; background: linear-gradient(135deg, var(--accent), var(--accent-light));
  border-radius: 8px; display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 900; font-size: 1.1rem;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text .main { font-size: 1.1rem; }
.brand-text .sub { font-size: 0.65rem; color: var(--accent); font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; }

/* Search */
.search-form {
  flex: 1; max-width: 480px; position: relative;
}
.search-form label { position: absolute; width: 1px; height: 1px; overflow: hidden; }
.search-input {
  width: 100%; height: 44px; padding: 0 50px 0 16px;
  background: var(--bg-elevated); border: 1px solid var(--border);
  border-radius: 22px; color: var(--text); font-size: 0.95rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.search-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255,107,0,0.2); }
.search-input::placeholder { color: var(--text-muted); }
.search-btn {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  background: var(--accent); color: #fff; border: none;
  padding: 8px 18px; border-radius: 18px; font-weight: 700; font-size: 0.8rem;
  cursor: pointer; transition: background 0.2s, transform 0.1s;
}
.search-btn:hover { background: var(--accent-hover); }
.search-btn:active { transform: translateY(-50%) scale(0.98); }

/* Header Actions */
.header-actions { display: flex; align-items: center; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 18px; border-radius: 22px; font-weight: 700; font-size: 0.85rem;
  cursor: pointer; transition: all 0.2s; border: none;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  color: #fff; box-shadow: 0 4px 14px rgba(255,107,0,0.4);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(255,107,0,0.5); }
.btn-ghost {
  background: transparent; color: var(--text); border: 1px solid var(--border);
}
.btn-ghost:hover { background: var(--bg-elevated); border-color: var(--accent); color: var(--accent); }

/* Navigation */
.site-nav { border-top: 1px solid var(--border); background: var(--bg); }
.nav-inner {
  display: flex; gap: 4px; overflow-x: auto; padding: 10px 0;
  scrollbar-width: thin; scrollbar-color: var(--border) transparent;
}
.nav-link {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px; color: var(--text-muted); font-size: 0.85rem;
  font-weight: 600; white-space: nowrap; border-radius: 20px;
  transition: all 0.2s;
}
.nav-link:hover, .nav-link.active {
  color: var(--text); background: var(--bg-elevated);
}
.nav-link.active { border: 1px solid var(--accent); }
.nav-link i { font-size: 0.9rem; }

/* Main */
.site-main { padding: 24px 0 40px; }

/* Hero Section */
.hero {
  padding: 32px; border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(255,107,0,0.15), transparent 60%), var(--bg-elevated);
  border: 1px solid var(--border); margin-bottom: 24px;
}
.hero-content { max-width: 800px; }
.hero .eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.7rem; font-weight: 800; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 12px;
}
.hero .eyebrow::before { content: ''; width: 24px; height: 2px; background: var(--accent); border-radius: 2px; }
.hero h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); line-height: 1.1; font-weight: 900; margin: 0 0 12px; color: #fff; }
.hero p { color: var(--text-muted); font-size: 1rem; max-width: 560px; margin: 0 0 20px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Catalog Toolbar */
.catalog-toolbar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 16px; margin-bottom: 20px; padding: 16px;
  background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius);
}
.catalog-toolbar .count { font-weight: 700; color: var(--text-muted); }
.catalog-toolbar .count strong { color: var(--text); }
.catalog-toolbar select {
  background: var(--bg-card); color: var(--text); border: 1px solid var(--border);
  border-radius: 6px; padding: 8px 12px; font-size: 0.85rem; cursor: pointer;
}
.catalog-toolbar select:focus { outline: none; border-color: var(--accent); }

/* Game Grid */
.game-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}
.game-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.game-card:hover {
  transform: translateY(-6px); border-color: var(--accent);
  box-shadow: var(--shadow-hover);
}
.game-thumb {
  position: relative; aspect-ratio: 16/9; overflow: hidden;
  background: linear-gradient(135deg, #1a1a1a, #0d0d0d);
}
.game-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.game-card:hover .game-thumb img { transform: scale(1.05); }
.thumb-placeholder {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  color: var(--accent); font-weight: 900; letter-spacing: 0.1em; font-size: 0.75rem;
}

/* Badges */
.game-badges { position: absolute; top: 10px; left: 10px; right: 10px; display: flex; justify-content: space-between; z-index: 2; }
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 10px; border-radius: 12px; font-size: 0.65rem; font-weight: 700;
  backdrop-filter: blur(8px);
}
.badge-platform { background: rgba(0,0,0,0.8); color: #fff; }
.badge-genre { background: var(--accent); color: #fff; }

/* Play Overlay */
.play-overlay {
  position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.9));
  display: flex; align-items: flex-end; padding: 20px; opacity: 0; transition: opacity 0.3s;
}
.game-card:hover .play-overlay { opacity: 1; }
.play-btn {
  width: 100%; display: flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--accent); color: #fff; padding: 14px; border-radius: 30px;
  font-weight: 800; font-size: 0.9rem; letter-spacing: 0.02em;
  transform: translateY(10px); transition: all 0.3s;
}
.game-card:hover .play-btn { transform: translateY(0); }
.play-btn:hover { background: var(--accent-hover); }

/* Game Card Body */
.game-body { padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.game-title { font-size: 0.95rem; font-weight: 700; line-height: 1.3; margin: 0; color: #fff; }
.game-title:hover { color: var(--accent); }
.game-desc { font-size: 0.8rem; color: var(--text-muted); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin: 0; flex: 1; }
.game-meta { display: flex; align-items: center; justify-content: space-between; padding-top: 10px; border-top: 1px solid var(--border); }
.game-rating { display: flex; align-items: center; gap: 4px; color: var(--accent-light); font-weight: 700; font-size: 0.8rem; }
.game-rating i { color: #ffd700; }
.game-date { font-size: 0.7rem; color: var(--text-muted); }

/* Empty State */
.empty-state { text-align: center; padding: 60px 20px; background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius); }
.empty-state i { font-size: 3rem; color: var(--text-muted); margin-bottom: 16px; }
.empty-state h2 { font-size: 1.25rem; margin: 0 0 8px; }
.empty-state p { color: var(--text-muted); margin: 0 0 20px; }
.empty-state .btn { margin: 0 auto; }

/* Pagination */
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 32px; }
.pagination a, .pagination span {
  display: flex; align-items: center; justify-content: center;
  min-width: 40px; height: 40px; padding: 0 12px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 8px; color: var(--text); font-weight: 600;
  transition: all 0.2s;
}
.pagination a:hover { background: var(--bg-elevated); border-color: var(--accent); color: var(--accent); }
.pagination .current { background: var(--accent); border-color: var(--accent); color: #fff; cursor: default; }
.pagination .disabled { opacity: 0.4; pointer-events: none; }

/* Page Header (Category/Play) */
.page-header {
  padding: 32px; border-radius: var(--radius); margin-bottom: 24px;
  background: linear-gradient(135deg, rgba(255,107,0,0.15), transparent 60%), var(--bg-elevated);
  border: 1px solid var(--border);
}
.page-header .eyebrow { color: var(--accent); }
.page-header h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 900; margin: 8px 0; color: #fff; }
.page-header p { color: var(--text-muted); max-width: 700px; }

/* Play Page */
.player-shell { background: #000; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.player-shell iframe { display: block; width: 100%; aspect-ratio: 16/9; border: 0; }
.player-fallback { display: grid; place-items: center; min-height: 420px; padding: 32px; text-align: center; color: var(--text-muted); }
.player-fallback strong { color: var(--text); font-size: 1.2rem; display: block; margin-bottom: 8px; }
.player-actions { display: flex; gap: 10px; padding: 16px; background: var(--bg-elevated); border-top: 1px solid var(--border); flex-wrap: wrap; }
.player-actions .btn { flex: 1; min-width: 140px; }

/* Content Section */
.content-section { max-width: 880px; margin: 0 auto; padding: 32px 0; }
.content-section h2 { font-size: 1.5rem; font-weight: 800; margin: 32px 0 16px; color: #fff; }
.content-section h2:first-child { margin-top: 0; }
.content-section p { color: var(--text-muted); line-height: 1.7; }
.content-section ul { color: var(--text-muted); line-height: 1.7; padding-left: 20px; }
.content-section li { margin-bottom: 8px; }
details { padding: 16px 0; border-top: 1px solid var(--border); }
summary { cursor: pointer; font-weight: 700; color: var(--text); }
details p { margin-top: 12px; }

/* Related Games */
.related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; margin-top: 20px; }
.related-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: transform 0.2s, border-color 0.2s; }
.related-card:hover { transform: translateY(-4px); border-color: var(--accent); }
.related-thumb { aspect-ratio: 16/9; overflow: hidden; background: #1a1a1a; }
.related-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.related-card:hover .related-thumb img { transform: scale(1.05); }
.related-body { padding: 12px; }
.related-title { font-size: 0.85rem; font-weight: 700; margin: 0 0 6px; line-height: 1.3; }
.related-title:hover { color: var(--accent); }
.related-meta { font-size: 0.7rem; color: var(--text-muted); display: flex; align-items: center; gap: 4px; }
.related-meta i { color: #ffd700; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 40px 0 24px; margin-top: 48px; background: var(--bg); }
.footer-grid { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 32px; margin-bottom: 32px; }
.footer-brand .brand { font-size: 1.5rem; margin-bottom: 16px; }
.footer-brand .brand-mark { width: 44px; height: 44px; font-size: 1.3rem; }
.footer-brand p { color: var(--text-muted); font-size: 0.9rem; max-width: 280px; }
.footer-links h4 { font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); margin: 0 0 16px; }
.footer-links ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-links a { color: var(--text-muted); font-size: 0.9rem; transition: color 0.2s; }
.footer-links a:hover { color: var(--accent); }
.social-links { display: flex; gap: 12px; margin-top: 16px; }
.social-links a {
  width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
  background: var(--bg-elevated); border: 1px solid var(--border); border-radius: 50%;
  color: var(--text-muted); transition: all 0.2s;
}
.social-links a:hover { background: var(--accent); border-color: var(--accent); color: #fff; transform: translateY(-2px); }
.footer-bottom { padding-top: 24px; border-top: 1px solid var(--border); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; color: var(--text-muted); font-size: 0.8rem; }
.footer-bottom a { color: var(--text-muted); }
.footer-bottom a:hover { color: var(--accent); }

/* Breadcrumbs */
.breadcrumbs { color: var(--text-muted); font-size: 0.85rem; margin-bottom: 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs .sep { color: var(--border); }

/* Ads */
.ad-slot { margin: 24px 0; text-align: center; }
.ad-slot ins { display: block; }

/* Responsive */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .game-grid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; }
}
@media (max-width: 768px) {
  .header-inner { height: 56px; gap: 12px; }
  .brand-text { display: none; }
  .search-form { order: 3; width: 100%; max-width: none; margin-top: 12px; }
  .site-header .header-inner { flex-wrap: wrap; }
  .nav-inner { padding: 8px 0; }
  .nav-link { padding: 6px 12px; font-size: 0.8rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; text-align: center; }
  .footer-brand .brand { justify-content: center; }
  .footer-brand p { margin: 0 auto; }
  .social-links { justify-content: center; }
  .footer-links ul { align-items: center; }
  .hero { padding: 24px; }
  .catalog-toolbar { flex-direction: column; align-items: stretch; }
  .catalog-toolbar select { width: 100%; }
  .game-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
  .site-main { padding: 16px 0 32px; }
}
@media (max-width: 480px) {
  .game-grid { grid-template-columns: 1fr 1fr; }
  .related-grid { grid-template-columns: 1fr 1fr; }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* Skeleton Loading */
.skeleton { background: linear-gradient(90deg, var(--bg-elevated) 25%, var(--bg-card) 50%, var(--bg-elevated) 75%); background-size: 200% 100%; animation: shimmer 1.5s infinite; border-radius: var(--radius); }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }