/*--------------------------------------------------------------
# Presentations Page Styles
--------------------------------------------------------------*/

/* Hero Section */
#presentations-hero {
  width: 100%;
  min-height: 50vh;
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  background-size: cover;
  position: relative;
  padding: 120px 0 80px 0;
}

#presentations-hero h1 {
  margin: 0 0 10px 0;
  font-size: 48px;
  font-weight: 700;
  line-height: 56px;
  color: #fff;
}

#presentations-hero h2 {
  color: #3399cc;
  margin-bottom: 20px;
  font-size: 24px;
  font-weight: 400;
}

#presentations-hero .hero-description {
  color: rgba(255, 255, 255, 0.8);
  font-size: 16px;
  line-height: 1.8;
  max-width: 800px;
}

@media (max-width: 768px) {
  #presentations-hero h1 {
    font-size: 32px;
    line-height: 40px;
  }
  #presentations-hero h2 {
    font-size: 20px;
  }
}

/* Presentations Section */
.presentations {
  padding: 60px 0;
}

.presentations .section-title {
  margin-bottom: 40px;
}

/* Filter Tabs */
.presentation-filters {
  padding: 0;
  margin: 0 auto 30px auto;
  list-style: none;
  text-align: center;
  border-radius: 50px;
  padding: 2px 15px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.presentation-filters li {
  cursor: pointer;
  display: inline-block;
  padding: 8px 20px 10px 20px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  color: #444444;
  margin-bottom: 5px;
  transition: all 0.3s ease-in-out;
  border-radius: 50px;
  border: 2px solid transparent;
}

.presentation-filters li:hover,
.presentation-filters li.filter-active {
  color: #3399cc;
  border-color: #3399cc;
}

.presentation-filters li.filter-active {
  background-color: #3399cc;
  color: #fff;
}

/* Search Box */
.search-box {
  position: relative;
  margin-bottom: 30px;
}

.search-box input {
  padding: 12px 45px 12px 20px;
  font-size: 15px;
  border: 2px solid #e1e1e1;
  border-radius: 50px;
  transition: all 0.3s;
}

.search-box input:focus {
  border-color: #3399cc;
  box-shadow: 0 0 0 0.2rem rgba(51, 153, 204, 0.25);
}

.search-box .search-icon {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: #999;
  font-size: 18px;
}

/* Stats Section */
.stats-row {
  margin: 40px 0;
  padding: 30px 0;
  border-top: 1px solid #e1e1e1;
  border-bottom: 1px solid #e1e1e1;
}

.stats-item {
  text-align: center;
  padding: 15px 0;
}

.stats-item i {
  font-size: 36px;
  color: #3399cc;
  display: block;
  margin-bottom: 10px;
}

.stats-item span {
  font-size: 32px;
  font-weight: 700;
  color: #444444;
  display: block;
  margin-bottom: 5px;
}

.stats-item p {
  margin: 0;
  color: #777;
  font-size: 14px;
  font-weight: 500;
}

/* Presentations Container */
.presentations-container {
  margin-top: 30px;
}

/* Presentation Card */
.presentation-card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
  margin-bottom: 30px;
  transition: all 0.3s ease-in-out;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.presentation-card:hover {
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.15);
  transform: translateY(-5px);
}

