/* ============================================================
   PARAMOUNT ECOLOGICAL RESOURCES - COMPREHENSIVE STYLESHEET
   Includes: Reset, Base Typography, Header, Navigation, Search,
   Journal Metrics, Editorial Board Hover Effects, Article Cards,
   Buttons, Footer, Cookie Banner, and Responsive Utilities
   ============================================================ */

/* -------------------- GLOBAL RESET & BASE -------------------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: #ffffff;
  color: #1f2937;
  line-height: 1.5;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* -------------------- TYPOGRAPHY -------------------- */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  letter-spacing: -0.02em;
}

h1 {
  font-size: 1.875rem;
}

@media (min-width: 768px) {
  h1 {
    font-size: 2.25rem;
  }
}

.text-gradient {
  background: linear-gradient(135deg, #065f46 0%, #047857 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* -------------------- HEADER STYLES -------------------- */
header {
  background-color: #000000;
  border-bottom: 2px solid #ef4444;
}

header .container {
  max-width: 1280px;
  margin: 0 auto;
}

/* Logo hover effect */
header img {
  transition: transform 0.3s ease;
}

header img:hover {
  transform: scale(1.05);
}

/* Account link */
header .flex.items-center a {
  transition: color 0.3s ease;
}

header .flex.items-center a:hover {
  color: #ef4444;
}

/* -------------------- NAVIGATION BAR -------------------- */
.nav-animation {
  animation: slideDown 0.5s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.nav-link {
  position: relative;
  transition: color 0.3s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #ef4444;
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

.nav-link:hover {
  color: #ef4444;
}


/* -------------------- MAIN CONTENT (HERO) -------------------- */
.bg-teal-700 {
  background-color: #0f766e;
}

main .container {
  max-width: 1280px;
  margin: 0 auto;
}

main img {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

main img:hover {
  transform: scale(1.02);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2);
}

/* Buttons in main */
main .rounded-full {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* -------------------- BUTTON STYLES (UNIFIED) -------------------- */
button, .btn, .read-all-btn, .google-scholar-btn {
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

button:active, .btn:active {
  transform: scale(0.98);
}

/* Section buttons (Aims, Editorial, etc) */
section.bg-gray-100 button {
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* -------------------- JOURNAL METRICS CARDS -------------------- */
.group.bg-white\/70 {
  backdrop-filter: blur(12px);
  transition: all 0.3s ease;
}

.group:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 25px -12px rgba(0, 0, 0, 0.15);
}

.group h3 {
  transition: transform 0.2s ease;
}

/* -------------------- EDITORIAL BOARD CARDS (HOVER REVEAL) -------------------- */
.editorial-card {
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.2, 0.9, 0.4, 1.1);
  cursor: pointer;
}

.card-glow {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(16, 185, 129, 0.08), transparent);
  transition: left 0.6s ease;
}

.editorial-card:hover .card-glow {
  left: 100%;
}

.editorial-card .editor-hover-details {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: all 0.4s ease;
}

.editorial-card:hover .editor-hover-details {
  max-height: 200px;
  opacity: 1;
  margin-top: 1rem;
}

.editorial-card .editor-base-info {
  transition: transform 0.3s ease;
}

.editorial-card:hover .editor-base-info {
  transform: translateY(-4px);
}

/* Google Scholar button inside editorial cards */
.google-scholar-btn {
  position: relative;
  overflow: hidden;
}

.google-scholar-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.google-scholar-btn:hover::before {
  left: 100%;
}

/* -------------------- LATEST ARTICLES SECTION -------------------- */
.latest-articles-section {
  background: linear-gradient(180deg, #f9fafb 0%, #ffffff 100%);
}

.articles-container {
  max-width: 1280px;
  margin: 0 auto;
}

.section-divider {
  width: 4rem;
  height: 0.25rem;
  background-color: #10b981;
  border-radius: 9999px;
  margin: 0.5rem auto 0;
}

/* Journal Cards */
.journal-card {
  transition: all 0.3s cubic-bezier(0.2, 0.9, 0.4, 1.1);
}

.journal-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 30px -12px rgba(0, 0, 0, 0.2);
}

.card-inner {
  background: white;
  border-radius: 1.5rem;
}

.article-badge i {
  font-size: 0.75rem;
}

.open-access-icon {
  transition: transform 0.2s ease;
}

.journal-card:hover .open-access-icon {
  transform: scale(1.1);
}

.read-more-link i {
  transition: transform 0.2s ease;
}

.read-more-link:hover i {
  transform: translateX(4px);
}

/* Article authors */
.article-authors {
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

/* Read All Articles Button */
.read-all-btn {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.read-all-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2);
}

/* -------------------- SUBMIT + ARCHIVES CARDS -------------------- */
#submit, #archives {
  transition: all 0.3s ease;
}

#submit:hover, #archives:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 30px -12px rgba(0, 0, 0, 0.2);
}

#archives .group {
  transition: all 0.3s ease;
}

#archives .group:hover {
  transform: translateY(-4px);
}

