/*
 Theme Name:   Foro Social Bricks
 Theme URI:    https://doxaku.com/
 Description:  Use this child theme to extend Bricks by Kokura Design & Doxaku Hosting.
 Author:       Pau Kokura
 Author URI:   https://kokura.design/
 Template:     bricks
 Version:      1.1
 Text Domain:  foro-social-child
*/

/* ============================================
   FORO SOCIAL UI
   ============================================ */
:root {
  /* Color principal */
  --primary: #f2541b;
  --primary-rgb: 242, 84, 27;
  
  --secondary: #2c7a7b;
  --secondary-rgb: 44, 122, 123;
  --success: #2ecc71;
  --success-rgb: 46, 204, 113;
  --warning: #f39c12;
  --warning-rgb: 243, 156, 18;
  --alert: #e74c3c;
  --alert-rgb: 231, 76, 60;
  --highlight: #e67e22;
  --highlight-rgb: 230, 126, 34;
  
  /* Fondo personalizado */
  --bg-gray-light: #e3f3f3;
  --card-white: #ffffff;
  
  --gray-50: #f2f8f8;
  --gray-100: #e0eeee;
  --gray-200: #cbdcdc;
  --gray-300: #a3bfbf;
  --gray-400: #7a9e9e;
  --gray-500: #5c7a7a;
  --gray-600: #3f5555;
  --gray-700: #2b3a3a;
  --gray-800: #1a2626;
  --gray-900: #0e1414;

  /* TIPOGRAFÍA PRINCIPAL: Source Sans 3 (cargada en Bricks) */
  --font-sans: 'Source Sans 3','Helvetica Neue', Arial, sans-serif;
  
  --border-radius-sm: 0.25rem;
  --border-radius: 0.375rem;
  --border-radius-lg: 0.5rem;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --transition: all 0.2s ease;
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-gray-light);
  color: var(--gray-800);
  line-height: 1.5;
  scroll-behavior: smooth;
}

.container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--primary);
  color: white;
  padding: 0.5rem 1rem;
  z-index: 100;
  transition: top 0.2s;
}
.skip-link:focus {
  top: 0;
}

.style-header {
  background-color: var(--card-white);
  border-bottom: 1px solid var(--gray-200);
  padding: 1.5rem 0;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-sm);
}
.style-header h1 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -0.01em;
}
.style-header p {
  font-size: 1.125rem;
  color: var(--gray-600);
  margin-top: 0.25rem;
}
.style-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
  border-top: 1px solid var(--gray-100);
  padding-top: 1rem;
}
.style-nav a {
  color: var(--gray-700);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.25rem 0.5rem;
  border-radius: var(--border-radius);
  transition: var(--transition);
}
.style-nav a:hover {
  background-color: var(--gray-100);
  color: var(--primary);
}

.component-section {
  background: var(--card-white);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow);
  margin-bottom: 2.5rem;
  overflow: hidden;
  transition: var(--transition);
}
.component-section:hover {
  box-shadow: var(--shadow-md);
}
.component-header {
  padding: 1rem 1.5rem;
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-200);
  font-weight: 600;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.component-preview {
  padding: 2rem;
  border-bottom: 1px solid var(--gray-200);
}
.component-code {
  background-color: var(--gray-800);
  color: #e2e8f0;
  padding: 1rem 1.5rem;
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 0.8rem;
  overflow-x: auto;
  border-top: 1px solid var(--gray-700);
}
.component-code pre {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
}

.colors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 1rem;
}
.color-card {
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  background: white;
}
.color-swatch {
  height: 90px;
}
.color-info {
  padding: 0.75rem;
}
.color-name {
  font-weight: 600;
  font-size: 0.9rem;
}
.color-value {
  font-family: monospace;
  font-size: 0.75rem;
  color: var(--gray-500);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: var(--border-radius);
  padding: 0.5rem 1rem;
  font-weight: 500;
  font-size: 0.875rem;
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid transparent;
  background: transparent;
  text-decoration: none;
}
.btn-primary { background-color: var(--primary); color: white; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background-color: #d8430e; transform: translateY(-1px); }
.btn-secondary { background-color: var(--secondary); color: white; }
.btn-secondary:hover { background-color: #236b6c; }
.btn-success { background-color: var(--success); color: var(--gray-900); }
.btn-success:hover { background-color: #27ae60; }
.btn-outline { border-color: var(--gray-300); color: var(--gray-700); background: white; }
.btn-outline:hover { background-color: var(--gray-50); border-color: var(--gray-400); }
.btn-sm { padding: 0.25rem 0.75rem; font-size: 0.75rem; }
.btn-lg { padding: 0.75rem 1.5rem; font-size: 1rem; }

.form-group {
  margin-bottom: 1.25rem;
}
.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.25rem;
  color: var(--gray-700);
}
.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 0.625rem;
  border: 1px solid var(--gray-300);
  border-radius: var(--border-radius);
  font-size: 0.875rem;
  transition: var(--transition);
  background: white;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.2);
}
.checkbox-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.checkbox-group input {
  width: 1rem;
  height: 1rem;
}

