/* Achievements page specific styles */

/* Page Banner Height Override */
.page-banner {
  height: clamp(300px, 35vh, 500px) !important;
}

.page-banner.scrolled {
  height: clamp(150px, 20vh, 300px) !important;
}

/* Animation Classes - Members Page Style */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-on-scroll {
  animation: fadeInUp 0.6s ease-out forwards;
  opacity: 0;
  transform: translateY(30px);
}

.animate-on-scroll.animate-in {
  opacity: 1;
  transform: translateY(0);
}

/* Navigation dropdown styles */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-content {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: #fff;
  min-width: 280px;
  max-width: 400px;
  box-shadow: 0 4px 20px rgba(26,35,126,0.15);
  border-radius: 0;
  z-index: 1000;
  border: 1px solid #e0e6ed;
  overflow: hidden;
}

.nav-dropdown:hover .nav-dropdown-content {
  display: block;
}

.nav-achievement-filter {
  display: block;
  padding: 0.9rem 1.2rem;
  color: #1a237e;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: background-color 0.2s ease;
  border: none;
  width: 100%;
  text-align: left;
  white-space: normal;
  line-height: 1.4;
  word-wrap: break-word;
}

.nav-achievement-filter:hover {
  background: #f5f7fa;
  color: #3949ab;
}

.nav-achievement-filter.active {
  background: #1a237e;
  color: #fff;
}

.nav-project-filter {
  display: block;
  padding: 0.9rem 1.2rem;
  color: #1a237e;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: background-color 0.2s ease;
  border: none;
  width: 100%;
  text-align: left;
  white-space: normal;
  line-height: 1.4;
  word-wrap: break-word;
}

.nav-project-filter:hover {
  background: #f5f7fa;
  color: #3949ab;
}

.nav-project-filter.active {
  background: #1a237e;
  color: #fff;
}

.nav-member-filter {
  display: block;
  padding: 0.9rem 1.2rem;
  color: #1a237e;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: background-color 0.2s ease;
  border: none;
  width: 100%;
  text-align: left;
  white-space: normal;
  line-height: 1.4;
  word-wrap: break-word;
}

.nav-member-filter:hover {
  background: #f5f7fa;
  color: #3949ab;
}

.nav-member-filter.active {
  background: #1a237e;
  color: #fff;
}

/* Apply Libre Bodoni to navigation English text */
.nav-links li a .lang-en,
.nav-text.lang-en,
.nav-project-filter .lang-en,
.nav-achievement-filter .lang-en,
.nav-member-filter .lang-en {
  font-family: 'Libre Bodoni', serif;
  font-weight: 600;
  letter-spacing: 0.5px;
  font-size: 0.75rem;
}

.nav-project-filter .lang-en,
.nav-achievement-filter .lang-en,
.nav-member-filter .lang-en {
  font-weight: 500;
  letter-spacing: 0.3px;
  font-size: 0.8rem;
}

.achievement-list {
  margin: 1.5rem 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.achievement-list li {
  position: relative;
  margin: 0;
  background: #fff;
  border-radius: 0;
  padding: 1.5rem;
  box-shadow: 0 4px 16px rgba(26,35,126,0.08);
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  border: 1px solid #e0e6ed;
  transition: transform 0.2s, box-shadow 0.2s;
  min-height: 250px;
}

.achievement-list li:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(26,35,126,0.12);
}

.achievement-list li[data-type="publication"] {
  border-top: 4px solid #1a73e8;
}

.achievement-list li[data-type="conference"] {
  border-top: 4px solid #34a853;
}

.achievement-list li[data-type="patent"] {
  border-top: 4px solid #9c27b0;
}

.achievement-list li[data-type="award"] {
  border-top: 4px solid #fbbc04;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

/* Patent Preparation Notice Styles */
.patent-preparation-notice {
  background: linear-gradient(135deg, #f5f7fa 0%, #ffffff 100%);
  border: 2px solid #00d2be;
  border-radius: 12px;
  padding: 3rem 2rem;
  text-align: center;
  max-width: 600px;
  margin: 2rem auto;
  box-shadow: 0 8px 24px rgba(0, 210, 190, 0.12);
}

.patent-preparation-notice .notice-icon {
  color: #00d2be;
  margin-bottom: 1.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.patent-preparation-notice .notice-icon svg {
  width: 64px;
  height: 64px;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.05);
  }
}

.patent-preparation-notice .notice-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: #1a237e;
  margin: 0 0 1rem 0;
  line-height: 1.3;
}