/* -------------------- FOOTER STYLES -------------------- */
footer {
  background-color: #000000;
}

footer a {
  transition: color 0.3s ease, transform 0.2s ease;
}

footer a:hover {
  transform: translateY(-2px);
}

footer .fab, footer .fas {
  transition: transform 0.2s ease;
}

footer a:hover .fab,
footer a:hover .fas {
  transform: scale(1.15);
}

/* Footer border animations */
footer .border-t {
  animation: borderGlow 1s ease-out;
}

@keyframes borderGlow {
  from {
    opacity: 0;
    width: 0;
  }
  to {
    opacity: 1;
    width: 100%;
  }
}

/* -------------------- COOKIE BANNER -------------------- */
#cookie-consent {
  backdrop-filter: blur(8px);
  background-color: rgba(17, 24, 39, 0.95);
  animation: slideUp 0.4s ease-out;
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}

#cookie-consent button {
  transition: all 0.2s ease;
}

#cookie-consent button:hover {
  filter: brightness(1.1);
  transform: scale(1.02);
}

/* -------------------- CUSTOM SCROLLBAR -------------------- */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background: #10b981;
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: #047857;
}

/* -------------------- RESPONSIVE UTILITIES -------------------- */
@media (max-width: 640px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .articles-grid {
    gap: 1.5rem;
  }

  .journal-card h3 {
    font-size: 1.25rem;
  }
}

@media (min-width: 641px) and (max-width: 1024px) {
  .editorial-card:hover .editor-hover-details {
    max-height: 250px;
  }
}

/* Focus styles for accessibility */
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2px solid #10b981;
  outline-offset: 2px;
  border-radius: 4px;
}

/* Print styles */
@media print {
  header, nav, footer, #cookie-consent, .search-bar, .read-all-wrapper {
    display: none;
  }

  body {
    background: white;
    color: black;
  }

  .journal-card {
    break-inside: avoid;
    box-shadow: none;
    border: 1px solid #ddd;
  }
}

/* -------------------- LOADING SKELETON (Optional for JS) -------------------- */
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
}

@keyframes loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* -------------------- HELPER CLASSES -------------------- */
.text-shadow-sm {
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.transition-smooth {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Remove default button styles where needed */
button {
  background: none;
  border: none;
}

    /* Additional inline styles for any missing Tailwind behaviors */
    .container {
      max-width: 1280px;
    }
    
    .nav-link {
      transition: color 0.3s ease;
    }
    .nav-link:hover {
      color: #ef4444;
    }
    .section-divider {
      width: 4rem;
      height: 0.25rem;
      background-color: #10b981;
      border-radius: 9999px;
      margin: 0.5rem auto;
    }

    /* ===== ENHANCED READ MORE HOVER EFFECT ===== */
    .read-more-link {
      position: relative;
      transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
      padding: 0.25rem 0;
    }
    
    .read-more-link i {
      transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .read-more-link:hover {
      color: #047857 !important;
      gap: 0.75rem;
    }
    
    .read-more-link:hover i {
      transform: translateX(6px);
    }
    
    /* Underline animation for Read More */
    .read-more-link::after {
      content: '';
      position: absolute;
      bottom: 0;
      left: 0;
      width: 0;
      height: 2px;
      background: linear-gradient(90deg, #059669, #10b981);
      transition: width 0.3s ease;
    }
    
    .read-more-link:hover::after {
      width: 100%;
    }

    /* Journal card hover enhancements */
    .journal-card {
      transition: all 0.3s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    }
    
    .journal-card:hover {
      transform: translateY(-8px);
      box-shadow: 0 25px 30px -12px rgba(0, 0, 0, 0.2);
    }
    
    .journal-card:hover .open-access-icon {
      transform: scale(1.1);
    }
    
    /* Editorial card hover details */
    .editorial-card .editor-hover-details {
      max-height: 0;
      opacity: 0;
      overflow: hidden;
      transition: all 0.4s ease;
    }
    
    .editorial-card:hover .editor-hover-details {
      max-height: 200px;
      opacity: 1;
      margin-top: 1rem;
    }
    
    .editorial-card .editor-base-info {
      transition: transform 0.3s ease;
    }
    
    .editorial-card:hover .editor-base-info {
      transform: translateY(-4px);
    }
    
    .card-glow {
      position: absolute;
      top: 0;
      left: -100%;
      width: 100%;
      height: 100%;
      background: linear-gradient(90deg, transparent, rgba(16, 185, 129, 0.08), transparent);
      transition: left 0.6s ease;
    }
    
    .editorial-card:hover .card-glow {
      left: 100%;
    }
  