/* CatMind Theme - Colores alegres y elementos felinos */

:root {
  --primary-color: #ff6b9d;      /* Rosa vibrante */
  --secondary-color: #4ecdc4;    /* Turquesa */
  --accent-color: #ffe66d;       /* Amarillo suave */
  --success-color: #95e1d3;      /* Verde menta */
  --warning-color: #ffa726;      /* Naranja */
  --info-color: #81c784;         /* Verde claro */
  --text-color: #2c3e50;         /* Azul oscuro */
  --bg-color: #fef9e7;           /* Crema suave */
  --card-bg: #ffffff;
  --shadow: 0 4px 15px rgba(0,0,0,0.1);
  --border-radius: 15px;
}

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

body {
  font-family: 'Comic Neue', 'Arial', sans-serif;
  background: linear-gradient(135deg, var(--bg-color) 0%, #fff5f5 100%);
  color: var(--text-color);
  line-height: 1.6;
  min-height: 100vh;
}

/* Header con elementos felinos */
.header {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  padding: 1rem 0;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.header::before {
  content: "🐱";
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: 2rem;
  opacity: 0.3;
  animation: float 3s ease-in-out infinite;
}

.header::after {
  content: "😸";
  position: absolute;
  bottom: 10px;
  left: 20px;
  font-size: 1.5rem;
  opacity: 0.3;
  animation: float 3s ease-in-out infinite reverse;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

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

.site-title {
  color: white;
  text-decoration: none;
  font-size: 2.5rem;
  font-weight: bold;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
  display: inline-block;
  transition: transform 0.3s ease;
}

.site-title:hover {
  transform: scale(1.05);
  text-decoration: none;
  color: white;
}

.site-description {
  color: rgba(255,255,255,0.9);
  font-size: 1.1rem;
  margin-top: 0.5rem;
}

/* Navegación */
.nav {
  background: rgba(255,255,255,0.95);
  padding: 1rem 0;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  backdrop-filter: blur(10px);
}

.nav-list {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.nav-item a {
  color: var(--text-color);
  text-decoration: none;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius);
  transition: all 0.3s ease;
  position: relative;
}

.nav-item a:hover {
  background: var(--accent-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

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

/* Tarjetas de categorías */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.category-card {
  background: var(--card-bg);
  border-radius: var(--border-radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  border: 3px solid transparent;
}

.category-card::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255,107,157,0.1), transparent);
  transform: rotate(45deg);
  transition: all 0.6s ease;
  opacity: 0;
}

.category-card:hover::before {
  opacity: 1;
  animation: shimmer 1.5s ease-in-out;
}

@keyframes shimmer {
  0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
  100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.category-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 15px 30px rgba(0,0,0,0.2);
  border-color: var(--primary-color);
}

.category-card h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-size: 1.5rem;
  position: relative;
}

.category-card h3::after {
  content: "🐾";
  margin-left: 0.5rem;
  font-size: 1rem;
}

.category-card p {
  color: var(--text-color);
  margin-bottom: 1.5rem;
}

.category-link {
  display: inline-block;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  text-decoration: none;
  padding: 0.75rem 1.5rem;
  border-radius: 25px;
  font-weight: 600;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.category-link::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.5s ease;
}

.category-link:hover::before {
  left: 100%;
}

.category-link:hover {
  transform: scale(1.05);
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  text-decoration: none;
  color: white;
}

/* Colores específicos para cada categoría */
.category-psicologia-yucatan {
  border-left: 5px solid var(--info-color);
}

.category-desarrollo-personal {
  border-left: 5px solid var(--success-color);
}

.category-salud-mental {
  border-left: 5px solid var(--primary-color);
}

.category-relaciones {
  border-left: 5px solid var(--warning-color);
}

.category-bienestar {
  border-left: 5px solid var(--secondary-color);
}

.category-psicologia {
  border-left: 5px solid var(--accent-color);
}

/* Posts */
.post-list {
  display: grid;
  gap: 2rem;
  margin: 2rem 0;
}

.post-card {
  background: var(--card-bg);
  border-radius: var(--border-radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  border-left: 5px solid var(--primary-color);
}

.post-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.post-title {
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

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

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

.post-meta {
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.post-summary {
  color: var(--text-color);
  line-height: 1.6;
}

/* Footer */
.footer {
  background: linear-gradient(135deg, var(--text-color) 0%, #34495e 100%);
  color: white;
  text-align: center;
  padding: 2rem 0;
  margin-top: 3rem;
  position: relative;
}

.footer::before {
  content: "🐱 🐾 😺 🐾 🐱";
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 1.2rem;
  opacity: 0.3;
}

/* Responsive */
@media (max-width: 768px) {
  .categories-grid {
    grid-template-columns: 1fr;
  }
  
  .nav-list {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }
  
  .site-title {
    font-size: 2rem;
  }
  
  .container {
    padding: 0 15px;
  }
}

/* Elementos decorativos adicionales */
.cat-decoration {
  position: fixed;
  bottom: 20px;
  right: 20px;
  font-size: 3rem;
  opacity: 0.1;
  pointer-events: none;
  animation: bounce 2s infinite;
  z-index: 1000;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-10px); }
  60% { transform: translateY(-5px); }
}

/* Efectos de hover para enlaces */
a {
  transition: all 0.3s ease;
}

/* Scrollbar personalizada */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-color);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
}

/* Modo oscuro con gatos */
.dark-cat-mode {
  --primary-color: #ff8fab;
  --secondary-color: #6ee7db;
  --accent-color: #fff176;
  --text-color: #e8eaf6;
  --bg-color: #1a1a2e;
  --card-bg: #16213e;
}

.dark-cat-mode body {
  background: linear-gradient(135deg, #1a1a2e 0%, #0f0f23 100%);
}

.dark-cat-mode .category-card,
.dark-cat-mode .post-card {
  background: var(--card-bg);
  border: 1px solid rgba(255,255,255,0.1);
}

.dark-cat-mode .nav {
  background: rgba(22,33,62,0.95);
}

/* Botón para cambiar modo */
.theme-toggle {
  position: fixed;
  top: 20px;
  right: 20px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  border: none;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  transition: all 0.3s ease;
  z-index: 1000;
}

.theme-toggle:hover {
  transform: scale(1.1) rotate(15deg);
}

@media (max-width: 768px) {
  .theme-toggle {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
  }
}