/* TaMADOR Website Styles */

:root {
  --primary-blue: #2c5282;
  --dark-blue: #1a365d;
  --light-blue: #ebf4ff;
  --accent-gold: #d69e2e;
  --accent-red: #c53030;
  --accent-green: #38a169;
  --text-dark: #2d3748;
  --text-light: #718096;
  --background: #ffffff;
  --background-alt: #f7fafc;
  --border-color: #e2e8f0;
}

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

body {
  font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-dark);
  background-color: var(--background);
}

/* Layout */
.wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 30px;
}

/* Header */
.site-header {
  background-color: var(--background);
  border-bottom: 1px solid var(--border-color);
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-title {
  text-decoration: none;
}

.site-logo {
  height: 120px;
  width: auto;
}

.site-nav {
  display: flex;
  align-items: center;
}

.site-nav .trigger {
  display: flex;
  gap: 5px;
}

.page-link {
  color: var(--text-dark);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 15px;
  transition: background-color 0.2s, color 0.2s;
}

.page-link:hover {
  background-color: var(--light-blue);
  color: var(--primary-blue);
}

.member-link {
  background-color: var(--primary-blue);
  color: white !important;
}

.member-link:hover {
  background-color: var(--dark-blue);
  color: white !important;
}

/* Mobile nav */
.nav-trigger {
  display: none;
}

.menu-icon {
  display: none;
  cursor: pointer;
}

/* Main content */
.page-content {
  padding: 40px 0 60px;
  min-height: calc(100vh - 300px);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  color: var(--dark-blue);
  margin-bottom: 0.5em;
  line-height: 1.3;
}

h1 { font-size: 2.2em; }
h2 { font-size: 1.7em; margin-top: 1.5em; }
h3 { font-size: 1.3em; margin-top: 1.2em; }

p {
  margin-bottom: 1em;
}

a {
  color: var(--primary-blue);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Homepage */
.hero {
  text-align: center;
  padding: 40px 0 50px;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 40px;
}

.hero h1 {
  font-size: 1.8em;
  margin-bottom: 0.8em;
}

.hero p {
  font-size: 1.1em;
  color: var(--text-light);
  max-width: 800px;
  margin: 0 auto 1.5em;
}

.hero-actions {
  display: flex;
  gap: 15px;
  justify-content: center;
  margin-top: 25px;
}

.btn-primary, .btn-secondary {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
}

.btn-primary {
  background-color: var(--primary-blue);
  color: white;
}

.btn-primary:hover {
  background-color: var(--dark-blue);
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(44, 82, 130, 0.3);
}

.btn-secondary {
  background-color: var(--background-alt);
  color: var(--primary-blue);
  border: 2px solid var(--primary-blue);
}

.btn-secondary:hover {
  background-color: var(--light-blue);
  text-decoration: none;
}

/* Partners/Logos Section */
.partners-section {
  background: var(--background-alt);
  border-radius: 8px;
  padding: 40px;
  margin-bottom: 50px;
  text-align: center;
}

.partners-section h2 {
  margin-top: 0;
  margin-bottom: 30px;
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  align-items: center;
}

.partner-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100px;
}

.partner-logo img {
  max-width: 100%;
  max-height: 80px;
  width: auto;
  height: auto;
  filter: grayscale(100%);
  opacity: 0.7;
  transition: all 0.3s;
}

.partner-logo img:hover {
  filter: grayscale(0%);
  opacity: 1;
}

.logo-placeholder {
  font-size: 0.9em;
  color: var(--text-light);
  text-align: center;
  padding: 20px;
  border: 2px dashed var(--border-color);
  border-radius: 4px;
  background: white;
}

/* Research Groups Grid */
.groups-section {
  margin-bottom: 50px;
}

.groups-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 25px;
  margin-top: 25px;
}

.group-card {
  background: var(--background-alt);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 25px;
  transition: box-shadow 0.2s;
}

.group-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.group-card h3 {
  margin-top: 0;
  color: var(--primary-blue);
}

.group-card h3 a {
  text-decoration: none;
}

.group-card p {
  margin-bottom: 0;
  color: var(--text-light);
  font-size: 0.95em;
}

/* Section headers */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid var(--primary-blue);
  padding-bottom: 10px;
  margin-bottom: 20px;
}

.section-header h2 {
  margin: 0;
}

.section-header a {
  font-size: 0.9em;
}

/* News items */
.news-section {
  margin-top: 50px;
}

.news-list {
  list-style: none;
}