.patent-preparation-notice .notice-description {
  font-size: 1.1rem;
  color: #5f6368;
  line-height: 1.6;
  margin: 0;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* Responsive styles for patent notice */
@media (max-width: 768px) {
  .patent-preparation-notice {
    padding: 2rem 1.5rem;
    margin: 1rem;
  }
  
  .patent-preparation-notice .notice-icon svg {
    width: 48px;
    height: 48px;
  }
  
  .patent-preparation-notice .notice-title {
    font-size: 1.4rem;
  }
  
  .patent-preparation-notice .notice-description {
    font-size: 1rem;
  }
}

/* Award Card with Image Layout - Right-side Image */
.achievement-list li.award-with-image {
  background: #fff;
  border: 1px solid #e0e6ed;
  border-top: 4px solid #fbbc04;
  box-shadow: 0 4px 16px rgba(26,35,126,0.08);
  transition: all 0.3s ease;
  display: grid;
  grid-template-columns: 1fr 140px;
  grid-template-rows: auto auto;
  gap: 0.8rem 1rem;
  padding: 1.5rem;
  min-height: auto;
  position: relative;
}

.achievement-list li.award-with-image:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(26,35,126,0.12);
}

/* Icon positioning for award with image */
.achievement-list li.award-with-image .achievement-icon {
  position: absolute;
  top: -1rem;
  right: 1rem;
}

/* Title spans BOTH columns, first row - full width for single line */
.achievement-list li.award-with-image .achievement-title {
  grid-column: 1 / 3;
  grid-row: 1;
  color: #1a237e;
  margin-bottom: 0;
  padding-right: 3.5rem; /* Space for icon */
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* Meta spans first column, second row */
.achievement-list li.award-with-image .achievement-meta {
  grid-column: 1;
  grid-row: 2;
  color: #5c6bc0;
  font-size: 0.92rem;
  margin-bottom: 0;
}

/* Image in right side - starts from row 2 (below title) */
.achievement-list li.award-with-image .award-image-preview {
  grid-column: 2;
  grid-row: 2;
  align-self: start;
}

/* Summary hidden for award cards with images */
.achievement-list li.award-with-image .achievement-summary {
  display: none;
}

/* Award certificate image preview - Increased height by 50px */
.award-image-preview {
  position: relative;
  width: 140px;
  height: 190px;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: all 0.3s ease;
}

.award-image-preview:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.award-image-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.award-image-preview:hover img {
  transform: scale(1.1);
}

.award-image-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85), transparent);
  padding: 0.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  color: white;
  font-size: 0.7rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.award-image-preview:hover .award-image-overlay {
  opacity: 1;
}

.award-image-overlay svg {
  width: 16px;
  height: 16px;
}

/* Image Modal for Award Certificates */
.award-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 10000;
  justify-content: center;
  align-items: center;
  cursor: zoom-out;
  animation: fadeIn 0.3s ease;
}

