/* PadelExperto Blog — Estética heredada de PE */

:root {
  --color-bg: #ffffff;
  --color-bg-alt: #f4f7f6;
  --color-text: #1a2b23;
  --color-text-muted: #5a7a6a;
  --color-accent: #1a8a5c;
  --color-accent-hover: #14704a;
  --color-border: #d4e4dc;
  --font-main: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --max-width: 780px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: var(--font-main);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.7;
  font-size: 17px;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.site-header {
  border-bottom: 1px solid var(--color-border);
  padding: 1rem 0;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.logo {
  font-size: 1.2em;
  font-weight: 700;
  color: var(--color-text);
  text-decoration: none;
}

nav { display: flex; gap: 1.5rem; align-items: center; }

nav a {
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: 0.95em;
  transition: color 0.2s;
}

nav a:hover { color: var(--color-accent); }

.cta-nav {
  background: var(--color-accent);
  color: #fff !important;
  padding: 0.4rem 0.9rem;
  border-radius: 4px;
  font-weight: 600;
}

.cta-nav:hover { background: var(--color-accent-hover); }

/* Tagline */
.site-tagline {
  color: var(--color-text-muted);
  font-size: 1.1em;
  margin-bottom: 0.5rem;
}

/* Main */
main { padding: 2.5rem 0; }

/* Post list (index) */
.post-list { list-style: none; }

.post-list li {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--color-border);
}

.post-list li:last-child { border-bottom: none; }

.post-list a {
  text-decoration: none;
  color: var(--color-text);
}

.post-list h2 {
  font-size: 1.4em;
  margin-bottom: 0.3rem;
}

.post-list h2:hover { color: var(--color-accent); }

.post-list time {
  font-size: 0.85em;
  color: var(--color-text-muted);
}

.post-list p {
  margin-top: 0.5rem;
  color: var(--color-text-muted);
}

/* Single post */
.post-header { margin-bottom: 2rem; }

.post-header h1 {
  font-size: 2em;
  line-height: 1.2;
  margin-bottom: 0.5rem;
}

.post-header time {
  color: var(--color-text-muted);
  font-size: 0.9em;
}

.post-tags { margin-top: 0.5rem; }

.tag {
  display: inline-block;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  padding: 0.2rem 0.6rem;
  border-radius: 3px;
  font-size: 0.8em;
  color: var(--color-text-muted);
}

.post-content h2 { margin: 2rem 0 0.8rem; font-size: 1.4em; }
.post-content h3 { margin: 1.5rem 0 0.6rem; font-size: 1.15em; }
.post-content p { margin-bottom: 1.2rem; }
.post-content ul, .post-content ol { margin: 0 0 1.2rem 1.5rem; }
.post-content li { margin-bottom: 0.4rem; }
.post-content blockquote {
  border-left: 3px solid var(--color-accent);
  padding-left: 1rem;
  color: var(--color-text-muted);
  margin: 1.5rem 0;
}

/* CTA blocks */
.post-cta, .sidebar-cta {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: 6px;
  padding: 1.5rem;
  margin-top: 2.5rem;
  text-align: center;
}

.sidebar-cta { margin: 0; border-radius: 0; border-left: none; border-right: none; }

.btn {
  display: inline-block;
  background: var(--color-accent);
  color: #fff;
  padding: 0.6rem 1.4rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  margin-top: 0.8rem;
  transition: background 0.2s;
}

.btn:hover { background: var(--color-accent-hover); }

/* Footer */
.site-footer {
  border-top: 1px solid var(--color-border);
  padding: 2rem 0;
  text-align: center;
  font-size: 0.9em;
  color: var(--color-text-muted);
}

.site-footer a { color: var(--color-accent); text-decoration: none; }
.footer-links { margin-top: 0.5rem; }

/* About page */
.about h1 { margin-bottom: 1rem; }
.about p { margin-bottom: 1rem; }

/* Responsive */
@media (max-width: 600px) {
  .site-header .container { flex-direction: column; align-items: flex-start; }
  .post-header h1 { font-size: 1.6em; }
}
