/* ========================== */
/*    STYLES FOR MAIN PAGE    */
/* ========================== */

:root {
  --my-blue: #007acc;
  --my-darkblue: #1f5189;
  --my-yellow: #ffc107;
  --my-green: #3e8b03;
  --my-darkgreen: #1b5e20;
  --my-red: #cd202c;
  --my-darkred: #981821;
  --my-black: #121212;

  /* Liquid Glass Variables */
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(255, 255, 255, 0.3);
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  --glass-shadow-hover: 0 12px 48px rgba(0, 0, 0, 0.15);
  --glass-blur: blur(20px);
  --glass-blur-heavy: blur(40px);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI",
    "Roboto", sans-serif;
  background: linear-gradient(135deg, #e3f2fd 0%, #f8f9fa 50%, #fff3e0 100%);
  background-attachment: fixed;
  min-height: 100vh;
}

/* ====================== */
/*         HEADER         */
/* ====================== */
.header {
  color: white;
  text-align: center;
  padding: 1rem 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  margin-bottom: 0.5rem;
}

.header-flex {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.header-left h1 {
  margin: 0;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.header-left p {
  margin: 0;
  font-size: 1rem;
  opacity: 0.9;
}

.header h1 {
  font-size: 2rem;
  font-weight: 700;
  margin: 0;
}

.header p {
  margin: 0.5rem 0 0 0;
  opacity: 0.95;
  font-size: 1rem;
}

.header-logo {
  height: 200px;
  width: auto;
  object-fit: contain;
}

/* ============================ */
/*       WORKFLOW DIAGRAM       */
/* ============================ */
.workflow-diagram {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  flex-wrap: wrap;
  width: 100%;
  margin-top: 0rem;
}

.workflow-step {
  background: var(--my-darkblue);
  padding: 0.4rem 0.8rem;
  border-radius: 8px;
  font-weight: 600;
  white-space: nowrap;
}

.workflow-step-filter {
  padding: 0.4rem 0.8rem;
  border-radius: 8px;
  font-weight: 600;
  -webkit-text-fill-color: rgb(4, 0, 0) !important;
  white-space: nowrap;
}

.workflow-step-2 {
  background: var(--my-green) !important;
  padding: 0.4rem 0.8rem;
  border-radius: 8px;
  font-weight: 600;
  white-space: nowrap;
}

.workflow-arrow {
  font-weight: 700;
}

/* ====================== */
/*      MODULE CARDS      */
/* ====================== */

.module-cards {
  padding: 1rem 0 2rem;
}

.module-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  padding: 3rem;
  margin-bottom: 0.5rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.module-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.15);
}

.module-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.module-number {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--my-blue), var(--my-darkblue));
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  flex-shrink: 0;
}

.module-card h3 {
  color: var(--my-darkblue);
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0;
}

.module-card .subtitle {
  color: #6c757d;
  font-size: 1rem;
  margin-bottom: 1.5rem;
  font-style: italic;
}

/* ============================== */
/*          PubMed2XLSX           */
/* ============================== */
.pubmed-parser-card {
  border: 1px solid var(--my-darkblue);
}

.pubmed-parser-card .module-number {
  background: linear-gradient(135deg, var(--my-blue), var(--my-darkblue));
}

.pubmed-parser-card h3 {
  color: var(--my-darkblue);
}

.pubmed-parser-features {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.pubmed-parser-features li {
  padding: 0.3rem 0;
  color: #495057;
  display: flex;
  align-items: start;
  gap: 0.5rem;
}

.pubmed-parser-features li i {
  color: var(--my-blue);
  margin-top: 0.2rem;
}

.btn-pubmed-parser {
  background: linear-gradient(135deg, var(--my-blue), var(--my-darkblue));
  color: white;
  border: none;
  padding: 0.875rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 50px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
  margin-top: auto;
}

.btn-pubmed-parser:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(31, 81, 137, 0.4);
  color: white;
}

.btn-pubmed-parser i {
  font-size: 1.2rem;
}

/* ============================== */
/*          XLSX2Pubmed           */
/* ============================== */
.xlsx-converter-card {
  border: 1px solid var(--my-green);
  background-color: rgba(255, 255, 255, 0.1);
}

.xlsx-converter-card .module-number {
  background: linear-gradient(135deg, var(--my-green), var(--my-darkgreen));
}

.xlsx-converter-card h3 {
  color: var(--my-darkgreen);
}

.xlsx-converter-features {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.xlsx-converter-features li {
  padding: 0.3rem 0;
  color: #495057;
  display: flex;
  align-items: start;
  gap: 0.5rem;
}

.xlsx-converter-features li i {
  color: var(--my-green);
  margin-top: 0.2rem;
}

.btn-xlsx-converter {
  background: linear-gradient(135deg, var(--my-green), var(--my-darkgreen));
  color: white;
  border: none;
  padding: 0.875rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 50px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
  margin-top: auto;
}

.btn-xlsx-converter:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(31, 81, 137, 0.4);
  color: white;
}

.btn-xlsx-converter i {
  font-size: 1.2rem;
}

/* ====================== */
/*     FORMAT BADGES      */
/* ====================== */
.format-badges {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin: 0.5rem 0;
  align-items: center;
}

.format-badge {
  padding: 0.4rem 0.8rem;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}

.badge-input {
  background: #fef3c7;
  color: #92400e;
}

.badge-output {
  background: #d1fae5;
  color: #065f46;
}

/* ====================== */
/*        FOOTER          */
/* ====================== */
.custom-footer {
  bottom: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  background: linear-gradient(135deg, var(--my-darkblue), var(--my-darkgreen));
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  line-height: 1.5;
  padding: 5px 0px 5px 0px;
  border-radius: 0;
  box-shadow: var(--glass-shadow), inset 0 1px 2px rgba(255, 255, 255, 0.4);
  border-top: 1px solid var(--glass-border);
  z-index: 100;
}

.custom-footer .footer-credits {
  font-size: 0.75rem;
  color: #bfd9fa;
  font-style: normal;
  padding: 0;
  font-weight: 100;
}

/* ====================== */
/*      RESPONSIVE        */
/* ====================== */

@media (max-width: 768px) {
  .header-logo {
    height: 45px;
  }

  .hero h2 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .workflow-arrow {
    transform: rotate(90deg);
  }

  .module-card {
    margin-bottom: 2rem;
  }
}