.award-modal.active {
  display: flex;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.award-modal-content {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
  animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.award-modal-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: white;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  z-index: 10001;
  transition: color 0.3s ease;
}

.award-modal-close:hover {
  color: #ffd700;
}

/* Responsive award card */
@media (max-width: 768px) {
  /* Stack image on top for mobile */
  .achievement-list li.award-with-image {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto auto;
    gap: 1rem;
  }
  
  .achievement-list li.award-with-image .award-image-preview {
    grid-column: 1;
    grid-row: 1;
    width: 120px;
    height: 120px;
    margin: 0 auto;
  }
  
  .achievement-list li.award-with-image .achievement-icon {
    grid-column: 1;
    grid-row: 1;
  }
  
  .achievement-list li.award-with-image .achievement-title {
    grid-column: 1;
    grid-row: 2;
    padding-right: 3rem;
  }
  
  .achievement-list li.award-with-image .achievement-meta {
    grid-column: 1;
    grid-row: 3;
  }
  
  .achievement-list li.award-with-image .achievement-summary {
    grid-column: 1;
    grid-row: 4;
  }
  
  .award-image-overlay {
    font-size: 0.65rem;
    padding: 0.4rem;
  }
  
  .award-image-overlay svg {
    width: 14px;
    height: 14px;
  }
  
  .award-modal-content {
    max-width: 95%;
    max-height: 95%;
  }
  
  .award-modal-close {
    top: 10px;
    right: 15px;
    font-size: 30px;
  }
}

.achievement-icon {
  position: absolute;
  top: -1rem;
  right: 1rem;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.2rem;
}

li[data-type="publication"] .achievement-icon {
  background: #1a73e8;
}

li[data-type="conference"] .achievement-icon {
  background: #34a853;
}

li[data-type="patent"] .achievement-icon {
  background: #9c27b0;
}

li[data-type="award"] .achievement-icon {
  background: #fbbc04;
}

/* Hide icons when filtered (only show in 'All' tab) */
body.filtered .achievement-icon {
  display: none;
}

.achievement-title {
  font-size: 1.13rem;
  font-weight: bold;
  color: #1a237e;
  margin-bottom: 0.5rem;
}

.achievement-meta {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 0.8rem;
}

.meta-row {
  font-size: 0.95rem;
  color: #3949ab;
  font-weight: 500;
  line-height: 1.4;
}

.achievement-summary {
  font-size: 0.97rem;
  color: #555;
  margin-bottom: auto;
  line-height: 1.5;
}

.achievement-authors {
  font-size: 0.95rem;
  color: #3949ab;
  margin-bottom: 0.03rem;
  font-weight: 500;
}

.achievement-year {
  font-size: 0.92rem;
  color: #5c6bc0;
  font-weight: 600;
  margin-bottom: 0.03rem;
}

.achievement-journal {
  font-size: 0.93rem;
  color: #1a73e8;
  font-weight: 500;
  font-style: italic;
  margin-bottom: 0.05rem;
}

/* Achievement footer with badge and link */
.achievement-footer {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.8rem;
  flex-wrap: wrap;
}

/* Indexing badge styles */
.indexing-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 0.35rem 0.75rem;
  border-radius: 4px;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  transition: all 0.2s ease;
}

.indexing-badge:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

/* SCI badge - vibrant red/gold gradient */
.indexing-sci {
  background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
  color: #ffffff;
  border: 1px solid #b91c1c;
}

