/*
Theme Name: Advertorial Blog
Theme URI: https://example.com
Author: Advertorial
Author URI: https://example.com
Description: Minimal theme for advertorial and blog content. Clean layout, full-width post body, and optional Tailwind support for custom HTML advertorials.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: advertorial-blog
*/

/* Reset / base - theme adds minimal styling so your content (or Tailwind) controls look */
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #334155;
  background: #fff;
}

/* Site wrapper */
.site {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Main content area - full width for advertorials */
.site-main {
  flex: 1;
  width: 100%;
  max-width: 48rem;
  margin: 0 auto;
  padding: 1.5rem 1rem 3rem;
  box-sizing: border-box;
}

@media (min-width: 640px) {
  .site-main {
    padding: 2.5rem 1.5rem 4rem;
  }
}

/* Entry content: don't override your Tailwind/advertorial styles */
.entry-content {
  width: 100%;
  max-width: none;
}

.entry-content img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Headings in default (non-Tailwind) content */
.entry-content h1,
.entry-content h2,
.entry-content h3 {
  margin-top: 1.5em;
  margin-bottom: 0.5em;
  line-height: 1.3;
}

.entry-content h1 { font-size: 1.875rem; }
.entry-content h2 { font-size: 1.5rem; }
.entry-content h3 { font-size: 1.25rem; }

.entry-content p {
  margin-top: 0;
  margin-bottom: 1em;
}

.entry-content a {
  color: #0f172a;
  text-decoration: underline;
}

.entry-content a:hover {
  color: #475569;
}

/* Header bar */
.site-header {
  background: #0f172a;
  color: #fff;
  padding: 0.5rem 1rem;
}

.site-header .header-inner {
  max-width: 48rem;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.site-title {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 700;
}

.site-title a,
.site-title a:hover {
  color: #fff;
  text-decoration: none;
}

.site-description {
  margin: 0;
  font-size: 0.875rem;
  color: #94a3b8;
}

/* Navigation */
.main-navigation ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1rem;
}

.main-navigation a {
  color: #cbd5e1;
  text-decoration: none;
  font-size: 0.875rem;
}

.main-navigation a:hover {
  color: #fff;
}

/* Footer */
.site-footer {
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  padding: 1.5rem 1rem;
  font-size: 0.875rem;
  color: #64748b;
}

.site-footer .footer-inner {
  max-width: 48rem;
  margin: 0 auto;
  text-align: center;
}

.site-footer a {
  color: #475569;
  text-decoration: underline;
}

/* Post meta (date, author) when not inside advertorial HTML */
.entry-meta {
  font-size: 0.875rem;
  color: #64748b;
  margin-bottom: 1rem;
}

/* Archive / blog list */
.post-list .entry-header {
  margin-bottom: 0.5rem;
}

.post-list .entry-title {
  font-size: 1.25rem;
  margin: 0 0 0.25rem;
}

.post-list .entry-title a {
  text-decoration: none;
  color: inherit;
}

.post-list .entry-title a:hover {
  text-decoration: underline;
}

.post-list article {
  padding: 1.5rem 0;
  border-bottom: 1px solid #e2e8f0;
}

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

/* Pagination */
.pagination {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
  gap: 0.5rem;
}

.pagination a,
.pagination span {
  padding: 0.25rem 0.75rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.25rem;
  text-decoration: none;
  color: #475569;
}

.pagination a:hover {
  background: #f1f5f9;
}

.pagination .current {
  background: #0f172a;
  color: #fff;
  border-color: #0f172a;
}
