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

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: #006a71;
  min-height: 100vh;
  color: #333;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 10px 0;
}

.navbar-back {
  background: #006a71 !important;
  border: none;
}

.container-fluid {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: flex-start;
  align-items: center;
}

.nav-link {
  text-decoration: none;
  padding: 0;
}

.portfolio-icon {
  width: 30px;
  height: 30px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.portfolio-icon:hover {
  transform: scale(1.1);
}

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

.header {
  text-align: center;
  margin-bottom: 40px;
  background: rgba(255, 255, 255, 0.95);
  padding: 30px;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
}

.header h1 {
  font-size: 2.5em;
  color: #2c3e50;
  margin-bottom: 10px;
  background: linear-gradient(45deg, #006a71, #004e53);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.header p {
  font-size: 1.2em;
  color: #666;
  margin-bottom: 20px;
}

.metadata {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
  margin-top: 20px;
}

.metadata-item {
  background: linear-gradient(45deg, #f8f9fa, #e9ecef);
  padding: 10px 15px;
  border-radius: 10px;
  text-align: center;
  border-left: 4px solid #48a4a7;
}

/* Tab System - Pure CSS */
.tab-container {
  margin-bottom: 30px;
}

.tab-input {
  display: none;
}

.nav-tabs {
  display: flex;
  justify-content: center;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 15px;
  padding: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
}

.nav-tab {
  padding: 15px 25px;
  margin: 0 5px;
  background: transparent;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-size: 1em;
  font-weight: 600;
  color: #666;
  text-decoration: none;
  display: inline-block;
}

.nav-tab:hover {
  background: rgba(72, 164, 167, 0.1);
}

/* Active tab styling */
.tab-input:checked + .nav-tab {
  background: linear-gradient(45deg, #006a71, #004e53);
  color: white;
  box-shadow: 0 5px 15px rgba(72, 164, 167, 0.4);
}

.content-section {
  display: none;
  background: rgba(255, 255, 255, 0.98);
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  margin-top: 40px;
  backdrop-filter: blur(10px);
}

/* Show content based on checked radio */
#tab-overview:checked ~ .tab-content #overview,
#tab-entities:checked ~ .tab-content #entities,
#tab-codifica:checked ~ .tab-content #codifica {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.entities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.entity-card {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 15px;
  padding: 20px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  border-left: 5px solid;
}

.entity-card:hover {
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.person-card {
  border-left-color: #bbd82b;
}

.place-card {
  border-left-color: #60dbdf;
}

.org-card {
  border-left-color: #48a4a7;
}

.concept-card {
  border-left-color: #d4f531;
}

.entity-title {
  font-size: 1.3em;
  font-weight: bold;
  margin-bottom: 10px;
  color: #2c3e50;
}

.entity-subtitle {
  font-size: 0.9em;
  color: #7f8c8d;
  margin-bottom: 15px;
  font-style: italic;
}

.entity-description {
  line-height: 1.6;
  color: #555;
}

.entity-link {
  display: inline-block;
  margin-top: 10px;
  padding: 5px 15px;
  background: linear-gradient(45deg, #006a71, #004e53);
  color: white;
  text-decoration: none;
  border-radius: 20px;
  font-size: 0.8em;
}

.entity-link:hover {
  box-shadow: 0 5px 15px rgba(72, 164, 167, 0.3);
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin: 20px 0;
}

.tag {
  padding: 8px 16px;
  border-radius: 25px;
  font-size: 0.9em;
  font-weight: 500;
  cursor: pointer;
  border: 2px solid;
}

.tag:hover {
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.tag-person {
  background: #f2fee7;
  color: #5a6b00;
  border-color: #bbd82b;
}

.tag-place {
  background: #e8fafe;
  color: #0a5b5e;
  border-color: #60dbdf;
}

.tag-org {
  background: #e3f4f5;
  color: #1a4b4d;
  border-color: #48a4a7;
}

.tag-concept {
  background: #fdfee6;
  color: #6b7300;
  border-color: #d4f531;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin: 20px 0;
}

.stat-card {
  text-align: center;
  padding: 25px;
  background: linear-gradient(135deg, #006a71 0%, #004e53 100%);
  color: white;
  border-radius: 15px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.stat-number {
  font-size: 2.5em;
  font-weight: bold;
  margin-bottom: 10px;
}

.stat-label {
  font-size: 1em;
  opacity: 0.9;
}

.codifica-container {
  text-align: center;
  padding: 40px;
}

.codifica-link {
  display: inline-block;
  padding: 20px 40px;
  background: linear-gradient(45deg, #006a71, #004e53);
  color: white;
  text-decoration: none;
  border-radius: 15px;
  font-size: 1.2em;
  font-weight: bold;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.codifica-link:hover {
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

/* Responsive design */
@media (max-width: 768px) {
  .container {
    margin-top: 50px;
  }

  .container-fluid {
    padding: 0 10px;
  }

  .portfolio-icon {
    width: 35px;
    height: 35px;
  }

  .nav-tabs {
    flex-direction: column;
    gap: 5px;
  }

  .nav-tab {
    margin: 0;
    text-align: center;
  }

  .header h1 {
    font-size: 2em;
  }

  .entities-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 576px) {
  .portfolio-icon {
    width: 30px;
    height: 30px;
  }

  .container-fluid {
    padding: 0 10px;
  }
}
