/*
Theme Name: LangLaSliver
Theme URI: https://langlasliver.com
Author: LangLaSliver
Description: Giao diện WordPress dành cho cổng thông tin game LangLaSliver.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: langlasliver
*/

:root {
  --ll-red: #8f2635;
  --ll-red-dark: #661a24;
  --ll-pink: #ffcccc;
  --ll-paper: #fff8f5;
  --ll-border: #f0dfda;
  --ll-text: #3d2929;
  --ll-muted: #806c6c;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ll-text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  background: #b9acaa url("assets/images/background.jpg") center top / cover fixed;
}
a { color: var(--ll-red); text-decoration: none; }
a:hover { color: #d84838; }
img { max-width: 100%; height: auto; }
.screen-reader-text { position: absolute; left: -9999px; }

.site-shell { width: min(100% - 24px, 920px); margin: 18px auto; }
.site-header,
.content-card,
.site-footer {
  background: rgba(255, 248, 245, .96);
  border: 2px solid var(--ll-border);
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(60, 20, 20, .15);
}
.site-header { overflow: hidden; text-align: center; }
.age-rule { padding: 8px 14px; font-size: 12px; background: var(--ll-pink); }
.age-rule img { height: 12px; margin-right: 7px; vertical-align: middle; }
.brand { padding: 18px 15px 12px; }
.brand-logo { max-height: 145px; width: auto; }
.site-title { margin: 4px 0; color: var(--ll-red-dark); }
.site-description { margin: 6px 0 0; color: var(--ll-muted); }

.quick-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; padding: 10px 14px 20px; }
.quick-actions a,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 9px 16px;
  color: #fff;
  border: 0;
  border-radius: 10px;
  background: var(--ll-red);
  font-weight: 700;
  cursor: pointer;
}
.quick-actions a:nth-child(2) { background: #e6a500; }
.quick-actions a:nth-child(3) { background: #6c757d; }
.quick-actions a:nth-child(4) { background: #22964a; }
.quick-actions a:nth-child(5) { background: #198b9f; }
.quick-actions a:hover, .button:hover { color: #fff; filter: brightness(1.08); }

.primary-nav { background: var(--ll-red-dark); }
.primary-nav ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 3px; margin: 0; padding: 7px; list-style: none; }
.primary-nav a { display: block; padding: 9px 13px; color: #fff; border-radius: 8px; font-weight: 700; }
.primary-nav a:hover, .primary-nav .current-menu-item > a { background: rgba(255,255,255,.17); }

.content-card { margin-top: 18px; padding: clamp(16px, 4vw, 30px); }
.section-title { margin: 0 0 18px; color: var(--ll-red-dark); text-align: center; font-size: clamp(24px, 4vw, 32px); }
.hero-slider { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 24px; }
.hero-slider img { width: 100%; height: 180px; object-fit: cover; border-radius: 12px; }

.post-list { display: grid; gap: 12px; }
.post-item { display: flex; gap: 14px; align-items: center; padding: 12px; border-radius: 12px; background: #fce5e5; transition: transform .2s, box-shadow .2s; }
.post-item:hover { transform: translateY(-3px); box-shadow: 0 7px 15px rgba(60,20,20,.13); }
.post-thumbnail { flex: 0 0 72px; width: 72px; height: 72px; object-fit: cover; border-radius: 50%; background: #fff; }
.post-item h2 { margin: 0 0 6px; font-size: 18px; }
.post-meta { color: var(--ll-muted); font-size: 13px; }
.entry-title { color: var(--ll-red-dark); }
.entry-content { line-height: 1.75; overflow-wrap: anywhere; }
.entry-content img { border-radius: 10px; }
.pagination { margin-top: 24px; text-align: center; }
.pagination .page-numbers { display: inline-block; margin: 2px; padding: 7px 11px; border-radius: 7px; background: #f3dede; }
.pagination .current { color: #fff; background: var(--ll-red); }

.download-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.download-card { position: relative; padding: 22px 16px; text-align: center; border-radius: 14px; background: linear-gradient(145deg, #fff2ef, #f2d2d2); border: 1px solid #e8c1c1; }
.download-card h2 { color: var(--ll-red-dark); }
.download-card .button { margin: 4px; }
.download-note { margin-top: 22px; padding: 15px; border-left: 4px solid var(--ll-red); background: #fff3cd; }

.site-footer { margin-top: 18px; padding: 20px; text-align: center; color: var(--ll-muted); }
.site-footer p { margin: 5px 0; }

@media (max-width: 720px) {
  .hero-slider { grid-template-columns: 1fr; }
  .hero-slider img { height: auto; }
  .download-grid { grid-template-columns: 1fr; }
  .post-thumbnail { flex-basis: 56px; width: 56px; height: 56px; }
}