.presentation-card .card-thumbnail {
  position: relative;
  overflow: hidden;
  height: 220px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.presentation-card .card-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.presentation-card:hover .card-thumbnail img {
  transform: scale(1.1);
}

.presentation-card .card-thumbnail .play-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 70px;
  height: 70px;
  background: rgba(51, 153, 204, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s;
  opacity: 0;
}

.presentation-card:hover .card-thumbnail .play-overlay {
  opacity: 1;
}

.presentation-card .card-thumbnail .play-overlay i {
  color: #fff;
  font-size: 30px;
  margin-left: 5px;
}

.presentation-card .card-thumbnail .date-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

/* Card Content */
.card-content {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.card-content .card-title {
  font-size: 20px;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 10px;
  line-height: 1.4;
  min-height: 56px;
}

.card-content .card-title a {
  color: #2c3e50;
  text-decoration: none;
  transition: color 0.3s;
}

.card-content .card-title a:hover {
  color: #3399cc;
}

.card-content .conference-name {
  color: #3399cc;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 5px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.card-content .conference-name i {
  font-size: 16px;
}

.card-content .location {
  color: #777;
  font-size: 13px;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.card-content .speakers {
  color: #555;
  font-size: 14px;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.card-content .speakers i {
  color: #3399cc;
}

.card-content .description {
  color: #666;
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 15px;
  flex-grow: 1;
}

/* Tags */
.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 15px;
}

.card-tags .tag {
  background: #e8f4f8;
  color: #3399cc;
  padding: 4px 12px;
  border-radius: 15px;
  font-size: 12px;
  font-weight: 500;
  transition: all 0.3s;
}

.card-tags .tag:hover {
  background: #3399cc;
  color: #fff;
  cursor: pointer;
}

/* Card Actions */
.card-actions {
  display: flex;
  gap: 10px;
  margin-top: auto;
  padding-top: 15px;
  border-top: 1px solid #e1e1e1;
}

.card-actions .btn {
  flex: 1;
  padding: 8px 15px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 25px;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  text-decoration: none;
}

.card-actions .btn-primary {
  background: #3399cc;
  border: 2px solid #3399cc;
  color: #fff;
}

.card-actions .btn-primary:hover {
  background: #2980b9;
  border-color: #2980b9;
  transform: translateY(-2px);
}

.card-actions .btn-outline {
  background: transparent;
  border: 2px solid #3399cc;
  color: #3399cc;
}

.card-actions .btn-outline:hover {
  background: #3399cc;
  color: #fff;
  transform: translateY(-2px);
}

.card-actions .btn i {
  font-size: 14px;
}

/* Resources Dropdown */
.card-resources {
  margin-top: 10px;
}

.resources-toggle {
  width: 100%;
  padding: 8px 15px;
  background: #f8f9fa;
  border: 1px solid #e1e1e1;
  border-radius: 25px;
  color: #555;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.resources-toggle:hover {
  background: #e9ecef;
}

.resources-list {
  margin-top: 10px;
  padding: 0;
  list-style: none;
}

.resources-list li {
  margin-bottom: 8px;
}

.resources-list a {
  color: #3399cc;
  text-decoration: none;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s;
}

.resources-list a:hover {
  color: #2980b9;
  padding-left: 5px;
}

.resources-list a i {
  font-size: 14px;
}

/* No Results Message */
.no-results-message {
  padding: 60px 20px;
  text-align: center;
}

.no-results-message i {
  font-size: 64px;
  color: #ccc;
  margin-bottom: 20px;
}

.no-results-message h4 {
  color: #555;
  margin-bottom: 10px;
}

.no-results-message p {
  color: #777;
}

/* Video Modal */
#videoModal .modal-content {
  border: none;
  border-radius: 10px;
  overflow: hidden;
}

#videoModal .modal-header {
  background: #f8f9fa;
  border-bottom: 1px solid #e1e1e1;
}

#videoModal .modal-body {
  padding: 0;
  background: #000;
}

/* Loading Spinner */
#loading {
  padding: 60px 0;
}

#loading .spinner-border {
  width: 3rem;
  height: 3rem;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
  .presentation-card .card-thumbnail {
    height: 200px;
  }
}

@media (max-width: 768px) {
  .stats-row {
    margin: 20px 0;
  }

  .stats-item {
    margin-bottom: 20px;
  }

  .presentation-filters li {
    font-size: 13px;
    padding: 6px 15px 8px 15px;
  }

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

  .card-actions .btn {
    width: 100%;
  }
}

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

.presentation-card {
  animation: fadeInUp 0.5s ease-out;
}

/* Isotope filtering effect */
.presentations-container .presentation-item {
  margin-bottom: 30px;
}

/* Placeholder thumbnail for missing images */
.card-thumbnail.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.card-thumbnail.placeholder i {
  font-size: 64px;
  color: rgba(255, 255, 255, 0.5);
}

/* Print styles */
@media print {
  #presentations-hero,
  .presentation-filters,
  .search-box,
  .stats-row,
  .card-actions,
  .back-to-top {
    display: none;
  }

  .presentation-card {
    break-inside: avoid;
    box-shadow: none;
    border: 1px solid #ddd;
  }
}
