/* =====================================================
   PUBLICATIONS PAGE - BRIGHT TEAL BACKGROUND
   Only Title, Reduced Height, Teal Background
   ===================================================== */

/* Minimal Publications Hero - BRIGHT TEAL BACKGROUND */
.publications-minimal-hero {
  background: #1fb8cd !important;
  padding: 40px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.publications-main-title {
  font-size: 2.8rem;
  font-weight: 800;
  color: #ffffff !important;
  margin: 0;
  letter-spacing: -0.5px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* =====================================================
   CONFERENCES PAGE - SAME BRIGHT TEAL BACKGROUND
   ===================================================== */

/* Conferences Hero - IDENTICAL TO PUBLICATIONS */
.conferences-minimal-hero {
  background: #1fb8cd !important;
  padding: 40px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.conferences-main-title {
  font-size: 2.8rem;
  font-weight: 800;
  color: #ffffff !important;
  margin: 0;
  letter-spacing: -0.5px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.conferences-subtitle {
  color: #6c757d;
  font-size: 1.1rem;
  text-align: center;
  margin: 30px 0;
  font-style: italic;
}

/* =====================================================
   RESEARCH AREAS PAGE - SAME BRIGHT TEAL BACKGROUND
   FORCE OVERRIDE WITH !important
   ===================================================== */

/* Research Areas Hero - IDENTICAL TO PUBLICATIONS - FORCE OVERRIDE */
.research-minimal-hero,
#research .research-minimal-hero,
section#research .research-minimal-hero {
  background: #1fb8cd !important;
  background-color: #1fb8cd !important;
  padding: 40px 0 !important;
  text-align: center !important;
  position: relative;
  overflow: hidden;
  width: 100% !important;
}

.research-main-title,
#research .research-main-title,
section#research .research-main-title {
  font-size: 2.8rem !important;
  font-weight: 800 !important;
  color: #ffffff !important;
  margin: 0 !important;
  letter-spacing: -0.5px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.research-subtitle {
  color: #6c757d;
  font-size: 1.1rem;
  text-align: center;
  margin: 30px 0;
  font-style: italic;
}

/* Override any page-header styles that might conflict */
#research .page-header,
section#research .page-header {
  background: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

#research .page-header h1,
section#research .page-header h1 {
  display: none !important;
}

#research .page-header p,
section#research .page-header p {
  display: none !important;
}

/* =====================================================
   BLOG PAGE - SAME BRIGHT TEAL BACKGROUND
   ===================================================== */

/* Blog Hero - IDENTICAL TO CONFERENCES */
.blog-minimal-hero,
#blog .blog-minimal-hero,
section#blog .blog-minimal-hero {
  background: #1fb8cd !important;
  background-color: #1fb8cd !important;
  padding: 40px 0 !important;
  text-align: center !important;
  position: relative;
  overflow: hidden;
  width: 100% !important;
}

.blog-main-title,
#blog .blog-main-title,
section#blog .blog-main-title {
  font-size: 2.8rem !important;
  font-weight: 800 !important;
  color: #ffffff !important;
  margin: 0 !important;
  letter-spacing: -0.5px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.blog-subtitle {
  color: #6c757d;
  font-size: 1.1rem;
  text-align: center;
  margin: 30px 0;
  font-style: italic;
}

/* Override any page-header styles for Blog */
#blog .page-header,
section#blog .page-header {
  display: none !important;
}

/* =====================================================
   ABOUT PAGE - SAME BRIGHT TEAL BACKGROUND
   ===================================================== */

/* About Hero - IDENTICAL TO CONFERENCES */
.about-minimal-hero,
#about .about-minimal-hero,
section#about .about-minimal-hero {
  background: #1fb8cd !important;
  background-color: #1fb8cd !important;
  padding: 40px 0 !important;
  text-align: center !important;
  position: relative;
  overflow: hidden;
  width: 100% !important;
}