/* Scopus badge - vibrant orange gradient */
.indexing-scopus {
  background: linear-gradient(135deg, #ea580c 0%, #f97316 100%);
  color: #ffffff;
  border: 1px solid #c2410c;
}

/* KCI badge - blue gradient */
.indexing-kci {
  background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
  color: #ffffff;
  border: 1px solid #1d4ed8;
}

.achievement-link {
  display: inline-block;
  align-self: flex-start;
  margin-top: 0;
  font-size: 0.8rem;
  font-weight: 400;
  color: #5c6bc0;
  background: rgba(26, 35, 126, 0.05);
  border: 1px solid rgba(26, 35, 126, 0.15);
  border-radius: 4px;
  padding: 0.35rem 0.85rem;
  text-decoration: none;
  transition: all 0.2s ease;
}

.achievement-link:hover {
  background: rgba(26, 35, 126, 0.1);
  border-color: rgba(26, 35, 126, 0.3);
  color: #3949ab;
}

.achievements-filter-container {
  display: flex;
  gap: 1rem;
  margin: 2rem 0;
  flex-wrap: wrap;
  justify-content: center;
}

.achievement-filter {
  /* 투명 배경 + 언더바 스타일 */
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  
  color: #64748b;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.75rem 1.25rem;
  cursor: pointer;
  
  /* Smooth transitions */
  transition: all 0.3s ease;
  white-space: nowrap;
  
  /* Text styling */
  letter-spacing: 0.5px;
  position: relative;
  
  /* Flexbox for count badge */
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.achievement-filter .filter-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  padding: 0 6px;
  background: rgba(0, 210, 190, 0.2);
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #00D2BE;
  line-height: 1;
  border: 1px solid rgba(0, 210, 190, 0.3);
}

.achievement-filter:hover .filter-count {
  background: rgba(0, 210, 190, 0.25);
  border-color: rgba(0, 210, 190, 0.5);
  color: #00B5A4;
}

.achievement-filter.active .filter-count {
  background: #00D2BE;
  color: #ffffff;
  border-color: #00D2BE;
}

.achievement-filter::before {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, #00D2BE, #00AAA0);
  transition: width 0.3s ease;
}

.achievement-filter:hover::before {
  width: 100%;
}

.achievement-filter:hover {
  color: #00D2BE;
  background: rgba(0, 210, 190, 0.05);
}

.achievement-filter.active {
  color: #00D2BE;
  font-weight: 700;
  border-bottom-color: #00D2BE;
  background: rgba(0, 210, 190, 0.08);
}

.achievement-filter.active::before {
  width: 100%;
}

/* Responsive styles */
@media (max-width: 768px) {
  .achievements-filter-container {
    justify-content: flex-start;
    gap: 0.5rem;
    margin: 1.5rem 0.5rem;
  }
  
  .achievement-filter {
    flex: 1;
    min-width: 0;
    text-align: center;
    padding: 0.7rem 0.3rem;
    font-size: 0.8rem;
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
    min-height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  /* 영어 모드일 때 2줄 레이아웃 */
  .achievements-filter-container.lang-en-mode {
    flex-wrap: wrap;
  }
  
  .achievements-filter-container.lang-en-mode .achievement-filter {
    white-space: normal;
    line-height: 1.2;
    padding: 0.6rem 0.4rem;
  }
  
  /* 첫 줄: All 버튼만 */
  .achievements-filter-container.lang-en-mode .achievement-filter:nth-child(1) {
    flex: 0 0 100%;
  }
  
  /* 둘째 줄: Publications, Conferences, Patents, Awards (4개 균등 배치) */
  .achievements-filter-container.lang-en-mode .achievement-filter:nth-child(2),
  .achievements-filter-container.lang-en-mode .achievement-filter:nth-child(3),
  .achievements-filter-container.lang-en-mode .achievement-filter:nth-child(4),
  .achievements-filter-container.lang-en-mode .achievement-filter:nth-child(5) {
    flex: 0 0 calc(25% - 0.375rem);
  }
}

@media (max-width: 400px) {
  .achievements-filter-container {
    gap: 0.4rem;
    margin: 1.2rem 0.5rem;
  }
  
  .achievement-filter {
    flex: 1;
    min-width: 0;
    padding: 0.6rem 0.2rem;
    font-size: 0.7rem;
    min-height: 2.2rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

@media (max-width: 360px) {
  .achievements-filter-container {
    gap: 0.3rem;
  }
  
  .achievement-filter {
    padding: 0.55rem 0.15rem;
    font-size: 0.65rem;
    min-height: 2rem;
  }
}

@media (max-width: 320px) {
  .achievements-filter-container {
    gap: 0.25rem;
  }
  
  .achievement-filter {
    padding: 0.5rem 0.1rem;
    font-size: 0.6rem;
    min-height: 1.8rem;
  }
}

/* Responsive Filter Count Badge */
@media screen and (max-width: 428px) {
  .achievement-filter .filter-count {
    min-width: 20px;
    height: 20px;
    font-size: 0.7rem;
    padding: 0 4px;
  }
}

/* Pagination Styles */
.pagination-container {
  margin-top: 3rem;
  margin-bottom: 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.pagination-buttons {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.pagination-btn {
  padding: 0.6rem 1rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: #1a237e;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(26, 35, 126, 0.15);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  min-width: 45px;
}

.pagination-btn:hover:not(:disabled) {
  background: rgba(26, 35, 126, 0.1);
  border-color: rgba(26, 35, 126, 0.3);
  transform: translateY(-2px);
}

.pagination-btn.active {
  background: #1a237e;
  color: #fff;
  border-color: #1a237e;
}

.pagination-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.pagination-btn.page-number {
  min-width: 40px;
  padding: 0.6rem 0.8rem;
}

.pagination-ellipsis {
  color: #5c6bc0;
  padding: 0 0.3rem;
  font-weight: 500;
}

/* Mobile pagination styles */
@media (max-width: 768px) {
  .pagination-container {
    margin-top: 2rem;
    margin-bottom: 1.5rem;
  }
  
  .pagination-buttons {
    gap: 0.3rem;
  }
  
  .pagination-btn {
    padding: 0.5rem 0.8rem;
    font-size: 0.85rem;
    min-width: 40px;
  }
  
  .pagination-btn.page-number {
    min-width: 35px;
    padding: 0.5rem 0.6rem;
  }
}

