/* ========================================
   POSTERS PAGE - BASE STYLES
   ======================================== */

/* Page Base */
body.posters-page {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  padding-top: 0;
  margin: 0;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* ========================================
   HERO SECTION
   ======================================== */

.poster-hero-compact {
  background: rgba(255, 255, 255, 0.95);
  padding: 1.5rem 0;
  margin-bottom: 1rem;
  backdrop-filter: blur(10px);
}

.poster-hero-compact .hero-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  text-align: center;
}

.poster-hero-compact .hero-title-compact {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-blue);
  margin: 0 0 0.5rem 0;
}

.poster-hero-compact .hero-subtitle {
  font-size: 1.1rem;
  color: var(--main-gray);
  margin-bottom: 1.5rem;
}

/* Statistics */
.poster-stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.poster-stats .stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.poster-stats .stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-blue);
}

.poster-stats .stat-label {
  font-size: 0.9rem;
  color: var(--main-gray);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ========================================
   MAIN CONTENT AREA
   ======================================== */

.posters-main {
  max-width: 1200px;
  margin: 0 auto;
  padding-bottom: 2rem;
}

.posters-display {
  padding: 1rem;
}

.display-container {
  min-height: 400px;
}

/* ========================================
   CONTROLS SECTION
   ======================================== */

.controls-compact {
  background: white;
  border-radius: 12px;
  padding: 1rem;
  margin-bottom: 1rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.controls-top {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  align-items: stretch;
}

.controls-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Search */
.search-container-flex {
  flex: 1;
  position: relative;
}

.search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--main-gray);
  pointer-events: none;
}

.search-input {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 2.5rem;
  border: 2px solid #e0e0e0;
  border-radius: 25px;
  font-size: 1rem;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.search-input:focus {
  outline: none;
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px rgba(43, 60, 98, 0.1);
}

.clear-search {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: var(--main-gray);
  cursor: pointer;
  padding: 0.25rem;
  border-radius: 50%;
  display: none;
}

.clear-search:hover {
  color: var(--orange);
}

/* Filters */
.filter-row {
  display: flex;
  gap: 0.5rem;
  flex: 1;
  flex-wrap: wrap;
}

.filter-select-compact {
  padding: 0.4rem 0.6rem;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  background: white;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-select-compact:hover,
.filter-select-compact:focus {
  border-color: var(--primary-blue);
  outline: none;
}

/* View Toggle */
.view-toggle-compact {
  display: flex;
  gap: 0.25rem;
  padding: 0.25rem;
  background: #f8f9fa;
  border-radius: 8px;
}

.view-btn-compact {
  padding: 0.4rem 0.8rem;
  background: transparent;
  border: none;
  border-radius: 6px;
  color: var(--main-gray);
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.85rem;
}

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

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

.view-btn-compact .material-icons {
  font-size: 1rem;
}

/* Results Info */
.results-info {
  text-align: center;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 8px;
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--main-gray);
}

.results-info span#visibleCount,
.results-info span#totalCount {
  font-weight: 600;
  color: var(--primary-blue);
}

/* ========================================
   VIEW CONTENT MANAGEMENT
   ======================================== */

.view-content {
  display: block;
}

.view-content.hidden {
  display: none !important;
}

.view-content.active {
  display: block !important;
}

/* ========================================
   GRID VIEW STYLES
   ======================================== */

#gridView {
  display: none;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
  padding: 1rem 0;
}

#gridView.active {
  display: grid !important;
}

/* Poster Card */
.poster-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  display: flex;
  flex-direction: column;
  animation: fadeInUp 0.5s ease-out;
}

