/* unLockGames - Traditional Blog Layout (Dark Theme) */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Playfair+Display:ital,wght@0,500;0,600;0,700;1,500&display=swap');

:root {
  --bg-page: #0f172a;
  --bg-card: #1e293b;
  --bg-card-hover: #334155;
  --nav-bg: #1e293b;
  --nav-border: #22d3ee;
  --nav-category: #22d3ee;
  --nav-hover: #334155;
  --accent-cyan: #22d3ee;
  --accent-green: #34d399;
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --border: #334155;
  --shadow: 0 4px 6px rgba(0,0,0,0.3);
  --radius: 8px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
.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;}

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

/* Header */
.blog-header {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
}

.blog-header .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

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

.blog-search-form {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
  max-width: 360px;
}

.blog-search {
  flex: 1;
  min-width: 0;
  padding: 0.5rem 1rem;
  background: var(--bg-page);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.95rem;
  color: var(--text-primary);
}

.blog-search::placeholder {
  color: var(--text-muted);
}

.blog-search-btn {
  padding: 0.5rem 1rem;
  background: var(--accent-cyan);
  color: var(--bg-page);
  border: none;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.blog-search-btn:hover {
  filter: brightness(1.1);
}

/* Main Nav - dark bar with cyan accent, categories highlighted */
.blog-nav {
  background: var(--nav-bg);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 100;
  border-top: 3px solid var(--nav-border);
  border-bottom: 1px solid var(--border);
}

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

.blog-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0;
}

.blog-nav a {
  display: block;
  padding: 0.9rem 1.2rem;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s, background 0.2s;
}

.blog-nav a[href="index.html"],
.blog-nav a[href="index-coupon.html"],
.blog-nav a[href="index1018.html"],
.blog-nav a[href^="#electronics"],
.blog-nav a[href^="#fashion"],
.blog-nav a[href^="#shopping"],
.blog-nav a[href^="#travel"] {
  color: var(--nav-category);
  font-weight: 600;
}

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

/* Carousel */
.blog-carousel {
  background: var(--bg-card);
  margin-bottom: 1.5rem;
  overflow: hidden;
}

.carousel-inner {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  height: 320px;
}

.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}

.carousel-slide.active {
  display: block;
}

.carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.4);
  color: #fff;
  border: none;
  padding: 0.75rem 1rem;
  cursor: pointer;
  font-size: 1.25rem;
  transition: background 0.2s;
}

.carousel-nav:hover { background: rgba(0,0,0,0.6); }
.carousel-prev { left: 0; }
.carousel-next { right: 0; }

.carousel-dots {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  border: none;
  cursor: pointer;
}

.carousel-dot.active { background: #fff; }

/* Main Content - 3 Column */
.blog-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px 2rem;
  display: grid;
  grid-template-columns: 1fr 2fr 280px;
  gap: 1.5rem;
}

@media (max-width: 992px) {
  .blog-main { grid-template-columns: 1fr; }
}

/* Sidebar */
.blog-sidebar {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  height: fit-content;
  position: sticky;
  top: 120px;
}

.blog-sidebar h3 {
  font-size: 1rem;
  color: var(--accent-cyan);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--accent-cyan);
}

.sidebar-list { list-style: none; }

.sidebar-list li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
}

.sidebar-list li:last-child { border-bottom: none; }

.sidebar-list a {
  color: var(--text-primary);
  text-decoration: none;
  font-size: 0.9rem;
  display: block;
}

.sidebar-list a:hover { color: var(--accent-cyan); }

.sidebar-date {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* Article Module */
.article-module {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.module-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.module-header h2 {
  font-size: 1.1rem;
  color: var(--accent-cyan);
}

.module-more {
  font-size: 0.9rem;
  color: var(--accent-cyan);
  text-decoration: none;
}

.module-more:hover { text-decoration: underline; }

/* Article Item (with image) */
.article-item {
  display: flex;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}

.article-item:last-child { border-bottom: none; }

.article-item-thumb {
  flex-shrink: 0;
  width: 120px;
  height: 80px;
  border-radius: 6px;
  overflow: hidden;
  background: var(--bg-page);
}

.article-item-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-item-content { flex: 1; min-width: 0; }

.article-item-title {
  font-size: 0.95rem;
  font-weight: 500;
  margin-bottom: 0.35rem;
}

.article-item-title a {
  color: var(--text-primary);
  text-decoration: none;
}

.article-item-title a:hover { color: var(--accent-cyan); }

.article-item-excerpt {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.article-item-date {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* Article List (text only) */
.article-list { list-style: none; }

.article-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px dashed var(--border);
}

.article-list li:last-child { border-bottom: none; }

.article-list a {
  color: var(--text-primary);
  text-decoration: none;
  font-size: 0.9rem;
  flex: 1;
}

.article-list a:hover { color: var(--accent-cyan); }

.article-list .date {
  font-size: 0.8rem;
  color: var(--text-muted);
  flex-shrink: 0;
  margin-left: 1rem;
}

/* Two-column module layout */
.module-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 768px) {
  .module-split { grid-template-columns: 1fr; }
}

/* Right Sidebar */
.blog-right {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  height: fit-content;
  position: sticky;
  top: 120px;
}

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

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

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 1rem;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
}

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

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

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

/* Category list page */
.category-article-list {
  list-style: none;
  margin: 1.5rem 0;
}
.category-article-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 0;
  border-bottom: 1px dashed var(--border);
}
.category-article-list li:last-child { border-bottom: none; }
.category-article-list a {
  color: var(--text-primary);
  text-decoration: none;
  flex: 1;
}
.category-article-list a:hover { color: var(--accent-cyan); }
.category-article-list .date {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-left: 1rem;
}
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: 2rem 0;
  flex-wrap: wrap;
}
.pagination a {
  color: var(--accent-cyan);
  text-decoration: none;
}
.pagination a:hover { text-decoration: underline; }
.pagination-info { color: var(--text-muted); font-size: 0.9rem; }