.cards-demo {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}
.card {
  background: white;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid var(--gray-200);
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}
.card-img {
  height: 150px;
  background-size: cover;
  background-position: center;
  background-color: var(--gray-200);
}
.card-body {
  padding: 1rem;
}
.card-title {
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}
.card-text {
  font-size: 0.85rem;
  color: var(--gray-600);
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.7rem;
  border-radius: 9999px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.badge-primary { background: var(--primary); color: white; }
.badge-secondary { background: var(--secondary); color: white; }
.badge-success { background: var(--success); color: #0a2f1f; }
.badge-warning { background: var(--warning); color: #422b00; }
.badge-alert { background: var(--alert); color: white; }
.badge-highlight { background: var(--highlight); color: white; }

.alert {
  padding: 1rem 1.25rem;
  border-radius: var(--border-radius);
  margin-bottom: 1rem;
  border-left: 4px solid transparent;
}
.alert-success { background: #e6f7ed; border-left-color: var(--success); color: #0a3b1e; }
.alert-warning { background: #fff7e0; border-left-color: var(--warning); color: #5c3b00; }
.alert-error { background: #feefec; border-left-color: var(--alert); color: #9b2c1c; }
.alert-info { background: #e8f0fe; border-left-color: var(--secondary); color: #1c4e5c; }

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}
.data-table th, .data-table td {
  padding: 0.75rem;
  text-align: left;
  border-bottom: 1px solid var(--gray-200);
}
.data-table th {
  background-color: var(--gray-50);
  font-weight: 600;
}

.pagination {
  display: flex;
  gap: 0.25rem;
  flex-wrap: wrap;
}
.pagination-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0.75rem;
  border-radius: var(--border-radius);
  background: white;
  border: 1px solid var(--gray-300);
  color: var(--gray-700);
  text-decoration: none;
  font-size: 0.875rem;
  transition: var(--transition);
}
.pagination-item.active {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}
.pagination-item:hover:not(.active) {
  background: var(--gray-100);
  border-color: var(--gray-400);
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}
.video-card {
  background: white;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}
.video-card iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: none;
}
.video-card .video-info {
  padding: 0.75rem;
}
.video-card h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.ponente-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.5rem;
}
.ponente-card {
  background: white;
  border-radius: var(--border-radius-lg);
  text-align: center;
  padding: 1.5rem 1rem;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid var(--gray-200);
}
.ponente-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.ponente-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1rem;
  background-color: var(--gray-200);
  display: block;
}
.ponente-nombre {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}
.ponente-rol {
  font-size: 0.8rem;
  color: var(--gray-500);
  margin-bottom: 0.75rem;
}
.social-icons {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 0.5rem;
}
.social-icons a {
  color: var(--gray-500);
  text-decoration: none;
  font-size: 0.9rem;
  transition: var(--transition);
}
.social-icons a:hover {
  color: var(--primary);
}

.hero-block {
  background: linear-gradient(135deg, var(--gray-800) 0%, var(--gray-700) 100%);
  border-radius: var(--border-radius-lg);
  padding: 3rem 2rem;
  text-align: center;
  color: white;
  margin-bottom: 2rem;
}
.hero-block h2 {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}
.hero-block p {
  font-size: 1.1rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  opacity: 0.9;
  margin-bottom: 1.8rem;
}
.hero-block .btn-hero {
  background-color: var(--primary);
  color: white;
  padding: 0.75rem 2rem;
  font-size: 1rem;
  border-radius: 2rem;
  font-weight: 600;
  transition: var(--transition);
  border: none;
  cursor: pointer;
}
.hero-block .btn-hero:hover {
  background-color: #d8430e;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.text-image-block {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
  background: var(--card-white);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.text-image-content {
  flex: 1;
  padding: 2rem;
}
.text-image-content h3 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--gray-800);
}
.text-image-content p {
  margin-bottom: 1rem;
  color: var(--gray-600);
}
.text-image-media {
  flex: 1;
  min-height: 280px;
  background-size: cover;
  background-position: center;
}

.style-footer {
  margin-top: 3rem;
  padding: 2rem 0;
  border-top: 1px solid var(--gray-200);
  text-align: center;
  color: var(--gray-500);
  font-size: 0.8rem;
}

@media (max-width: 768px) {
  .text-image-block {
    flex-direction: column;
  }
  .text-image-media {
    width: 100%;
    min-height: 220px;
    order: -1;
  }
  .hero-block h2 {
    font-size: 1.8rem;
  }
}
@media (max-width: 640px) {
  .component-preview {
    padding: 1rem;
  }
  .container {
    padding: 0 1rem;
  }
}