.about-main-title,
#about .about-main-title,
section#about .about-main-title {
  font-size: 2.8rem !important;
  font-weight: 800 !important;
  color: #ffffff !important;
  margin: 0 !important;
  letter-spacing: -0.5px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.about-subtitle {
  color: #6c757d;
  font-size: 1.1rem;
  text-align: center;
  margin: 30px 0;
  font-style: italic;
}

/* Override any page-header styles for About */
#about .page-header,
section#about .page-header {
  display: none !important;
}

/* =====================================================
   CONTACT PAGE - SAME BRIGHT TEAL BACKGROUND
   ===================================================== */

/* Contact Hero - IDENTICAL TO CONFERENCES */
.contact-minimal-hero,
#contact .contact-minimal-hero,
section#contact .contact-minimal-hero {
  background: #1fb8cd !important;
  background-color: #1fb8cd !important;
  padding: 40px 0 !important;
  text-align: center !important;
  position: relative;
  overflow: hidden;
  width: 100% !important;
}

.contact-main-title,
#contact .contact-main-title,
section#contact .contact-main-title {
  font-size: 2.8rem !important;
  font-weight: 800 !important;
  color: #ffffff !important;
  margin: 0 !important;
  letter-spacing: -0.5px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.contact-subtitle {
  color: #6c757d;
  font-size: 1.1rem;
  text-align: center;
  margin: 30px 0;
  font-style: italic;
}

/* Override any page-header styles for Contact */
#contact .page-header,
section#contact .page-header {
  display: none !important;
}

/* =====================================================
   MODERN PUBLICATIONS SEARCH INTERFACE
   ===================================================== */

.publications-search-interface {
  background: linear-gradient(135deg, #ffffff, #f8f9fa);
  border-radius: 20px;
  padding: 30px;
  margin: 40px auto;
  max-width: 1100px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.search-filters-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  margin-bottom: 20px;
}

/* Modern Select Dropdowns */
.modern-select {
  background: #f8f9fa;
  border: 2px solid #e9ecef;
  border-radius: 12px;
  padding: 14px 20px;
  font-size: 1rem;
  font-weight: 500;
  color: #495057;
  min-width: 160px;
  cursor: pointer;
  transition: all 0.3s ease;
  appearance: none;
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" fill="%23666" viewBox="0 0 20 20"><path fill-rule="evenodd" d="M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z" clip-rule="evenodd"/></svg>');
  background-repeat: no-repeat;
  background-position: right 15px center;
  background-size: 18px;
  padding-right: 50px;
}

.modern-select:hover {
  border-color: #1fb8cd;
  background-color: #ffffff;
}

.modern-select:focus {
  outline: none;
  border-color: #1fb8cd;
  background-color: #ffffff;
  box-shadow: 0 0 0 3px rgba(31, 184, 205, 0.1);
}

/* Modern Search Input */
.search-input-container {
  position: relative;
  flex: 1;
  min-width: 300px;
}

.search-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: #6c757d;
  font-size: 1.1rem;
  pointer-events: none;
}

.modern-search-input {
  width: 100%;
  background: #f8f9fa;
  border: 2px solid #e9ecef;
  border-radius: 12px;
  padding: 14px 20px 14px 50px;
  font-size: 1rem;
  font-weight: 400;
  color: #495057;
  transition: all 0.3s ease;
}

.modern-search-input::placeholder {
  color: #6c757d;
  opacity: 1;
  font-style: italic;
}

.modern-search-input:hover {
  border-color: #1fb8cd;
  background-color: #ffffff;
}

.modern-search-input:focus {
  outline: none;
  border-color: #1fb8cd;
  background-color: #ffffff;
  box-shadow: 0 0 0 3px rgba(31, 184, 205, 0.1);
}

.modern-search-input:focus + .search-icon {
  color: #1fb8cd;
}

/* View Controls */
.view-controls {
  display: flex;
  background: #f8f9fa;
  border-radius: 12px;
  padding: 4px;
  border: 2px solid #e9ecef;
}

.view-btn {
  background: transparent;
  border: none;
  border-radius: 8px;
  padding: 12px 20px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #6c757d;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.view-btn:hover {
  color: #1fb8cd;
  background: rgba(31, 184, 205, 0.1);
}