.poster-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Poster Thumbnail */
.poster-thumbnail {
  width: 100%;
  aspect-ratio: 7 / 10;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.poster-number-display {
  font-size: 4rem;
  font-weight: 700;
  color: white;
  opacity: 0.9;
}

/* Poster Card Content */
.poster-card-content {
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.poster-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.poster-badges-left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.poster-id-badge {
  background-color: var(--primary-blue);
  color: white;
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
}

.poster-student-badge {
  background-color: var(--green, #4caf50);
  color: white;
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
}

.poster-number-badge {
  background: var(--primary-blue);
  color: white;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
}

.poster-language-badge {
  background: var(--light-blue);
  color: white;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  font-size: 0.7rem;
  text-transform: uppercase;
}

.poster-virtual-badge {
  background: #764ba2;
  color: white;
  padding: 0.26rem 0.5rem;
  border-radius: 3px;
  font-size: 0.69rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.poster-virtual-badge .material-icons {
  font-size: 0.75rem;
  vertical-align: middle;
}

/* Action buttons */
.session-action-buttons {
  display: flex;
  gap: 0.25rem;
  flex-shrink: 0;
}

.copy-id-btn,
.share-poster-btn,
.share-video-btn {
  background: none;
  border: none;
  color: var(--main-gray, #666);
  cursor: pointer;
  padding: 0.25rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.copy-id-btn:hover,
.share-poster-btn:hover,
.share-video-btn:hover {
  background-color: var(--lighter-gray, #f5f5f5);
  color: var(--primary-blue, #2b3c62);
}

.copy-id-btn .material-icons,
.share-poster-btn .material-icons,
.share-video-btn .material-icons {
  font-size: 1.1rem;
}

.poster-card-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--primary-blue);
  margin: 0 0 0.5rem 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.3;
}

.poster-card-authors {
  font-size: 0.85rem;
  color: var(--main-gray);
  margin-bottom: 0.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.poster-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 0.75rem;
  border-top: 1px solid #f0f0f0;
  font-size: 0.8rem;
  color: #999;
  margin-top: auto;
}

.poster-topic {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  overflow: hidden;
}

.poster-topic .material-icons {
  font-size: 0.9rem;
  flex-shrink: 0;
}

.poster-topic span:not(.material-icons) {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.poster-card-meta-row {
  margin: 0.5rem 0;
  display: flex;
  align-items: center;
}

.poster-card-meta-row .poster-topic,
.poster-card-meta-row .poster-country {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
  overflow: hidden;
}

.poster-card-meta-row .poster-topic .material-icons,
.poster-card-meta-row .poster-country .material-icons {
  font-size: 0.9rem;
  flex-shrink: 0;
}

.poster-card-meta-row .poster-topic span:not(.material-icons),
.poster-card-meta-row .poster-country span:not(.material-icons) {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
  min-width: 0;
}

.author-entry {
  margin-bottom: 0.5rem;
}

.author-affiliation {
  color: var(--main-gray, #666);
  font-weight: normal;
}

#listView {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

#listView.active {
  display: flex !important;
}

/* List Item */
.poster-list-item {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  display: flex;
  gap: 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  animation: fadeInUp 0.5s ease-out;
}

.poster-list-item:hover {
  transform: translateX(4px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.poster-list-number {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  font-size: 1.5rem;
  font-weight: 700;
  flex-shrink: 0;
}

.poster-list-content {
  flex: 1;
  min-width: 0;
}

.poster-list-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.5rem;
}

.poster-list-title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.poster-list-title {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--primary-blue);
  margin: 0;
  line-height: 1.3;
  flex: 1;
  min-width: 0;
}

.poster-list-badges {
  display: flex;
  gap: 0.25rem;
  flex-wrap: wrap;
  align-items: center;
  flex-shrink: 0;
}

.poster-list-authors {
  font-size: 0.9rem;
  color: var(--main-gray);
  margin-bottom: 0.5rem;
}

.poster-list-abstract {
  font-size: 0.85rem;
  color: #666;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.4;
  margin-bottom: 0.75rem;
}

.poster-list-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.8rem;
  color: #999;
}

.poster-list-meta-item {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.poster-list-meta-item .material-icons {
  font-size: 0.9rem;
  flex-shrink: 0;
}

/* ========================================
   MODAL STYLES
   ======================================== */

/* Base Modal */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  z-index: 2000;
  align-items: flex-start;
  justify-content: center;
  padding: 20px 10px;
  box-sizing: border-box;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.modal[style*="display: flex"] {
  display: flex !important;
}

.modal-content {
  background: white;
  border-radius: 12px;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  position: relative;
  min-height: 200px;
}

/* Poster Modal Specific */
.poster-modal-content {
  display: flex;
  flex-direction: column;
  border-radius: 12px;
  overflow: hidden;
}

/* Modal Header */
.modal-header {
  background: var(--primary-blue);
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  position: sticky;
  top: 0;
  z-index: 10;
}

.modal-title {
  margin: 0;
  font-size: 1.2rem;
  flex: 1;
  padding-right: 2rem;
  line-height: 1.3;
}

.modal-close {
  background: transparent;
  border: none;
  color: inherit;
  cursor: pointer;
  font-size: 1.5rem;
  padding: 0.25rem;
  border-radius: 50%;
  transition: all 0.2s ease;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.1);
}

.modal-body {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 1rem;
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/* PDF Section */
.modal-pdf-section {
  width: 100%;
  min-height: 400px;
  background: #f5f5f5;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

.pdf-preview-container {
  aspect-ratio: 7 / 10;
  background: #f0f0f0;
  border-radius: 8px;
  overflow: hidden;
  margin: 0 auto;
  max-width: 350px;
}

.pdf-preview {
  width: 100%;
  height: 100%;
  border: none;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

/* No PDF Message */
.no-pdf-message {
  text-align: center;
  color: #999;
  padding: 2rem;
}

.no-pdf-message .material-icons {
  font-size: 3rem;
  opacity: 0.5;
  margin-bottom: 1rem;
  display: block;
}

/* Fullscreen Button */
.view-fullscreen-btn {
  margin-top: 1rem;
  padding: 0.75rem 1.5rem;
  background: var(--primary-blue);
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
}

.view-fullscreen-btn:hover {
  background: #1e2d47;
  transform: translateY(-2px);
}

/* Modal Info Section */
.modal-info-section {
  width: 100%;
}

.modal-section {
  margin-bottom: 1rem;
}

.modal-section:last-child {
  margin-bottom: 0;
}

.modal-section h3 {
  color: var(--primary-blue);
  margin: 0 0 0.5rem 0;
  font-size: 0.95rem;
}

.modal-section p {
  color: var(--main-gray);
  line-height: 1.5;
  font-size: 0.9rem;
  margin: 0.25rem 0;
}

.modal-meta {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

/* Badges */
.badge {
  padding: 0.25rem 0.5rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  color: white;
  display: inline-block;
}

.modal-meta .badge:nth-child(1) {
  background: var(--light-blue);
}

.modal-meta .badge:nth-child(2) {
  background: var(--green);
}

.modal-meta .badge:nth-child(3) {
  background: var(--primary-blue);
}

.modal-actions-inline {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #eee;
}

.modal-copy-id-btn,
.modal-share-poster-btn {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.5rem 0.75rem;
  background: var(--light-gray);
  border: 1px solid #ddd;
  border-radius: 20px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.2s ease;
  text-decoration: none;
  color: var(--text-color);
}

.modal-copy-id-btn:hover,
.modal-share-poster-btn:hover {
  background: var(--primary-blue);
  color: white;
  border-color: var(--primary-blue);
}

.modal-copy-id-btn .material-icons,
.modal-share-poster-btn .material-icons {
  font-size: 1rem;
}

.modal-actions-inline .poster-virtual-badge {
  display: flex;
  align-items: center;
  padding: 0.5rem 0.75rem;
  background: var(--orange, #ff6b35);
  border-radius: 4px;
  font-size: 0.9rem;
}

.modal-video-section {
  border-top: 1px solid #eee;
}

.video-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.video-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  display: flex;
  flex-direction: column;
  animation: fadeInUp 0.5s ease-out;
}

.video-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.video-card .poster-card-content {
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Video list items */
.video-list-item {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  display: flex;
  gap: 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  animation: fadeInUp 0.5s ease-out;
}

.video-list-item:hover {
  transform: translateX(4px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.lightning-badge {
  background: linear-gradient(45deg, #ff6b35, #f7931e);
  display: flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0.36rem 0.5rem;
}

.lightning-badge .material-icons {
  font-size: 0.8rem;
  color: white;
}

.poster-list-badges .lightning-badge .material-icons,
.poster-badges-left .lightning-badge .material-icons {
  font-size: 0.8rem;
  vertical-align: middle;
}

.btn-primary,
.btn-secondary {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-primary {
  background: var(--primary-color, #2e8b57);
  color: white;
}

.btn-primary:hover {
  background: var(--primary-hover, #237b49);
  transform: translateY(-2px);
}

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

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

/* ========================================
   FULL SCREEN VIEWER
   ======================================== */

.full-poster-viewer {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  z-index: 3000;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.full-poster-viewer.active {
  display: flex;
  flex-direction: column;
}

/* Viewer Header */
.viewer-header {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.viewer-header h2 {
  color: white;
  margin: 0;
  font-size: 1.25rem;
}

.viewer-controls {
  display: flex;
  gap: 0.5rem;
}

.viewer-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 8px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.viewer-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

.viewer-btn.close-viewer {
  background: rgba(255, 0, 0, 0.2);
  border-color: rgba(255, 0, 0, 0.3);
}

.viewer-btn.close-viewer:hover {
  background: rgba(255, 0, 0, 0.3);
}

/* Viewer Body */
.viewer-body {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  position: relative;
  overflow: hidden;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.full-pdf-viewer {
  width: 100%;
  height: 100%;
  max-width: 1400px;
  border: none;
  background: white;
  border-radius: 8px;
  transform-origin: center center;
  transition: transform 0.3s ease;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.full-pdf-viewer.zoom-in {
  transform: scale(1.25);
}

.full-pdf-viewer.zoom-out {
  transform: scale(0.75);
}

/* ========================================
   ERROR & LOADING STATES
   ======================================== */

.no-results {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 2rem;
  text-align: center;
  color: var(--main-gray, #666);
}

.no-results .material-icons {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: var(--orange, #ff6b35);
}

.no-results h3 {
  margin-bottom: 1rem;
  color: var(--primary-blue, #2b3c62);
}

.no-results p {
  margin-bottom: 0.5rem;
  max-width: 400px;
}

.loading-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 3rem;
  color: var(--main-gray);
}

.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid #e0e0e0;
  border-top: 3px solid var(--primary-blue);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

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

/* ========================================
   UTILITY CLASSES
   ======================================== */

.hidden {
  display: none !important;
}

.active {
  display: block !important;
}

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

.poster-card:focus,
.poster-list-item:focus {
  outline: 3px solid var(--primary-blue);
  outline-offset: 2px;
}

.viewer-btn:focus,
.view-fullscreen-btn:focus {
  outline: 2px solid white;
  outline-offset: 2px;
}

/* ========================================
   CUSTOM SCROLLBARS
   ======================================== */

.modal-info-section::-webkit-scrollbar,
.modal-body::-webkit-scrollbar {
  width: 8px;
}

.modal-info-section::-webkit-scrollbar-track,
.modal-body::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

.modal-info-section::-webkit-scrollbar-thumb,
.modal-body::-webkit-scrollbar-thumb {
  background: var(--primary-blue);
  border-radius: 4px;
}

.modal-info-section::-webkit-scrollbar-thumb:hover,
.modal-body::-webkit-scrollbar-thumb:hover {
  background: #1e2d47;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

/* Desktop - 1200px+ */
@media (min-width: 1200px) {
  .pdf-preview-container {
    max-width: 350px;
  }
}

/* Tablet - 768px to 1024px */
@media (max-width: 1024px) {
  #gridView {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  }

  .modal-content {
    width: 95%;
  }

  .modal-body {
    padding: 1rem;
  }

  .pdf-preview-container {
    max-width: 300px;
  }
}

/* Mobile Landscape - 481px to 768px */
@media (max-width: 768px) {
  /* Hero adjustments */
  .poster-hero-compact .hero-title-compact {
    font-size: 1.5rem;
  }

  .poster-hero-compact .hero-subtitle {
    font-size: 1rem;
  }

  .poster-stats {
    gap: 1.5rem;
  }

  .poster-stats .stat-number {
    font-size: 1.5rem;
  }

  .poster-stats .stat-label {
    font-size: 0.8rem;
  }

  /* Grid adjustments */
  #gridView {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
  }

  /* List adjustments */
  .poster-list-item {
    flex-direction: column;
    text-align: center;
  }

  .poster-list-number {
    margin: 0 auto;
  }

  .poster-list-title-row {
    flex-direction: column;
    gap: 0.5rem;
  }

  .poster-list-badges {
    justify-content: center;
  }

  /* Controls adjustments */
  .controls-bottom {
    flex-direction: column;
    align-items: stretch;
  }

  .filter-row {
    flex-direction: column;
  }

  .filter-select-compact {
    width: 100%;
  }

  .view-toggle-compact {
    justify-content: center;
    width: 100%;
  }

  /* Card header adjustments */
  .poster-card-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .poster-badges-left {
    order: 1;
  }

  .session-action-buttons {
    order: 2;
    align-self: flex-end;
  }

  /* Modal adjustments */
  .modal {
    padding: 10px 5px;
    align-items: flex-start;
  }

  .modal-content {
    max-width: none;
    width: 100%;
    margin: 10px 0;
  }

  .modal-header {
    border-radius: 12px 12px 0 0;
  }

  .pdf-preview-container {
    max-width: 280px;
  }

  /* Viewer adjustments */
  .viewer-header h2 {
    font-size: 1rem;
  }

  .viewer-btn span:not(.material-icons) {
    display: none;
  }

  /* Video adjustments */
  .video-actions {
    flex-direction: column;
  }

  .poster-card-meta-row .poster-topic .material-icons,
  .poster-card-meta-row .poster-country .material-icons,
  .poster-list-meta-item .material-icons {
    font-size: 0.8rem;
  }

  .poster-card-meta-row .poster-topic,
  .poster-card-meta-row .poster-country {
    font-size: 0.8rem;
  }
}

/* Mobile Portrait - 480px and below */
@media (max-width: 480px) {
  /* Hero adjustments */
  .poster-hero-compact {
    padding: 1rem 0;
  }

  .poster-hero-compact .hero-title-compact {
    font-size: 1.25rem;
  }

  .poster-hero-compact .hero-subtitle {
    font-size: 0.9rem;
    margin-bottom: 1rem;
  }

  .poster-stats {
    gap: 1rem;
  }

  .poster-stats .stat-number {
    font-size: 1.25rem;
  }

  .poster-stats .stat-label {
    font-size: 0.7rem;
  }

  /* Grid adjustments */
  #gridView {
    grid-template-columns: 1fr;
    padding: 0.5rem;
    gap: 1rem;
  }

  .poster-card {
    border-radius: 8px;
  }

  .poster-thumbnail {
    height: 150px;
  }

  .poster-number-display {
    font-size: 3rem;
  }

  .poster-card-content {
    padding: 1rem;
  }

  .poster-card-title {
    font-size: 0.95rem;
  }

  .poster-card-authors {
    font-size: 0.8rem;
  }

  /* List adjustments */
  .poster-list-item {
    padding: 1rem;
  }

  .poster-list-number {
    width: 60px;
    height: 60px;
    font-size: 1.25rem;
  }

  .poster-list-title {
    font-size: 1rem;
  }

  .poster-list-authors {
    font-size: 0.85rem;
  }

  .poster-list-abstract {
    font-size: 0.8rem;
  }

  /* Modal adjustments */
  .modal {
    padding: 0;
    align-items: stretch;
  }

  .modal-content {
    width: 100%;
    height: 100vh;
    max-height: 100vh;
    border-radius: 0;
    margin: 0;
  }

  .modal-header {
    border-radius: 0;
  }

  .modal-section h3 {
    font-size: 0.9rem;
  }

  .modal-section p {
    font-size: 0.85rem;
  }

  .pdf-preview-container {
    max-width: 250px;
  }

  .view-fullscreen-btn {
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
  }

  /* Viewer adjustments */
  .viewer-controls {
    gap: 0.25rem;
  }

  .viewer-btn {
    padding: 0.4rem;
  }

  .full-pdf-viewer {
    border-radius: 0;
  }

  /* Controls adjustments */
  .controls-compact {
    padding: 0.75rem;
  }

  .search-input {
    font-size: 0.9rem;
    padding: 0.6rem 1rem 0.6rem 2.25rem;
  }

  .filter-select-compact {
    font-size: 0.8rem;
  }

  .view-btn-compact {
    font-size: 0.8rem;
    padding: 0.35rem 0.7rem;
  }

  /* Results info */
  .results-info {
    font-size: 0.85rem;
    padding: 0.5rem;
  }

  /* Badge adjustments */
  .poster-id-badge {
    font-size: 0.6rem;
    padding: 0.15rem 0.3rem;
  }

  .poster-card-meta-row .poster-topic .material-icons,
  .poster-card-meta-row .poster-country .material-icons,
  .poster-list-meta-item .material-icons {
    font-size: 0.75rem;
  }

  .poster-card-meta-row .poster-topic,
  .poster-card-meta-row .poster-country {
    font-size: 0.75rem;
  }

  /* Container adjustments */
  .container {
    padding: 0 0.5rem;
  }
}
