/* ===== Blog Personal estilo 2000s ===== */

body {
  margin: 0;
  padding: 0;
  font-family: Verdana, Tahoma, Arial, sans-serif;
  font-size: 11px;
  line-height: 1.5;
  color: #333;
  background-color: #d0d8e8;
  background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%239C92AC' fill-opacity='0.15' fill-rule='evenodd'%3E%3Ccircle cx='20' cy='20' r='2'/%3E%3C/g%3E%3C/svg%3E");
}

a {
  color: #0066cc;
  text-decoration: underline;
}

a:hover {
  color: #004499;
  text-decoration: none;
}

/* ===== Contenedor principal ===== */
.container {
  max-width: 780px;
  margin: 15px auto;
  padding: 0 8px;
}

/* ===== Header ===== */
header {
  background: linear-gradient(180deg, #4a7fc8 0%, #2a5ea8 100%);
  color: white;
  padding: 12px 15px;
  border: 2px solid #1a3d6f;
  border-radius: 6px;
  margin-bottom: 10px;
  box-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.header-left h1 {
  font-size: 18px;
  font-weight: bold;
  margin: 0 0 4px 0;
  color: white;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.4);
  letter-spacing: 0.5px;
}

.header-left p {
  margin: 0;
  font-size: 11px;
  color: #c0d8f0;
  font-style: italic;
}

.header-buttons {
  display: flex;
  gap: 6px;
  margin-top: 8px;
}

.theme-toggle, .lang-toggle {
  background: linear-gradient(180deg, #f8f8f8, #e0e0e0);
  border: 1px solid #888;
  color: #333;
  padding: 3px 8px;
  font-size: 10px;
  font-family: Verdana, sans-serif;
  cursor: pointer;
  border-radius: 2px;
  box-shadow: 1px 1px 2px rgba(0,0,0,0.15);
}

.theme-toggle:hover, .lang-toggle:hover {
  background: linear-gradient(180deg, #e8e8e8, #d0d0d0);
}

/* ===== Navegacion ===== */
nav {
  background: #e8f0f8;
  border: 1px solid #b0c4de;
  padding: 6px 10px;
  margin-bottom: 10px;
  display: flex;
  gap: 12px;
  border-radius: 3px;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.08);
}

nav a {
  color: #2a5ea8;
  font-size: 11px;
  font-weight: bold;
  text-decoration: none;
  padding: 2px 6px;
  border-bottom: 1px dashed #2a5ea8;
}

nav a:hover, nav a.active {
  color: #1a3d6f;
  border-bottom-color: #1a3d6f;
  text-decoration: none;
}

/* ===== Main content ===== */
main {
  margin-bottom: 15px;
}

/* ===== Post list ===== */
.post-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.post-item {
  background: white;
  border: 1px solid #b0c4de;
  padding: 12px;
  margin-bottom: 10px;
  border-radius: 3px;
  box-shadow: 1px 1px 3px rgba(0,0,0,0.1);
}

.post-item h2 {
  font-size: 14px;
  font-weight: bold;
  margin: 0 0 4px 0;
  color: #2a5ea8;
}

.post-item h2 a {
  color: #0066cc;
}

.post-item h2 a:hover {
  color: #004499;
}

.post-meta {
  color: #777;
  font-size: 10px;
  margin-bottom: 6px;
  font-style: italic;
}

.post-excerpt {
  color: #444;
  font-size: 11px;
  line-height: 1.5;
  margin: 0;
}

/* ===== Post completo ===== */
.post-full {
  background: white;
  border: 1px solid #b0c4de;
  padding: 15px;
  border-radius: 3px;
  box-shadow: 1px 1px 3px rgba(0,0,0,0.1);
}

.post-full h1 {
  font-size: 16px;
  font-weight: bold;
  margin: 0 0 8px 0;
  color: #2a5ea8;
  border-bottom: 2px solid #2a5ea8;
  padding-bottom: 6px;
}

.post-full .post-meta {
  margin: 0 0 12px 0;
  padding-bottom: 10px;
  border-bottom: 1px solid #e0e0e0;
  font-size: 10px;
  color: #777;
  font-style: italic;
}

.post-full .content {
  font-size: 11px;
  line-height: 1.6;
  color: #333;
}

.post-full .content p {
  margin: 0 0 10px 0;
}

.post-full .content h2 {
  font-size: 13px;
  font-weight: bold;
  margin: 16px 0 8px 0;
  color: #2a5ea8;
  background: #f0f5fa;
  padding: 4px 8px;
  border-left: 3px solid #2a5ea8;
  border-radius: 2px;
}

.post-full .content ul,
.post-full .content ol {
  margin: 8px 0 8px 20px;
  padding: 0;
}

.post-full .content li {
  margin-bottom: 3px;
  padding-left: 4px;
}

.post-full .content li:before {
  content: "» ";
  color: #2a5ea8;
  font-weight: bold;
}

.post-full .content code {
  background-color: #f0f0f0;
  padding: 1px 4px;
  border: 1px solid #ccc;
  font-family: 'Courier New', monospace;
  font-size: 10px;
}

.post-full .content pre {
  background-color: #f5f5f5;
  padding: 10px;
  border: 1px solid #ccc;
  border-left: 3px solid #2a5ea8;
  overflow-x: auto;
  margin: 10px 0;
  font-size: 10px;
}

.post-full .content pre code {
  background: none;
  padding: 0;
  border: none;
}

.post-full .content blockquote {
  border-left: 3px solid #2a5ea8;
  padding-left: 10px;
  margin: 12px 0;
  color: #666;
  font-style: italic;
  background: #f8f8f8;
  padding: 6px 10px;
  border-radius: 2px;
}

/* ===== Back link ===== */
.back-link {
  display: inline-block;
  margin-bottom: 10px;
  color: #666;
  font-size: 10px;
  font-weight: bold;
  text-decoration: none;
  padding: 3px 6px;
  background: #e8f0f8;
  border: 1px solid #b0c4de;
  border-radius: 2px;
}

.back-link:hover {
  color: #2a5ea8;
  background: #f0f5fa;
  text-decoration: none;
}

/* ===== Footer ===== */
footer {
  text-align: center;
  padding: 15px 0;
  margin-top: 15px;
  border-top: 2px solid #b0c4de;
  color: #777;
  font-size: 10px;
  background: white;
  border-radius: 3px;
  box-shadow: 1px 1px 3px rgba(0,0,0,0.1);
}

footer::before {
  content: "✦ ";
  color: #2a5ea8;
}

footer::after {
  content: " ✦";
  color: #2a5ea8;
}

/* ===== Responsive ===== */
@media (max-width: 600px) {
  header {
    padding: 10px;
  }
  .header-left h1 {
    font-size: 15px;
  }
  .post-full h1 {
    font-size: 14px;
  }
  nav {
    flex-wrap: wrap;
    gap: 8px;
  }
}
