/* unLockGames Blog - Modern Tech Aesthetic */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=DM+Sans:wght@400;500;600&family=Playfair+Display:ital,wght@0,500;0,600;0,700&display=swap');

:root {
  --bg-dark: #0a0e17;
  --bg-card: #111827;
  --bg-card-hover: #1a2332;
  --accent-cyan: #06b6d4;
  --accent-blue: #3b82f6;
  --accent-purple: #8b5cf6;
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --border: rgba(148, 163, 184, 0.1);
  --gradient-hero: linear-gradient(135deg, #0a0e17 0%, #1e293b 50%, #0f172a 100%);
  --gradient-card: linear-gradient(180deg, rgba(6, 182, 212, 0.05) 0%, transparent 100%);
  --shadow-glow: 0 0 40px rgba(6, 182, 212, 0.15);
  --radius: 12px;
  --radius-lg: 20px;
}

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

body {
  font-family: 'DM Sans', -apple-system, sans-serif;
  background: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
}

h1, h2, h3, h4 {
  font-family: 'Space Grotesk', sans-serif;
}

/* Category Bar */
.category-bar {
  background: rgba(17, 24, 39, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.category-bar .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.category-bar .logo {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 600;
  font-size: 1.5rem;
  color: var(--accent-cyan);
  text-decoration: none;
  letter-spacing: 0.02em;
}

.category-bar .logo span {
  color: inherit;
}

.category-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.category-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.2rem;
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.3);
  border-radius: var(--radius);
  color: var(--accent-cyan);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
}

.category-link:hover {
  background: rgba(6, 182, 212, 0.2);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.category-link.games {
  background: rgba(139, 92, 246, 0.1);
  border-color: rgba(139, 92, 246, 0.3);
  color: #a78bfa;
}

.category-link.games:hover {
  background: rgba(139, 92, 246, 0.2);
}

.nav-links-blog {
  margin-left: auto;
  display: flex;
  gap: 1.5rem;
}

.nav-links-blog a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.nav-links-blog a:hover {
  color: var(--accent-cyan);
}

/* Hero */
.hero-blog {
  padding: 4rem 0;
  background: var(--gradient-hero);
  position: relative;
  overflow: hidden;
}

.hero-blog::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 60%;
  height: 200%;
  background: radial-gradient(ellipse, rgba(6, 182, 212, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero-blog .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
}

.hero-blog h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #fff 0%, var(--accent-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-blog p {
  font-size: 1.2rem;
  color: var(--text-secondary);
  max-width: 600px;
}

/* Blog Grid */
.blog-section {
  padding: 3rem 0 5rem;
}

.blog-section .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent-cyan);
  margin-bottom: 0.5rem;
}

.blog-section h2 {
  font-size: 1.75rem;
  margin-bottom: 2rem;
  color: var(--text-primary);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.blog-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.35s ease;
  position: relative;
}

.blog-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-blue));
  opacity: 0;
  transition: opacity 0.3s;
}

.blog-card:hover {
  transform: translateY(-6px);
  border-color: rgba(6, 182, 212, 0.3);
  box-shadow: var(--shadow-glow);
}

.blog-card:hover::before {
  opacity: 1;
}

.blog-card-image {
  aspect-ratio: 16/10;
  overflow: hidden;
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
}

.blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.blog-card:hover .blog-card-image img {
  transform: scale(1.08);
}

.blog-card-content {
  padding: 1.25rem;
}

.blog-card-category {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-cyan);
  margin-bottom: 0.5rem;
}

.blog-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

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

.blog-card h3 a:hover {
  color: var(--accent-cyan);
}

.blog-card-excerpt {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 1rem;
}

.blog-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cashback-tag {
  font-size: 0.75rem;
  padding: 0.25rem 0.6rem;
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border-radius: 6px;
  font-weight: 500;
}

.read-more-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--accent-cyan);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  transition: gap 0.2s;
}

.read-more-link:hover {
  gap: 0.5rem;
}

/* Affiliate Disclosure */
.affiliate-disclosure {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 24px;
  font-size: 0.85rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
}

.affiliate-disclosure a {
  color: var(--accent-cyan);
}

/* Footer */
.footer-blog {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 3rem 0 2rem;
}

.footer-blog .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

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

.footer-grid h4 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

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

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

.footer-grid a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.footer-grid a:hover {
  color: var(--accent-cyan);
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.footer-bottom p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer-bottom a {
  color: var(--text-secondary);
  text-decoration: none;
}

.footer-bottom a:hover {
  color: var(--accent-cyan);
}

/* Article Page */
.article-header {
  padding: 3rem 0 2rem;
  background: var(--gradient-hero);
}

.article-header .container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px;
}

.article-header .back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--accent-cyan);
  text-decoration: none;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.article-header .back-link:hover {
  text-decoration: underline;
}

.article-header h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: 1rem;
  line-height: 1.3;
}

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

.article-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 24px 4rem;
}

.article-content p {
  margin-bottom: 1.25rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

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

.article-content a {
  color: var(--accent-cyan);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.article-content a:hover {
  color: #22d3ee;
}

.article-cta {
  margin: 2.5rem 0;
  padding: 1.5rem;
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.3);
  border-radius: var(--radius);
  text-align: center;
}

.article-cta a {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: var(--accent-cyan);
  color: var(--bg-dark);
  font-weight: 600;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.2s;
}

.article-cta a:hover {
  background: #22d3ee;
  transform: scale(1.02);
}

/* Responsive */
@media (max-width: 768px) {
  .category-bar .container {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .nav-links-blog {
    margin-left: 0;
  }
  
  .blog-grid {
    grid-template-columns: 1fr;
  }
}