.view-btn.active {
  background: #1fb8cd;
  color: white;
  box-shadow: 0 2px 8px rgba(31, 184, 205, 0.3);
}

.view-btn i {
  font-size: 1rem;
}

/* =====================================================
   MODERN PUBLICATION CARDS
   ===================================================== */

.pubs__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.pub-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  border: 1px solid rgba(0, 0, 0, 0.05);
  position: relative;
}

.pub-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #1fb8cd, #00ff88, #238C8C);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.pub-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
}

.pub-card:hover::before {
  opacity: 1;
}

.pub-card__top {
  padding: 25px 25px 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.pub-card__badge {
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.pub-card__badge--article {
  background: linear-gradient(45deg, #e3f2fd, #bbdefb);
  color: #1565c0;
}

.pub-card__badge--conference {
  background: linear-gradient(45deg, #f3e5f5, #e1bee7);
  color: #7b1fa2;
}

.pub-card__main {
  padding: 20px 25px 25px;
}

.pub-card__title {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.4;
  color: #212529;
  margin-bottom: 15px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pub-card__authors {
  margin-bottom: 12px;
}

.author {
  display: inline-block;
  padding: 4px 10px;
  background: #f8f9fa;
  border-radius: 12px;
  font-size: 0.85rem;
  margin-right: 8px;
  margin-bottom: 5px;
  color: #495057;
  border: 1px solid #e9ecef;
}

.author.primary-author {
  background: linear-gradient(45deg, #1fb8cd, #238C8C);
  color: white;
  font-weight: 600;
}

.pub-card__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 15px;
  font-size: 0.9rem;
  color: #6c757d;
}

.journal {
  color: #1fb8cd;
  font-weight: 600;
  text-decoration: none;
}

.journal:hover {
  text-decoration: underline;
}

.dot {
  color: #dee2e6;
  font-weight: bold;
}

.pub-card__excerpt {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #495057;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 20px;
}

.pub-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 15px;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.btn--sm {
  padding: 8px 16px;
  font-size: 0.85rem;
  border-radius: 20px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn--primary {
  background: linear-gradient(45deg, #1fb8cd, #238C8C);
  color: white;
  border: none;
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(31, 184, 205, 0.3);
}

.btn--secondary {
  background: #f8f9fa;
  color: #495057;
  border: 1px solid #e9ecef;
}

.btn--secondary:hover {
  background: #e9ecef;
  transform: translateY(-2px);
}

/* =====================================================
   TOAST NOTIFICATIONS
   ===================================================== */

.pubs__toast {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: linear-gradient(45deg, #1fb8cd, #238C8C);
  color: white;
  padding: 15px 25px;
  border-radius: 50px;
  font-weight: 600;
  box-shadow: 0 8px 25px rgba(31, 184, 205, 0.3);
  transform: translateY(100px) scale(0.8);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  z-index: 1000;
}

.pubs__toast.show {
  transform: translateY(0) scale(1);
  opacity: 1;
}

/* =====================================================
   EMPTY STATE
   ===================================================== */

.pubs__empty {
  text-align: center;
  padding: 80px 20px;
  background: white;
  border-radius: 16px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
}

.pubs__empty h3 {
  font-size: 1.5rem;
  color: #495057;
  margin-bottom: 15px;
}

.pubs__empty p {
  color: #6c757d;
  font-size: 1rem;
}

/* =====================================================
   LIST VIEW STYLING
   ===================================================== */

.pubs__grid.is-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.pubs__grid.is-list .pub-card {
  display: flex;
  align-items: center;
  padding: 25px;
}

.pubs__grid.is-list .pub-card__main {
  flex: 1;
  padding: 0 25px;
}

.pubs__grid.is-list .pub-card__title {
  font-size: 1.2rem;
  -webkit-line-clamp: 2;
}

.pubs__grid.is-list .pub-card__excerpt {
  -webkit-line-clamp: 2;
}

/* =====================================================
   IMPROVED MOBILE RESPONSIVE DESIGN
   BETTER TEXT SIZING AND READABILITY
   ===================================================== */

@media (max-width: 768px) {
  .publications-main-title,
  .conferences-main-title,
  .research-main-title,
  .blog-main-title,
  .about-main-title,
  .contact-main-title {
    font-size: 2.2rem !important;
  }
  
  .publications-search-interface {
    margin: 30px 20px;
    padding: 25px 20px;
  }
  
  .search-filters-row {
    flex-direction: column;
    align-items: stretch;
    gap: 15px;
  }
  
  .modern-select,
  .search-input-container {
    min-width: unset;
    width: 100%;
  }
  
  .view-controls {
    justify-content: center;
  }
  
  .pubs__grid {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 20px;
  }
  
  /* IMPROVED MOBILE CARD STYLING */
  .pub-card {
    margin: 0 10px;
    border-radius: 12px;
  }
  
  .pub-card__top {
    padding: 20px 20px 0;
    flex-direction: column;
    align-items: stretch;
    gap: 15px;
  }
  
  .pub-card__main {
    padding: 15px 20px 20px;
  }
  
  /* LARGER TEXT FOR MOBILE */
  .pub-card__title {
    font-size: 1.4rem !important;
    line-height: 1.3 !important;
    font-weight: 700 !important;
    margin-bottom: 16px !important;
    -webkit-line-clamp: 4;
  }
  
  .author {
    font-size: 0.95rem !important;
    padding: 6px 12px !important;
    margin-right: 6px;
    margin-bottom: 8px;
  }
  
  .pub-card__meta {
    font-size: 1rem !important;
    margin-bottom: 16px !important;
    gap: 10px;
  }
  
  .journal {
    font-size: 1rem !important;
  }
  
  .pub-card__excerpt {
    font-size: 1.05rem !important;
    line-height: 1.5 !important;
    margin-bottom: 20px !important;
    -webkit-line-clamp: 4;
  }
  
  /* LARGER BADGES FOR MOBILE */
  .pub-card__badge {
    font-size: 0.9rem !important;
    padding: 8px 16px !important;
  }
  
  /* IMPROVED METRICS DISPLAY */
  .pub-card__metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
  }
  
  .pub-chip {
    font-size: 0.9rem !important;
    padding: 6px 10px;
    background: #f8f9fa;
    border-radius: 20px;
    border: 1px solid #e9ecef;
  }
  
  .pub-chip .icon {
    font-size: 1rem;
    margin-right: 4px;
  }
  
  .pub-chip .num {
    font-weight: 600;
  }
  
  /* LARGER BUTTONS FOR MOBILE */
  .pub-actions {
    padding-top: 20px;
    gap: 12px;
  }
  
  .btn--sm {
    padding: 12px 18px !important;
    font-size: 0.95rem !important;
    border-radius: 25px;
    font-weight: 600;
  }
  
  .btn--sm i {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .publications-minimal-hero,
  .conferences-minimal-hero,
  .research-minimal-hero,
  .blog-minimal-hero,
  .about-minimal-hero,
  .contact-minimal-hero {
    padding: 30px 0 !important;
  }
  
  .publications-main-title,
  .conferences-main-title,
  .research-main-title,
  .blog-main-title,
  .about-main-title,
  .contact-main-title {
    font-size: 1.8rem !important;
  }
  
  .publications-search-interface {
    margin: 15px 10px;
    padding: 20px 15px;
    border-radius: 15px;
  }
  
  .modern-select,
  .modern-search-input {
    padding: 14px 16px;
    font-size: 1rem;
  }
  
  .modern-search-input {
    padding-left: 45px;
  }
  
  .search-icon {
    left: 15px;
    font-size: 1.2rem;
  }
  
  .view-btn {
    padding: 12px 16px;
    font-size: 0.95rem;
  }
  
  /* EVEN LARGER TEXT FOR SMALL MOBILE */
  .pub-card {
    margin: 0 5px;
    border-radius: 10px;
  }
  
  .pub-card__top {
    padding: 18px 18px 0;
  }
  
  .pub-card__main {
    padding: 12px 18px 18px;
  }
  
  .pub-card__title {
    font-size: 1.5rem !important;
    line-height: 1.25 !important;
    margin-bottom: 18px !important;
  }
  
  .author {
    font-size: 1rem !important;
    padding: 8px 14px !important;
  }
  
  .pub-card__meta {
    font-size: 1.1rem !important;
    margin-bottom: 18px !important;
  }
  
  .pub-card__excerpt {
    font-size: 1.1rem !important;
    line-height: 1.5 !important;
  }
  
  .pub-card__badge {
    font-size: 1rem !important;
    padding: 10px 18px !important;
  }
  
  .pub-chip {
    font-size: 1rem !important;
    padding: 8px 12px;
  }
  
  .btn--sm {
    padding: 14px 20px !important;
    font-size: 1rem !important;
  }
}

/* =====================================================
   EXTRA MOBILE IMPROVEMENTS FOR VERY SMALL SCREENS
   ===================================================== */

@media (max-width: 360px) {
  .pub-card__title {
    font-size: 1.6rem !important;
    line-height: 1.2 !important;
  }
  
  .pub-card__excerpt {
    font-size: 1.15rem !important;
  }
  
  .author {
    font-size: 1.05rem !important;
  }
  
  .pub-card__meta {
    font-size: 1.15rem !important;
  }
}

/* =====================================================
   DARK MODE SUPPORT
   ===================================================== */

[data-color-scheme="dark"] .publications-search-interface {
  background: linear-gradient(135deg, #2d2d2d, #3d3d3d);
  border-color: #444;
}

[data-color-scheme="dark"] .modern-select,
[data-color-scheme="dark"] .modern-search-input {
  background: #3d3d3d;
  color: #ffffff;
  border-color: #555;
}

[data-color-scheme="dark"] .modern-search-input::placeholder {
  color: #aaa;
}

[data-color-scheme="dark"] .search-icon {
  color: #aaa;
}

[data-color-scheme="dark"] .view-controls {
  background: #3d3d3d;
  border-color: #555;
}

[data-color-scheme="dark"] .view-btn {
  color: #cccccc;
}

[data-color-scheme="dark"] .view-btn:hover {
  background: rgba(31, 184, 205, 0.2);
  color: #1fb8cd;
}

[data-color-scheme="dark"] .view-btn.active {
  background: #1fb8cd;
  color: white;
}

[data-color-scheme="dark"] .pub-card {
  background: #2d2d2d;
  color: #ffffff;
  border-color: #444;
}

[data-color-scheme="dark"] .pub-card__title {
  color: #ffffff;
}

[data-color-scheme="dark"] .author {
  background: #3d3d3d;
  color: #ffffff;
  border-color: #555;
}

[data-color-scheme="dark"] .pub-card__excerpt,
[data-color-scheme="dark"] .pub-card__meta {
  color: #cccccc;
}

/* =====================================================
   ANIMATION ENHANCEMENTS
   ===================================================== */

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.5s ease forwards;
}

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

.pub-card:nth-child(odd) {
  animation-delay: 0.1s;
}

.pub-card:nth-child(even) {
  animation-delay: 0.2s;
}

/* =====================================================
   ACCESSIBILITY ENHANCEMENTS
   ===================================================== */

.pub-card:focus-within {
  outline: 3px solid #1fb8cd;
  outline-offset: 2px;
}

.btn--sm:focus,
.view-btn:focus,
.modern-select:focus,
.modern-search-input:focus {
  outline: 2px solid #1fb8cd;
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .pub-card,
  .view-btn,
  .modern-select,
  .modern-search-input {
    animation: none;
    transition: none;
  }
  
  .pub-card:hover {
    transform: none;
  }
}

/* =====================================================
   PRINT STYLES
   ===================================================== */

@media print {
  .publications-search-interface,
  .pub-actions,
  .pubs__toast {
    display: none;
  }
  
  .pub-card {
    break-inside: avoid;
    box-shadow: none;
    border: 1px solid #ddd;
    margin-bottom: 20px;
  }
  
  .pub-card__excerpt {
    -webkit-line-clamp: unset;
    overflow: visible;
  }
}