/* 
   InfoColombofilia Theme - Beta 2 UI 
   Modern, Blue Palette, Clean Layout
*/

:root {
  --color-primary: #0d3b66;
  /* Deep Ocean Blue */
  --color-primary-dark: #092a4a;
  --color-secondary: #f4d35e;
  /* Gold accent? Maybe too bright. Let's stick to the image style: dark blues and whites */
  --color-blue-light: #eef4ff;
  --color-text: #333;
  --color-text-muted: #666;
  --color-border: #ddd;
  --color-bg: #f4f6f9;
  --color-white: #fff;
  --color-red: #d32f2f;

  --font-main: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --radius: 8px;
  --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  --spacing-4: 1rem;
}

body {
  font-family: var(--font-main);
  background-color: var(--color-bg);
  color: var(--color-text);
  margin: 0;
  padding: 0;
  line-height: 1.5;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* --- Header --- */
.site-header {
  background: var(--color-primary);
  color: white;
  padding: 15px 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 24px;
  font-weight: 700;
  color: white;
}

.brand-icon {
  font-size: 28px;
}

.tld {
  font-weight: 300;
  opacity: 0.7;
  font-size: 0.8em;
}

.site-nav {
  display: flex;
  gap: 25px;
}

.nav-link {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
  transition: color 0.2s;
  font-size: 16px;
}

.nav-link:hover {
  color: white;
}

.nav-item-dropdown {
  position: relative;
}

.u-small {
  font-size: 0.7em;
  margin-left: 4px;
  vertical-align: middle;
}

.btn-outline-light {
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 6px 16px;
  border-radius: 4px;
  color: white;
  font-size: 14px;
  transition: all 0.2s;
}

.btn-outline-light:hover {
  background: white;
  color: var(--color-primary);
  border-color: white;
}

.mobile-menu-toggle {
  display: none;
  color: white;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
}

/* --- Hero --- */
.hero-section {
  position: relative;
  background: linear-gradient(rgba(13, 59, 102, 0.15), rgba(13, 59, 102, 0.25)), url('/assets/img/hero_palomas.jpg');
  background-size: cover;
  background-position: center;
  padding: 100px 0;
  color: white;
  margin-bottom: 40px;
}

.hero-content {
  max-width: 600px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7), 0 0 20px rgba(0, 0, 0, 0.5);
}

.hero-content h1 {
  font-size: 48px;
  line-height: 1.1;
  margin-bottom: 15px;
  font-weight: 800;
}

.hero-content p {
  font-size: 20px;
  margin-bottom: 30px;
  opacity: 0.9;
}

.hero-buttons {
  display: flex;
  gap: 15px;
}

.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 4px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: background 0.2s;
  border: none;
}

.btn-primary-dark {
  background: var(--color-primary);
  color: white;
}

.btn-primary-dark:hover {
  background: var(--color-primary-dark);
}

.btn-white {
  background: white;
  color: var(--color-primary);
}

.btn-white:hover {
  background: #f0f0f0;
}

.btn-blue-block {
  display: block;
  background: var(--color-primary);
  color: white;
  width: 100%;
  padding: 12px;
}

.btn-blue-block:hover {
  background: var(--color-primary-dark);
}

.btn-dark-block {
  display: block;
  background: #222;
  color: white;
  width: 100%;
  padding: 12px;
}

.btn-dark-block:hover {
  background: #000;
}

.btn-red {
  background: var(--color-red);
  color: white;
}

.btn-red:hover {
  background: #b71c1c;
}


/* --- Main Grid --- */
.main-grid {
  display: grid;
  grid-template-columns: 1.2fr 1.2fr 1fr;
  gap: 30px;
  margin-bottom: 60px;
}

@media (max-width: 900px) {
  .main-grid {
    grid-template-columns: 1fr;
  }
}

.section-header {
  margin-bottom: 20px;
  border-bottom: 2px solid #e0e0e0;
  padding-bottom: 10px;
}

