/* ===== RESET & VARIABLES ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --primary: #e85d04;
  --primary-dark: #d45200;
  --accent: #f48c06;
  --text: #1a1a2e;
  --text-light: #6b7280;
  --bg: #faf7f2;
  --bg-card: #ffffff;
  --bg-dark: #1a1a2e;
  --border: #e5e0d8;
  --shadow: 0 2px 8px rgba(26,26,46,0.06);
  --shadow-lg: 0 8px 30px rgba(26,26,46,0.12);
  --radius: 12px;
  --max-width: 1140px;
  --font: 'Georgia', 'Times New Roman', serif;
  --font-sans: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.75;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { padding-left: 1.5em; }

/* ===== HEADER ===== */
.site-header {
  background: var(--bg-dark);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.logo {
  font-family: var(--font);
  font-size: 1.6rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.5px;
}

.logo span { color: var(--accent); }

.nav-menu {
  display: flex;
  list-style: none;
  gap: 0.25rem;
  padding: 0;
}

.nav-menu a {
  display: block;
  padding: 0.5rem 1rem;
  color: rgba(255,255,255,0.7);
  font-weight: 500;
  font-size: 0.9rem;
  border-radius: 6px;
  transition: all 0.2s;
}

.nav-menu a:hover, .nav-menu a.active {
  color: #fff;
  background: rgba(255,255,255,0.1);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: #fff;
}

.menu-toggle svg { width: 24px; height: 24px; }

/* ===== HERO ===== */
.hero {
  background: var(--bg-dark);
  color: #fff;
  padding: 4rem 1.5rem 5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(ellipse at 50% 120%, rgba(232,93,4,0.15) 0%, transparent 70%);
}

.hero h1 {
  font-family: var(--font);
  font-size: 2.75rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.2;
  position: relative;
}

.hero p {
  font-size: 1.1rem;
  opacity: 0.8;
  max-width: 560px;
  margin: 0 auto 2rem;
  position: relative;
}

.hero-search {
  max-width: 480px;
  margin: 0 auto;
  position: relative;
}

.hero-search input {
  width: 100%;
  padding: 0.9rem 1.25rem 0.9rem 3rem;
  border: 2px solid rgba(255,255,255,0.15);
  border-radius: 50px;
  font-size: 1rem;
  background: rgba(255,255,255,0.08);
  color: #fff;
  outline: none;
  transition: border-color 0.2s;
}

.hero-search input::placeholder { color: rgba(255,255,255,0.5); }
.hero-search input:focus { border-color: var(--accent); }

.hero-search svg {
  position: absolute;
  left: 1.1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: rgba(255,255,255,0.5);
}

/* ===== LAYOUT ===== */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
}

.main-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2.5rem;
  align-items: start;
}

main { flex: 1; }

/* ===== SECTION TITLES ===== */
.section-title {
  font-family: var(--font);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  position: relative;
  padding-left: 1rem;
}

.section-title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.2rem;
  bottom: 0.2rem;
  width: 4px;
  background: var(--primary);
  border-radius: 2px;
}

/* ===== POST CARDS ===== */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.75rem;
}

.post-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.25s, box-shadow 0.25s;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
}

.post-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.post-card-image {
  width: 100%;
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
}

.post-card-body {
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.post-card-category {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--primary);
  background: rgba(232,93,4,0.08);
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 0.5rem;
  width: fit-content;
}

.post-card-title {
  font-family: var(--font);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  line-height: 1.35;
}

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

.post-card-excerpt {
  font-size: 0.875rem;
  color: var(--text-light);
  margin-bottom: 1rem;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-card-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.78rem;
  color: var(--text-light);
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}

/* ===== SIDEBAR ===== */
.sidebar { position: sticky; top: 84px; }

.sidebar-widget {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.sidebar-widget h3 {
  font-family: var(--font);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--primary);
}

.sidebar-widget ul { list-style: none; padding: 0; }

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

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

.sidebar-widget ul li a {
  color: var(--text);
  font-size: 0.88rem;
  display: flex;
  justify-content: space-between;
}

