/* Events Styles */

/* Hero Section */
.events-hero {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 80px 0;
  text-align: center;
  color: white;
  margin-top: 80px;
}

.events-hero h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.events-hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.search-container {
  max-width: 600px;
  margin: 0 auto;
}

.search-wrapper {
  display: flex;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50px;
  padding: 8px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.search-input {
  flex: 1;
  background: transparent;
  border: none;
  padding: 12px 20px;
  color: white;
  font-size: 1rem;
}

.search-input::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.search-input:focus {
  outline: none;
}

.search-btn {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  border-radius: 50px;
  padding: 12px 20px;
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
}

.search-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

/* Create Event Button */
.create-event-container {
  text-align: center;
}

.btn-create-event {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.15);
  color: white;
  padding: 12px 24px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  border: 2px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
}

.btn-create-event:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  color: white;
  text-decoration: none;
}

/* Filters Section */
.events-filters {
  background: #f8f9fa;
  padding: 20px 0;
  border-bottom: 1px solid #e9ecef;
}

.filters-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.sort-options select,
.category-filter select {
  background: white;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 10px 15px;
  font-size: 14px;
  min-width: 150px;
}

.stats {
  display: flex;
  gap: 20px;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #666;
  font-size: 14px;
}

.stat-item i {
  color: #007bff;
}

/* Featured Events */
.featured-events {
  padding: 60px 0;
  background: white;
}

.featured-events h2 {
  text-align: center;
  margin-bottom: 40px;
  font-size: 2.5rem;
  color: #333;
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.featured-event-card {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.featured-event-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.featured-event-card .event-image {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.featured-event-card .event-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.featured-event-card .event-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 3rem;
}

.featured-event-card .event-date {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(255, 255, 255, 0.9);
  padding: 8px 12px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 12px;
  color: #333;
}

.featured-event-card .event-info {
  padding: 25px;
}

.featured-event-card h3 {
  margin: 0 0 15px 0;
  font-size: 1.3rem;
}

.featured-event-card h3 a {
  color: #333;
  text-decoration: none;
  transition: color 0.3s ease;
}

.featured-event-card h3 a:hover {
  color: #007bff;
}

.featured-event-card .event-server,
.featured-event-card .event-time {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  color: #666;
  font-size: 14px;
}

.featured-event-card .event-server a {
  color: #007bff;
  text-decoration: none;
}

.featured-event-card .event-stats {
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid #eee;
}

.featured-event-card .interested {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #ffc107;
  font-weight: 600;
  font-size: 14px;
}

/* Events Grid */
.events-grid-section {
  padding: 60px 0;
  background: #f8f9fa;
}

.section-header {
  text-align: center;
  margin-bottom: 40px;
}

.section-header h2 {
  font-size: 2.5rem;
  color: #333;
  margin-bottom: 10px;
}

.section-header p {
  color: #666;
  font-size: 1.1rem;
}

.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 30px;
}

.event-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.event-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

.event-card .event-image {
  position: relative;
  height: 180px;
  overflow: hidden;
}

.event-card .event-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.event-card .event-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 2rem;
}

.event-card .event-category {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(0, 123, 255, 0.9);
  color: white;
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.event-card .event-content {
  padding: 20px;
}

.event-card h3 {
  margin: 0 0 10px 0;
  font-size: 1.2rem;
}

.event-card h3 a {
  color: #333;
  text-decoration: none;
  transition: color 0.3s ease;
}

.event-card h3 a:hover {
  color: #007bff;
}

.event-card .event-description {
  color: #666;
  margin-bottom: 15px;
  font-size: 14px;
  line-height: 1.5;
}

.event-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  padding-bottom: 15px;
  border-bottom: 1px solid #eee;
}

.event-server {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #666;
  font-size: 14px;
}

.event-server .server-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
}

.event-time {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #666;
  font-size: 12px;
}

.event-stats {
  display: flex;
  justify-content: space-between;
}

.event-stats span {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 14px;
  color: #666;
}

.event-stats .interested i {
  color: #ffc107;
}

.event-stats .attending i {
  color: #28a745;
}

/* No Events */
.no-events {
  text-align: center;
  padding: 80px 20px;
  color: #666;
}

.no-events-icon {
  font-size: 4rem;
  margin-bottom: 20px;
  color: #ddd;
}

.no-events h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 40px;
}

.pagination-btn {
  background: #007bff;
  color: white;
  padding: 10px 20px;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.pagination-btn:hover {
  background: #0056b3;
  transform: translateY(-2px);
}

.pagination-numbers {
  display: flex;
  gap: 5px;
}

.pagination-number {
  background: #f8f9fa;
  color: #666;
  padding: 10px 15px;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.pagination-number:hover {
  background: #e9ecef;
}

.pagination-number.active {
  background: #007bff;
  color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
  .events-hero h1 {
    font-size: 2rem;
  }
  
  .events-hero p {
    font-size: 1rem;
  }

  .filters-wrapper {
    flex-direction: column;
    align-items: stretch;
  }

  .sort-options select,
  .category-filter select {
    width: 100%;
  }

  .featured-grid {
    grid-template-columns: 1fr;
  }

  .events-grid {
    grid-template-columns: 1fr;
  }

  .event-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .pagination {
    flex-wrap: wrap;
  }

  .pagination-numbers {
    order: 1;
    width: 100%;
    justify-content: center;
    margin-bottom: 10px;
  }
}

/* Dark theme compatibility */
.dark-theme .events-filters {
  background: #2c3e50;
  border-color: #34495e;
}

.dark-theme .sort-options select,
.dark-theme .category-filter select {
  background: #34495e;
  border-color: #4a5f7a;
  color: #ecf0f1;
}

.dark-theme .featured-event-card,
.dark-theme .event-card {
  background: #34495e;
  color: #ecf0f1;
}

.dark-theme .featured-event-card h3 a,
.dark-theme .event-card h3 a {
  color: #ecf0f1;
}

.dark-theme .featured-event-card h3 a:hover,
.dark-theme .event-card h3 a:hover {
  color: #3498db;
}

.dark-theme .events-grid-section {
  background: #2c3e50;
}

.dark-theme .section-header h2 {
  color: #ecf0f1;
}