/* Stark Gaming Site - Custom Styles */
/* Gaming Portal - Indonesian Audience */

:root {
  --primary: #6366f1;
  --primary-hover: #4f46e5;
  --secondary: #10b981;
  --accent: #f59e0b;
  --dark: #0f172a;
  --dark-card: #1e293b;
  --text: #f1f5f9;
  --text-muted: #94a3b8;
  --border: #334155;
  --danger: #ef4444;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background-color: var(--dark);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--primary-hover);
}

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

/* Header / Navbar */
.site-header {
  background: var(--dark-card);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.navbar {
  padding: 1rem 0;
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-menu a {
  color: var(--text-muted);
  font-weight: 500;
}

.nav-menu a:hover {
  color: var(--primary);
}

.dropdown {
  position: relative;
}

.dropdown-menu {
  display: none;
  position: absolute;
  background: var(--dark-card);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  list-style: none;
  min-width: 160px;
  top: 100%;
  left: 0;
}

.dropdown:hover .dropdown-menu {
  display: block;
}

/* Hero Section */
.hero {
  text-align: center;
  padding: 4rem 0;
  background: linear-gradient(135deg, var(--dark-card) 0%, var(--dark) 100%);
}

.hero-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
}

.btn-primary {
  background: var(--primary);
  color: white;
}

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

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

.btn-secondary:hover {
  background: var(--primary);
  color: white;
}

/* Post Cards */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.post-card {
  background: var(--dark-card);
  border-radius: 0.75rem;
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform 0.2s, border-color 0.2s;
}

.post-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
}

.card-image {
  aspect-ratio: 16/9;
  overflow: hidden;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-content {
  padding: 1.5rem;
}

.category-tag {
  display: inline-block;
  font-size: 0.75rem;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.card-title {
  font-size: 1.25rem;
  line-height: 1.3;
  margin: 0.5rem 0;
}

.card-title a {
  color: var(--text);
}

.card-title a:hover {
  color: var(--primary);
}

.card-excerpt {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0.5rem 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta {
  display: flex;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.8rem;
  margin-top: 1rem;
}

.keyword-badge {
  display: inline-block;
  font-size: 0.7rem;
  background: rgba(99, 102, 241, 0.15);
  color: var(--primary);
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  margin-top: 0.5rem;
}

/* Categories Grid */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.category-card {
  background: var(--dark-card);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 1.5rem;
  text-align: center;
  transition: all 0.2s;
}

.category-card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
}

.category-icon {
  font-size: 2.5rem;
  display: block;
  margin-bottom: 1rem;
}

.category-card h3 {
  color: var(--text);
  margin-bottom: 0.5rem;
}

.category-card p {
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* Section Titles */
.section-title {
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
  color: var(--text);
}

/* Post Single Page */
.post-single {
  max-width: 800px;
  margin: 0 auto;
}

.post-header {
  padding: 2rem 0;
  border-bottom: 1px solid var(--border);
}

.post-title {
  font-size: 2.5rem;
  line-height: 1.2;
  margin: 1rem 0;
}

.post-meta {
  display: flex;
  gap: 1rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.reading-time {
  color: var(--secondary);
  font-weight: 500;
  margin-top: 0.5rem;
}

.post-image {
  margin: 2rem 0;
}

.post-image img {
  width: 100%;
  border-radius: 0.75rem;
}

.post-content {
  padding: 2rem 0;
  line-height: 1.8;
}

.post-content h2 {
  color: var(--text);
  margin: 2rem 0 1rem;
  font-size: 1.5rem;
}

.post-content h3 {
  color: var(--text);
  margin: 1.5rem 0 0.75rem;
  font-size: 1.25rem;
}

.post-content p {
  margin-bottom: 1.25rem;
  color: var(--text);
}

.post-content ul, .post-content ol {
  margin: 1rem 0 1.5rem 1.5rem;
}

.post-content li {
  margin-bottom: 0.5rem;
}

.post-content img {
  max-width: 100%;
  border-radius: 0.5rem;
  margin: 1.5rem 0;
}

.post-content a {
  color: var(--primary);
}

.post-content blockquote {
  border-left: 4px solid var(--primary);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  background: var(--dark-card);
  border-radius: 0.5rem;
  font-style: italic;
}

/* Disclaimer */
.disclaimer {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid var(--danger);
  border-radius: 0.5rem;
  padding: 1rem;
  margin: 2rem 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Footer */
.site-footer {
  background: var(--dark-card);
  border-top: 1px solid var(--border);
  margin-top: 4rem;
  padding: 3rem 0 1.5rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h4 {
  color: var(--text);
  margin-bottom: 1rem;
}

.footer-section ul {
  list-style: none;
}

.footer-section li {
  margin-bottom: 0.5rem;
}

.footer-section a {
  color: var(--text-muted);
}

.footer-section a:hover {
  color: var(--primary);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.disclaimer-text {
  margin-top: 0.5rem;
  font-size: 0.75rem;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin: 2rem 0;
}

.pagination a {
  padding: 0.5rem 1rem;
  background: var(--dark-card);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  color: var(--text);
}

.pagination a:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.page-info {
  color: var(--text-muted);
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .nav-menu {
    display: none;
  }
  
  .hero-title {
    font-size: 1.75rem;
  }
  
  .posts-grid {
    grid-template-columns: 1fr;
  }
  
  .post-title {
    font-size: 1.75rem;
  }
}