/*
Theme Name: RATA Novel AdSense Pro
Theme URI: https://bhitech.vn
Author: BHIT TECH
Author URI: https://bhitech.vn
Description: Theme WordPress chuyên biệt hiển thị Truyện & Tập truyện tối ưu tốc độ trên Facebook Mobile In-App Browser và tối đa hóa doanh thu Google AdSense (GA).
Version: 1.0.0
License: GPL v2 or later
Text Domain: rata-novel-adsense
*/

:root {
  --bg-page: #faf8f5;
  --bg-card: #ffffff;
  --text-main: #1c1917;
  --text-muted: #57534e;
  --accent: #d97706;
  --accent-hover: #b45309;
  --border: #e7e5e4;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0 0 84px 0;
  background-color: var(--bg-page);
  color: var(--text-main);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.8;
  font-size: 19px;
  -webkit-font-smoothing: antialiased;
}

.rata-container {
  max-width: 760px;
  margin: 0 auto;
  padding: 16px;
}

.rata-header {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  padding: 12px 16px;
  position: sticky;
  top: 0;
  z-index: 30;
}

.rata-brand {
  font-weight: 800;
  font-size: 20px;
  color: var(--accent);
  text-decoration: none;
}

.rata-story-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 18px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.rata-chapter-content p {
  margin: 0 0 1.35em 0;
  text-align: justify;
}

.rata-ad-slot {
  margin: 22px 0;
  padding: 10px;
  background: #f5f5f4;
  border: 1px dashed #d6d3d1;
  border-radius: 8px;
  text-align: center;
  min-height: 90px;
}

.rata-ad-label {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #a8a29e;
  margin-bottom: 4px;
}

.rata-nav-bar {
  display: flex;
  gap: 12px;
  margin: 24px 0;
}

.rata-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 20px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 17px;
  text-decoration: none;
  flex: 1;
  text-align: center;
  transition: background 0.15s ease;
}

.rata-btn-primary {
  background: var(--accent);
  color: #ffffff;
}

.rata-btn-primary:hover {
  background: var(--accent-hover);
}

.rata-btn-outline {
  background: var(--bg-card);
  color: var(--text-main);
  border: 1px solid var(--border);
}

.rata-sticky-mobile-ad {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #ffffff;
  border-top: 1px solid var(--border);
  padding: 6px 10px;
  z-index: 50;
  text-align: center;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.06);
}