.section-header h3 {
  margin: 0;
  font-size: 18px;
  color: #444;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Article List */
.article-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.article-card {
  display: flex;
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s;
  height: 100px;
}

.article-card:hover {
  transform: translateY(-2px);
}

.article-thumb {
  width: 120px;
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
}

.article-info {
  padding: 15px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.article-info h4 {
  margin: 0 0 5px;
  font-size: 16px;
  color: var(--color-primary);
  line-height: 1.3;
}

.article-info .meta {
  font-size: 12px;
  color: var(--color-text-muted);
}

/* Events Column */
.events-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.event-card-mini {
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.event-thumb {
  height: 120px;
  background-size: cover;
  background-position: center;
}

.event-details {
  padding: 15px;
}

.event-details h4 {
  margin: 0 0 5px;
  font-size: 16px;
  color: var(--color-primary);
}

.event-details p {
  margin: 0 0 5px;
  font-size: 14px;
  font-weight: bold;
  color: #555;
}

.event-details small {
  display: block;
  color: #777;
  margin-bottom: 10px;
  font-size: 13px;
}

.link-sm {
  font-size: 13px;
  color: var(--color-primary);
  font-weight: 600;
  text-decoration: underline;
}

/* Sidebar Widgets */
.col-sidebar {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.widget {
  background: white;
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  text-align: center;
}

.widget h3 {
  margin-top: 0;
  font-size: 18px;
  color: #333;
}

.widget p {
  font-size: 14px;
  color: #666;
  margin-bottom: 15px;
}

.widget-bg {
  height: 120px;
  background-size: cover;
  background-position: center;
  border-radius: 4px;
  margin-bottom: 15px;
  background-color: #eee;
}

.fan-links {
  text-align: left;
  margin-bottom: 15px;
}

.fan-links li {
  margin-bottom: 8px;
  font-size: 14px;
  color: #444;
}

.fan-links i {
  color: var(--color-primary);
  margin-right: 8px;
  width: 20px;
  text-align: center;
}

/* Newsletter */
.newsletter-section {
  background: white;
  padding: 40px 0;
  border-top: 1px solid #eee;
}

.newsletter-content {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.newsletter-content h3 {
  margin-bottom: 20px;
  color: #333;
}

.newsletter-form {
  display: flex;
  gap: 10px;
}

.newsletter-form input {
  flex: 1;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 16px;
}

/* Footer */
.site-footer {
  background: var(--color-primary);
  color: white;
  padding: 30px 0;
  margin-top: 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-left {
  font-size: 14px;
  opacity: 0.9;
}

.footer-right {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
}

.footer-right a {
  color: rgba(255, 255, 255, 0.8);
  transition: color 0.2s;
}

.footer-right a:hover {
  color: white;
}

.sep {
  opacity: 0.4;
}

.social-icons {
  margin-left: 10px;
}

.social-icons a {
  margin: 0 5px;
  font-size: 16px;
}

/* Mobile */
@media (max-width: 768px) {
  .header-inner {
    flex-wrap: wrap;
  }

  .mobile-menu-toggle {
    display: block;
  }

  .site-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    padding: 20px 0;
    gap: 10px;
    text-align: center;
  }

  .site-nav.active {
    display: flex;
  }

  .header-actions {
    display: none;
  }

  .hero-content h1 {
    font-size: 32px;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}

/* Flash Messages */
.flash {
  padding: 15px;
  margin-bottom: 20px;
  border-radius: 4px;
}

.flash-success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.flash-error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.flash-info {
  background: #d1ecf1;
  color: #0c5460;
  border: 1px solid #bee5eb;
}

/* Utilities for inner pages compatibility */
.page-head {
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eee;
}

.page-head h1 {
  font-size: 28px;
  color: var(--color-primary);
  margin: 0 0 5px;
}

.page-head .muted {
  color: #666;
  font-size: 16px;
  margin: 0;
}

.card {
  background: white;
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  margin-bottom: 20px;
}

.card-kicker {
  font-size: 12px;
  text-transform: uppercase;
  color: #888;
  margin-bottom: 5px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.card-title {
  font-size: 20px;
  color: #333;
  margin: 0 0 10px;
}

.card-media {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s;
  padding: 0;
  overflow: hidden;
}

.card-media:hover {
  transform: translateY(-3px);
}

.thumb {
  height: 180px;
  background-size: cover;
  background-position: center;
}

.card-body {
  padding: 15px;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 768px) {

  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }
}

.img-full {
  width: 100%;
  height: auto;
  border-radius: 4px;
  margin-bottom: 15px;
}

.form-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 15px;
}

.form-group {
  flex: 1;
  min-width: 200px;
  margin-bottom: 10px;
}

.form-group label {
  display: block;
  font-weight: 600;
  color: #555;
  margin-bottom: 5px;
  font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.form-actions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.btn-primary {
  background: var(--color-primary);
  color: white;
  border: none;
}

.btn-secondary {
  background: #6c757d;
  color: white;
}

.btn-ghost {
  background: transparent;
  border: 1px solid #ccc;
  color: #555;
}

.btn-danger {
  background: var(--color-red);
  color: white;
}

.badge {
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 11px;
  text-transform: uppercase;
  font-weight: bold;
}

.badge-ok {
  background: #d4edda;
  color: #155724;
}

.badge-warn {
  background: #fff3cd;
  color: #856404;
}

.table {
  width: 100%;
  border-collapse: collapse;
}

.table th,
.table td {
  padding: 10px;
  border-bottom: 1px solid #eee;
  text-align: left;
}

/* Mobile Menu Toggle Fix */
@media (max-width: 768px) {
  .site-nav {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: var(--color-primary);
    flex-direction: column;
    padding: 20px 0;
    gap: 15px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
  }

  .site-nav.active {
    display: flex;
  }

  /* Ensure toggle is visible */
  .mobile-menu-toggle {
    display: block !important;
    z-index: 1001;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    padding: 8px 12px;
    color: white !important;
  }

  .mobile-menu-toggle i {
    font-size: 24px;
  }
}

/* Modal Popup */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.popup-content {
  background: white;
  padding: 30px;
  border-radius: var(--radius);
  max-width: 450px;
  width: 100%;
  text-align: center;
  position: relative;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.popup-close {
  position: absolute;
  top: 10px;
  right: 15px;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #999;
}

.popup-close:hover {
  color: #333;
}

.popup-header {
  margin-bottom: 20px;
}

.popup-header i {
  font-size: 40px;
  color: var(--color-primary);
  margin-bottom: 10px;
}

.popup-header h3 {
  margin: 0;
  font-size: 22px;
  color: #333;
}

.popup-content form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
}

.popup-content input {
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 16px;
}

/* Featured Cards (Directory) */
.card-featured {
  border: 2px solid var(--color-primary);
  box-shadow: 0 6px 20px rgba(13, 59, 102, 0.15);
  position: relative;
}

.card-featured::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
  border-radius: 8px 8px 0 0;
}

/* Widget Styles */
.widget {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
  position: relative;
}

.widget-directory {
  padding: 0;
}

.widget-bg {
  width: 100%;
  height: 180px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.widget h3 {
  margin: 0;
  padding: 20px 20px 10px;
  font-size: 20px;
  color: var(--color-primary);
}

.widget p {
  margin: 0;
  padding: 0 20px 15px;
  color: #666;
  font-size: 14px;
}

.widget .btn-blue-block {
  display: block;
  margin: 0 20px 20px;
  text-align: center;
  background: var(--color-primary);
  color: white;
  padding: 12px;
  border-radius: 6px;
  font-weight: 600;
  transition: background 0.3s;
}

.widget .btn-blue-block:hover {
  background: var(--color-primary-dark);
}