/*
Theme Name: Actis Ereerea
Theme URI: https://actis.ereerea.com
Author: Bichio
Author URI: https://ereerea.com
Description: Theme para gestión de eventos y locales en Asunción
Version: 1.0.0
License: GPL v2
Text Domain: actisereerea
*/

/* Base styles */
:root {
  --primary: #0f172a;
  --primary-foreground: #f8fafc;
  --secondary: #f1f5f9;
  --secondary-foreground: #0f172a;
  --muted: #f1f5f9;
  --muted-foreground: #64748b;
  --accent: #f1f5f9;
  --accent-foreground: #0f172a;
  --destructive: #ef4444;
  --destructive-foreground: #f8fafc;
  --border: #e2e8f0;
  --input: #e2e8f0;
  --ring: #0f172a;
  --radius: 0.5rem;
  --background: #ffffff;
  --foreground: #0f172a;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: var(--background);
  color: var(--foreground);
  line-height: 1.6;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Header */
.site-header {
  background: var(--primary);
  color: var(--primary-foreground);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-title a {
  color: var(--primary-foreground);
  text-decoration: none;
  font-size: 1.5rem;
  font-weight: 700;
}

.main-nav ul {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.main-nav a {
  color: var(--primary-foreground);
  text-decoration: none;
  font-weight: 500;
  transition: opacity 0.2s;
}

.main-nav a:hover {
  opacity: 0.8;
}

/* Main content */
.site-main {
  min-height: calc(100vh - 200px);
  padding: 2rem 0;
}

/* Cards */
.card {
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: box-shadow 0.2s;
}

.card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.card-header {
  margin-bottom: 1rem;
}

.card-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.card-title a {
  color: var(--foreground);
  text-decoration: none;
}

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

.card-meta {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.card-content {
  color: var(--muted-foreground);
}

/* Grid */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}

.btn-primary {
  background: var(--primary);
  color: var(--primary-foreground);
}

.btn-primary:hover {
  opacity: 0.9;
}

.btn-secondary {
  background: var(--secondary);
  color: var(--secondary-foreground);
  border-color: var(--border);
}

.btn-secondary:hover {
  background: var(--muted);
}

/* Footer */
.site-footer {
  background: var(--muted);
  padding: 2rem 0;
  text-align: center;
  color: var(--muted-foreground);
}

/* Forms */
.form-group {
  margin-bottom: 1rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--background);
  color: var(--foreground);
  font-size: 0.875rem;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--ring);
  box-shadow: 0 0 0 2px rgba(15, 23, 42, 0.1);
}

/* Page headers */
.page-header {
  background: var(--muted);
  padding: 3rem 0;
  margin-bottom: 2rem;
}

.page-title {
  font-size: 2rem;
  font-weight: 700;
}

.page-description {
  color: var(--muted-foreground);
  margin-top: 0.5rem;
}

/* Single post */
.single-post {
  max-width: 800px;
  margin: 0 auto;
}

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

.post-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.post-meta {
  display: flex;
  gap: 1rem;
  color: var(--muted-foreground);
  font-size: 0.875rem;
}

.post-content {
  font-size: 1.125rem;
  line-height: 1.8;
}

.post-content p {
  margin-bottom: 1.5rem;
}

/* Custom fields display */
.meta-box {
  background: var(--muted);
  padding: 1.5rem;
  border-radius: var(--radius);
  margin: 1.5rem 0;
}

.meta-box h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.meta-list {
  list-style: none;
}

.meta-list li {
  display: flex;
  justify-content: space-between;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
}

.meta-list li:last-child {
  border-bottom: none;
}

.meta-label {
  font-weight: 500;
  color: var(--muted-foreground);
}

.meta-value {
  color: var(--foreground);
}

.meta-value a {
  color: var(--primary);
  text-decoration: none;
}

.meta-value a:hover {
  text-decoration: underline;
}

/* Social links */
.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--primary-foreground);
  text-decoration: none;
  transition: opacity 0.2s;
}

.social-links a:hover {
  opacity: 0.8;
}

/* Taxonomy tags */
.taxonomy-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0;
}

.taxonomy-tag {
  display: inline-flex;
  padding: 0.25rem 0.75rem;
  background: var(--secondary);
  color: var(--secondary-foreground);
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
  text-decoration: none;
}

.taxonomy-tag:hover {
  background: var(--muted);
}

/* Responsive */
@media (max-width: 768px) {
  .site-header .container {
    flex-direction: column;
    gap: 1rem;
  }
  
  .main-nav ul {
    gap: 1rem;
  }
  
  .grid {
    grid-template-columns: 1fr;
  }
  
  .post-title {
    font-size: 1.75rem;
  }
}