.sidebar-widget ul li a:hover { color: var(--primary); }

.category-count {
  background: var(--bg);
  padding: 0.1rem 0.5rem;
  border-radius: 10px;
  font-size: 0.78rem;
  color: var(--text-light);
}

.ad-placeholder {
  background: var(--bg);
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 2rem 1rem;
  text-align: center;
  color: var(--text-light);
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
}

/* ===== SINGLE POST ===== */
.post-content {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 2.5rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  margin-bottom: 2rem;
}

.post-header { margin-bottom: 2rem; }

.post-header h1 {
  font-family: var(--font);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 1rem;
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  color: var(--text-light);
  font-size: 0.88rem;
}

.post-body h2 {
  font-family: var(--font);
  font-size: 1.45rem;
  font-weight: 700;
  margin: 2rem 0 1rem;
}

.post-body h3 {
  font-family: var(--font);
  font-size: 1.15rem;
  font-weight: 600;
  margin: 1.5rem 0 0.75rem;
}

.post-body p { margin-bottom: 1.15rem; }
.post-body ul, .post-body ol { margin-bottom: 1.15rem; }
.post-body li { margin-bottom: 0.4rem; }

.post-body blockquote {
  border-left: 4px solid var(--primary);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  background: var(--bg);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--text-light);
  font-style: italic;
  font-family: var(--font);
}

.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.tag {
  display: inline-block;
  padding: 0.3rem 0.75rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 0.8rem;
  color: var(--text-light);
  transition: all 0.2s;
}

.tag:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.in-article-ad {
  background: var(--bg);
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  color: var(--text-light);
  font-size: 0.85rem;
  margin: 2rem 0;
}

/* ===== BREADCRUMB ===== */
.breadcrumb {
  padding: 1rem 0;
  font-size: 0.85rem;
  color: var(--text-light);
}