.news-item {
  padding: 20px 0;
  border-bottom: 1px solid var(--border-color);
}

.news-item:last-child {
  border-bottom: none;
}

.news-item h3 {
  margin-top: 0;
  margin-bottom: 5px;
}

.news-item h3 a {
  color: var(--dark-blue);
}

.news-date {
  font-size: 0.85em;
  color: var(--text-light);
  margin-bottom: 8px;
}

.news-excerpt {
  color: var(--text-dark);
}

/* RFA Links */
.rfa-links {
  background: var(--light-blue);
  border-left: 4px solid var(--primary-blue);
  padding: 20px 25px;
  margin: 30px 0;
  border-radius: 0 8px 8px 0;
}

.rfa-links h3 {
  margin-top: 0;
  color: var(--dark-blue);
}

.rfa-links ul {
  margin: 0;
  padding-left: 20px;
}

.rfa-links li {
  margin-bottom: 8px;
}

/* Publications page */
.publication-list {
  list-style: none;
}

.publication-item {
  padding: 20px 0;
  border-bottom: 1px solid var(--border-color);
}

.publication-item:last-child {
  border-bottom: none;
}

.publication-title {
  font-weight: 600;
  color: var(--dark-blue);
  margin-bottom: 5px;
}

.publication-authors {
  font-size: 0.95em;
  color: var(--text-light);
  margin-bottom: 5px;
}

.publication-journal {
  font-style: italic;
  font-size: 0.95em;
}

.publication-links {
  margin-top: 8px;
}

.publication-links a {
  display: inline-block;
  font-size: 0.85em;
  background: var(--light-blue);
  padding: 3px 10px;
  border-radius: 4px;
  margin-right: 8px;
}

/* Publication metrics chart */
img[alt="Publications per Year"] {
  max-width: 600px;
  width: 100%;
  height: auto;
  display: block;
  margin: 20px 0;
}

/* Datasets page */
.dataset-card {
  background: var(--background-alt);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 25px;
  margin-bottom: 20px;
}

.dataset-card h3 {
  margin-top: 0;
}

/* Meetings page */
.meeting-item {
  padding: 25px 0;
  border-bottom: 1px solid var(--border-color);
}

.meeting-item h3 {
  margin-top: 0;
}

.meeting-date {
  display: inline-block;
  background: var(--primary-blue);
  color: white;
  padding: 3px 12px;
  border-radius: 4px;
  font-size: 0.85em;
  margin-bottom: 10px;
}

.meeting-location {
  color: var(--text-light);
  font-size: 0.95em;
}

/* Footer */
.site-footer {
  background: var(--dark-blue);
  color: #e2e8f0;
  padding: 40px 0 20px;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 30px;
}

.footer-col h4 {
  color: white;
  margin-bottom: 15px;
  font-size: 1em;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 8px;
  font-size: 0.9em;
}

.footer-col a {
  color: #cbd5e0;
}

.footer-col a:hover {
  color: white;
}

.footer-col p {
  font-size: 0.9em;
  color: #a0aec0;
}

.footer-bottom {
  border-top: 1px solid #4a5568;
  padding-top: 20px;
  text-align: center;
  font-size: 0.85em;
  color: #a0aec0;
}

/* Post styles */
.post-header {
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
}

.post-title {
  margin-bottom: 10px;
}

.post-meta {
  color: var(--text-light);
}

.post-content {
  margin-bottom: 40px;
}

.back-link {
  display: inline-block;
  padding: 10px 20px;
  background: var(--light-blue);
  border-radius: 4px;
}

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
}

th, td {
  padding: 12px 15px;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

th {
  background: var(--background-alt);
  font-weight: 600;
  color: var(--dark-blue);
}

/* Responsive */
@media (max-width: 900px) {
  .groups-grid {
    grid-template-columns: 1fr;
  }

  .partners-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

@media (max-width: 700px) {
  .wrapper {
    padding: 0 20px;
  }

  .site-logo {
    height: 70px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .btn-primary, .btn-secondary {
    width: 100%;
    text-align: center;
  }

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

  .partners-section {
    padding: 25px 20px;
  }
  
  .nav-trigger:checked ~ .trigger {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  }

  .menu-icon {
    display: block;
    padding: 10px;
  }
  
  .site-nav {
    position: relative;
  }
  
  .site-nav .trigger {
    display: none;
  }
  
  .page-link {
    padding: 10px 15px;
  }
  
  h1 { font-size: 1.7em; }
  h2 { font-size: 1.4em; }
}