.breadcrumb a { color: var(--text-light); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb span { margin: 0 0.4rem; }

/* ===== PAGE CONTENT ===== */
.page-content {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 2.5rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  margin-bottom: 2rem;
}

.page-content h1 {
  font-family: var(--font);
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.page-content h2 {
  font-family: var(--font);
  font-size: 1.35rem;
  font-weight: 700;
  margin: 2rem 0 1rem;
}

.page-content h3 { font-size: 1.1rem; font-weight: 600; margin: 1.5rem 0 0.75rem; }
.page-content p { margin-bottom: 1rem; }
.page-content ul, .page-content ol { margin-bottom: 1rem; }
.page-content li { margin-bottom: 0.35rem; }

/* ===== CONTACT FORM ===== */
.contact-form { max-width: 600px; }
.form-group { margin-bottom: 1.25rem; }

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: var(--font-sans);
  transition: border-color 0.2s;
  background: var(--bg);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(232,93,4,0.1);
}

.form-group textarea { min-height: 150px; resize: vertical; }

.btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.btn:hover { background: var(--primary-dark); color: #fff; }

/* ===== FOOTER ===== */
.site-footer {
  background: var(--bg-dark);
  color: #ccc;
  margin-top: auto;
}

.footer-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem 1.5rem 2rem;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
}

.footer-col h4 { color: #fff; font-family: var(--font); font-size: 1.05rem; margin-bottom: 1rem; }
.footer-col p { font-size: 0.88rem; line-height: 1.6; color: #aaa; }
.footer-col ul { list-style: none; padding: 0; }
.footer-col ul li { margin-bottom: 0.5rem; }
.footer-col ul li a { color: #aaa; font-size: 0.88rem; transition: color 0.2s; }
.footer-col ul li a:hover { color: var(--accent); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.25rem 1.5rem;
  text-align: center;
  font-size: 0.83rem;
  color: #666;
}

/* ===== COOKIE CONSENT ===== */
.cookie-consent {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--bg-dark);
  color: #ddd;
  padding: 1.25rem 1.5rem;
  z-index: 10000;
  box-shadow: 0 -4px 12px rgba(0,0,0,0.2);
  display: none;
}

.cookie-consent.show { display: block; }

.cookie-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.cookie-inner p { font-size: 0.88rem; line-height: 1.5; flex: 1; min-width: 280px; }
.cookie-inner a { color: var(--accent); text-decoration: underline; }

.cookie-buttons { display: flex; gap: 0.75rem; }

.cookie-btn {
  padding: 0.5rem 1.5rem;
  border: none;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}

.cookie-btn.accept { background: var(--primary); color: #fff; }
.cookie-btn.accept:hover { background: var(--primary-dark); }
.cookie-btn.decline { background: transparent; color: #ccc; border: 1px solid #555; }
.cookie-btn.decline:hover { border-color: #999; color: #fff; }

/* ===== NEWSLETTER ===== */
.newsletter-widget {
  background: linear-gradient(135deg, var(--bg-dark), #16213e);
  border-radius: var(--radius);
  padding: 1.75rem;
  margin-bottom: 1.5rem;
  color: #fff;
  text-align: center;
  border: 1px solid rgba(255,255,255,0.05);
}

.newsletter-widget h3 { color: #fff; border-bottom: none; margin-bottom: 0.5rem; font-size: 1.05rem; }
.newsletter-widget p { font-size: 0.83rem; opacity: 0.8; margin-bottom: 1rem; }

.newsletter-form { display: flex; flex-direction: column; gap: 0.5rem; }

.newsletter-form input {
  padding: 0.65rem 1rem;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 8px;
  font-size: 0.88rem;
  background: rgba(255,255,255,0.06);
  color: #fff;
  outline: none;
}

.newsletter-form input::placeholder { color: rgba(255,255,255,0.4); }

.newsletter-form button {
  padding: 0.65rem;
  border: none;
  border-radius: 8px;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
}

.newsletter-form button:hover { background: var(--primary-dark); }
.newsletter-success { display: none; padding: 0.75rem; background: rgba(255,255,255,0.1); border-radius: 8px; font-size: 0.88rem; }

/* ===== READING PROGRESS ===== */
.reading-progress {
  position: fixed;
  top: 68px; left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  z-index: 999;
}

/* ===== SHARE BAR ===== */
.share-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 0;
  margin: 1.5rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.share-bar span { font-weight: 600; font-size: 0.88rem; }

.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  color: #fff;
  transition: transform 0.2s;
}

.share-btn:hover { transform: scale(1.1); color: #fff; }
.share-btn.facebook { background: #1877f2; }
.share-btn.twitter { background: #1da1f2; }
.share-btn.linkedin { background: #0a66c2; }
.share-btn.whatsapp { background: #25d366; }
.share-btn.copy-link { background: var(--text-light); }
.share-btn svg { width: 18px; height: 18px; fill: currentColor; }

.copy-tooltip {
  position: absolute;
  background: var(--text);
  color: #fff;
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
  font-size: 0.75rem;
  opacity: 0;
  pointer-events: none;
}

.copy-tooltip.show { opacity: 1; }

/* ===== BACK TO TOP ===== */
.back-to-top {
  position: fixed;
  bottom: 2rem; right: 2rem;
  width: 44px; height: 44px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
  z-index: 100;
}

.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover { background: var(--primary-dark); transform: translateY(-2px); }
.back-to-top svg { width: 20px; height: 20px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 968px) {
  .main-grid { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-menu {
    display: none;
    position: absolute;
    top: 68px; left: 0; right: 0;
    background: var(--bg-dark);
    flex-direction: column;
    padding: 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }

  .nav-menu.active { display: flex; }
  .menu-toggle { display: block; }
  .hero h1 { font-size: 1.8rem; }
  .hero { padding: 2.5rem 1rem 3rem; }
  .posts-grid { grid-template-columns: 1fr; }
  .post-content, .page-content { padding: 1.5rem; }
  .post-header h1, .page-content h1 { font-size: 1.5rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .cookie-inner { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .header-inner { padding: 0 1rem; }
  .hero h1 { font-size: 1.5rem; }
  .container { padding: 1.5rem 1rem; }
}
