/**
 * M2-Helper Hardcore Event - Metin2 Style CSS
 * Orientalisches Design mit Gold/Rot Farbschema
 */

/* ==================== CSS Variables ==================== */
:root {
  --hc-bg-dark: #1a0a05;
  --hc-bg-card: #2a1510;
  --hc-bg-card-hover: #3a2015;
  --hc-gold: #d4a855;
  --hc-gold-light: #f0d090;
  --hc-gold-dark: #a07830;
  --hc-red: #8b0000;
  --hc-red-accent: #cc3333;
  --hc-red-light: #a02020;
  --hc-text: #e8d5b5;
  --hc-text-muted: #a08060;
  --hc-text-dark: #341002;
  --hc-live: #00ff88;
  --hc-dead: #ff4444;
  --hc-level-cl: #87CEEB;
  --hc-border: #5a3020;
  --hc-border-gold: #c4983a;
}

/* ==================== Base Styles ==================== */
.hc-page {
  background: var(--hc-bg-dark);
  min-height: 100vh;
  color: var(--hc-text);
  font-family: 'Montserrat', Arial, sans-serif;
}

.hc-page::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse at 65% 20%, rgba(212, 168, 85, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 30% 85%, rgba(139, 0, 0, 0.2) 0%, transparent 50%),
    linear-gradient(135deg, #1a0a05 0%, #2a1510 50%, #1a0a05 100%);
  pointer-events: none;
}

.hc-content {
  position: relative;
  z-index: 1;
}

/* ==================== Typography ==================== */
.hc-title {
  color: var(--hc-gold);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  font-weight: 700;
}

.hc-subtitle {
  color: var(--hc-text-muted);
}

/* ==================== Cards & Containers ==================== */
.hc-card {
  background: var(--hc-bg-card);
  border: 2px solid var(--hc-border);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.hc-card-gold {
  border-color: var(--hc-border-gold);
  box-shadow: 0 4px 12px rgba(212, 168, 85, 0.2);
}

/* ==================== Table Styles ==================== */
.hc-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.hc-table thead {
  background: linear-gradient(180deg, var(--hc-red) 0%, var(--hc-red-light) 100%);
}

.hc-table th {
  color: var(--hc-gold-light);
  font-weight: 600;
  padding: 12px 16px;
  text-align: center;
  border-bottom: 2px solid var(--hc-border-gold);
  cursor: pointer;
  user-select: none;
  transition: background 0.2s;
}

.hc-table th:hover {
  background: rgba(212, 168, 85, 0.1);
}

.hc-table th.sorted-asc::after {
  content: ' \25B2';
  font-size: 0.75em;
}

.hc-table th.sorted-desc::after {
  content: ' \25BC';
  font-size: 0.75em;
}

.hc-table tbody tr {
  background: var(--hc-bg-card);
  cursor: pointer;
  transition: all 0.2s;
}

.hc-table tbody tr:nth-child(even) {
  background: rgba(42, 21, 16, 0.7);
}

.hc-table tbody tr:hover {
  background: var(--hc-bg-card-hover);
  transform: translateX(4px);
}

.hc-table tbody tr.expanded {
  background: var(--hc-bg-card-hover);
  border-left: 3px solid var(--hc-gold);
}

.hc-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--hc-border);
  vertical-align: middle;
  text-align: center;
}

.hc-table th:nth-child(3),
.hc-table td:nth-child(3) {
  text-align: left;
}

/* ==================== Player Row ==================== */
.hc-player-avatar {
  width: 40px;
  height: 40px;
  min-width: 40px;
  min-height: 40px;
  border-radius: 50%;
  border: 2px solid var(--hc-border-gold);
  object-fit: cover;
  aspect-ratio: 1 / 1;
}

.hc-player-name {
  color: var(--hc-gold-light);
  font-weight: 600;
  cursor: pointer;
  transition: color 0.2s;
}

.hc-player-name:hover {
  color: var(--hc-gold);
  text-decoration: underline;
}

.hc-class-icons {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  vertical-align: middle;
}

.hc-class-icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

.hc-class-name {
  display: inline-block;
  margin-left: 8px;
  color: var(--hc-text);
  vertical-align: middle;
  line-height: 36px;
}

/* ==================== Live Badge ==================== */
.hc-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 255, 136, 0.15);
  border: 1px solid var(--hc-live);
  color: var(--hc-live);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  animation: pulse-live 2s infinite;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s;
}

.hc-live-badge:hover {
  background: rgba(0, 255, 136, 0.25);
  transform: scale(1.05);
}

.hc-live-badge::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--hc-live);
  border-radius: 50%;
  animation: blink 1s infinite;
}

@keyframes pulse-live {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0, 255, 136, 0.4); }
  50% { box-shadow: 0 0 0 6px rgba(0, 255, 136, 0); }
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.hc-offline-badge {
  color: var(--hc-text-muted);
  font-size: 0.75rem;
}

/* ==================== Death Counter ==================== */
.hc-deaths {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--hc-dead);
  font-weight: 600;
}

.hc-deaths-zero {
  color: var(--hc-live);
}

/* ==================== Champion Level (CL) ==================== */
.hc-level-cl {
  color: var(--hc-level-cl);
  text-shadow: 0 0 8px rgba(135, 206, 235, 0.5);
}

/* ==================== DR Display ==================== */
.hc-dr-value {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: var(--hc-gold);
}

.hc-dr-icon {
  width: 24px;
  height: 24px;
}

.hc-milestone-rewards {
  padding: 12px 16px;
  background: rgba(212, 168, 85, 0.1);
  border: 1px solid var(--hc-border);
  border-radius: 8px;
}

.hc-dr-earned {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hc-dr-text {
  color: var(--hc-text);
  font-size: 0.9rem;
}

.hc-dr-text strong {
  color: var(--hc-gold);
}

/* ==================== Accordion (Expandable Row) ==================== */
.hc-accordion {
  display: none;
  background: rgba(26, 10, 5, 0.9);
  border-top: 1px solid var(--hc-border);
  padding: 16px 20px;
  animation: slideDown 0.3s ease-out;
}

.hc-accordion.open {
  display: block;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hc-accordion-section {
  margin-bottom: 16px;
}

.hc-accordion-title {
  color: var(--hc-gold);
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-align: left;
}

/* ==================== Buffs Grid ==================== */
.hc-buffs-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-start;
  align-items: flex-start;
}

.hc-buff {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--hc-bg-card);
  border: 1px solid var(--hc-border);
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 0.8rem;
  transition: all 0.2s;
}

.hc-buff.acquired {
  border-color: var(--hc-gold-dark);
  background: rgba(212, 168, 85, 0.1);
}

.hc-buff.not-acquired {
  opacity: 0.4;
  filter: grayscale(100%);
}

.hc-buff-icon {
  width: 32px;
  height: 32px;
}

/* ==================== Milestones/Badges ==================== */
.hc-milestones-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-start;
  align-items: flex-start;
}

.hc-milestone {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--hc-bg-card);
  border: 2px solid var(--hc-border);
  border-radius: 8px;
  position: relative;
  transition: all 0.2s;
}

.hc-milestone.achieved {
  border-color: var(--hc-gold);
  box-shadow: 0 0 10px rgba(212, 168, 85, 0.3);
}

.hc-milestone.not-achieved {
  opacity: 0.3;
  filter: grayscale(100%);
}

.hc-milestone-icon {
  width: 32px;
  height: 32px;
}

/* ==================== Modal ==================== */
.hc-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
}

.hc-modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.hc-modal {
  background: var(--hc-bg-card);
  border: 3px solid var(--hc-border-gold);
  border-radius: 12px;
  max-width: 800px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(0.9);
  transition: transform 0.3s;
}

.hc-modal-overlay.open .hc-modal {
  transform: scale(1);
}

.hc-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  background: linear-gradient(180deg, var(--hc-red) 0%, var(--hc-red-light) 100%);
  border-bottom: 2px solid var(--hc-border-gold);
}

.hc-modal-title {
  color: var(--hc-gold-light);
  font-size: 1.5rem;
  font-weight: 700;
}

.hc-modal-close {
  background: none;
  border: none;
  color: var(--hc-text);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 8px;
  transition: color 0.2s;
}

.hc-modal-close:hover {
  color: var(--hc-gold);
}

.hc-modal-body {
  padding: 20px;
}

/* ==================== Player Profile (Modal) ==================== */
.hc-profile-header {
  display: flex;
  gap: 20px;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--hc-border);
}

.hc-profile-avatar {
  width: 100px;
  height: 100px;
  border-radius: 12px;
  border: 3px solid var(--hc-border-gold);
  object-fit: cover;
}

.hc-profile-info h2 {
  color: var(--hc-gold);
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.hc-profile-class {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--hc-text);
  margin-bottom: 8px;
}

.hc-profile-class-icon {
  width: 32px;
  height: 32px;
}

.hc-profile-stats {
  display: flex;
  gap: 16px;
}

.hc-profile-stat {
  text-align: center;
}

.hc-profile-stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--hc-gold-light);
}

.hc-profile-stat-label {
  font-size: 0.75rem;
  color: var(--hc-text-muted);
  text-transform: uppercase;
}

/* ==================== Twitch Link ==================== */
.hc-twitch-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #9146FF;
  color: white;
  padding: 8px 16px;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
}

.hc-twitch-link:hover {
  background: #7c3aed;
  transform: translateY(-2px);
}

/* ==================== Clips Section ==================== */
.hc-clips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.hc-clip-card {
  background: var(--hc-bg-card);
  border: 1px solid var(--hc-border);
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.2s;
}

.hc-clip-card:hover {
  border-color: var(--hc-gold-dark);
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.hc-clip-thumbnail {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  background: var(--hc-bg-dark);
}

.hc-clip-info {
  padding: 12px;
  position: relative;
}

.hc-clip-title {
  color: var(--hc-text);
  font-weight: 500;
  margin-bottom: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hc-clip-meta {
  font-size: 0.75rem;
  color: var(--hc-text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.hc-clip-id {
  font-size: 0.65rem;
  color: var(--hc-text-muted);
  opacity: 0.6;
  font-family: monospace;
  white-space: nowrap;
  margin-left: auto;
}

.hc-clip-type {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
}

.hc-clip-type-death {
  background: rgba(255, 68, 68, 0.2);
  color: var(--hc-dead);
}

.hc-clip-type-death-griefing {
  background: rgba(255, 136, 0, 0.2);
  color: #ff8800;
  border: 1px solid rgba(255, 136, 0, 0.4);
}

.hc-clip-type-highlight {
  background: rgba(0, 255, 136, 0.2);
  color: var(--hc-live);
}

.hc-clip-type-milestone {
  background: rgba(212, 168, 85, 0.2);
  color: var(--hc-gold);
}

.hc-clip-type-server-first {
  background: rgba(168, 85, 247, 0.35);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.6);
  font-weight: 700;
}

.hc-clip-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.hc-clip-link .hc-clip-title {
  padding: 12px 12px 0 12px;
}

.hc-clip-player-link {
  color: var(--hc-gold);
  cursor: pointer;
  transition: color 0.2s;
}

.hc-clip-player-link:hover {
  color: var(--hc-gold-light);
  text-decoration: underline;
}

/* ==================== Buttons ==================== */
.hc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  border: 2px solid transparent;
}

.hc-btn-primary {
  background: linear-gradient(180deg, var(--hc-red) 0%, var(--hc-red-light) 100%);
  color: var(--hc-gold-light);
  border-color: var(--hc-border-gold);
}

.hc-btn-primary:hover {
  background: linear-gradient(180deg, var(--hc-red-light) 0%, var(--hc-red) 100%);
  box-shadow: 0 4px 12px rgba(139, 0, 0, 0.4);
}

.hc-btn-secondary {
  background: var(--hc-bg-card);
  color: var(--hc-text);
  border-color: var(--hc-border);
}

.hc-btn-secondary:hover {
  border-color: var(--hc-gold-dark);
  color: var(--hc-gold);
}

/* ==================== Filter Bar ==================== */
.hc-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}

.hc-filter-select {
  background: var(--hc-bg-card);
  color: var(--hc-text);
  border: 2px solid var(--hc-border);
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s;
}

.hc-filter-select:hover,
.hc-filter-select:focus {
  border-color: var(--hc-gold-dark);
  outline: none;
}

.hc-filter-select option {
  background: var(--hc-bg-card);
  color: var(--hc-text);
}

/* ==================== Loading & Empty States ==================== */
.hc-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  color: var(--hc-text-muted);
}

.hc-loading-spinner {
  width: 48px;
  height: 48px;
  border: 3px solid var(--hc-border);
  border-top-color: var(--hc-gold);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 16px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.hc-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--hc-text-muted);
}

.hc-empty-icon {
  font-size: 3rem;
  margin-bottom: 16px;
}

/* ==================== Navigation ==================== */
.hc-nav {
  display: flex;
  gap: 4px;
  background: var(--hc-bg-card);
  padding: 4px;
  border-radius: 8px;
  border: 1px solid var(--hc-border);
}

.hc-nav-link {
  padding: 10px 20px;
  color: var(--hc-text-muted);
  text-decoration: none;
  border-radius: 6px;
  font-weight: 500;
  transition: all 0.2s;
}

.hc-nav-link:hover {
  color: var(--hc-text);
  background: rgba(212, 168, 85, 0.1);
}

.hc-nav-link.active {
  background: var(--hc-red);
  color: var(--hc-gold-light);
}

/* ==================== Leaderboard ==================== */
.hc-leaderboard-rank {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-weight: 700;
  font-size: 1rem;
}

.hc-rank-1 {
  background: linear-gradient(135deg, #ffd700 0%, #ffb800 100%);
  color: #341002;
}

.hc-rank-2 {
  background: linear-gradient(135deg, #c0c0c0 0%, #a0a0a0 100%);
  color: #341002;
}

.hc-rank-3 {
  background: linear-gradient(135deg, #cd7f32 0%, #a06020 100%);
  color: #fff;
}

.hc-rank-other {
  background: var(--hc-bg-card);
  color: var(--hc-text-muted);
  border: 1px solid var(--hc-border);
}

/* ==================== Responsive ==================== */
@media (max-width: 768px) {
  .hc-nav {
    gap: 3px;
    padding: 3px;
  }

  .hc-nav-link {
    padding: 9px 14px;
    font-size: 0.9rem;
  }

  .hc-table th,
  .hc-table td {
    padding: 8px 10px;
    font-size: 0.875rem;
  }

  .hc-player-avatar {
    width: 32px;
    height: 32px;
  }

  .hc-class-icon {
    width: 24px;
    height: 24px;
  }

  .hc-class-name {
    display: none;
  }

  .hc-profile-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .hc-filters {
    flex-direction: column;
  }

  .hc-filter-select {
    width: 100%;
  }

  .hc-modal {
    margin: 10px;
    max-height: calc(100vh - 20px);
  }
}

/* Extra small devices (sehr kleine Handys) */
@media (max-width: 480px) {
  .hc-nav-link {
    padding: 8px 10px;
    font-size: 0.8rem;
  }
}

/* ==================== Custom Scrollbar ==================== */
.hc-scrollbar::-webkit-scrollbar {
  width: 8px;
}

.hc-scrollbar::-webkit-scrollbar-track {
  background: var(--hc-bg-dark);
  border-radius: 4px;
}

.hc-scrollbar::-webkit-scrollbar-thumb {
  background: var(--hc-border);
  border-radius: 4px;
}

.hc-scrollbar::-webkit-scrollbar-thumb:hover {
  background: var(--hc-gold-dark);
}

/* ==================== Countdown ==================== */
.countdown-pulse {
  animation: countdown-pulse 2s ease-in-out infinite;
}

@keyframes countdown-pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.05);
    opacity: 0.9;
  }
}

/* ==================== Events Calendar ==================== */

/* Next Event Card */
.hc-next-event {
  display: flex;
  gap: 20px;
  padding: 20px;
  background: var(--hc-bg-card);
  border: 2px solid var(--hc-border-gold);
  border-radius: 12px;
  margin-bottom: 24px;
  box-shadow: 0 4px 16px rgba(212, 168, 85, 0.15);
}

.hc-next-event-image {
  width: 120px;
  height: 120px;
  min-width: 120px;
  border-radius: 8px;
  object-fit: cover;
  background: var(--hc-bg-dark);
  border: 1px solid var(--hc-border);
}

.hc-next-event-placeholder {
  width: 120px;
  height: 120px;
  min-width: 120px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--hc-red) 0%, var(--hc-red-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  border: 1px solid var(--hc-border-gold);
}

.hc-next-event-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hc-next-event-label {
  font-size: 0.75rem;
  color: var(--hc-gold);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.hc-next-event-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--hc-gold-light);
  margin-bottom: 8px;
}

.hc-next-event-date {
  color: var(--hc-text);
  margin-bottom: 4px;
}

.hc-next-event-countdown {
  color: var(--hc-text-muted);
  font-size: 0.9rem;
}

.hc-no-upcoming-event {
  text-align: center;
  padding: 40px 20px;
  background: var(--hc-bg-card);
  border: 2px solid var(--hc-border);
  border-radius: 12px;
  margin-bottom: 24px;
  color: var(--hc-text-muted);
}

/* Calendar Container */
.hc-calendar {
  background: var(--hc-bg-card);
  border: 2px solid var(--hc-border);
  border-radius: 12px;
  overflow: hidden;
}

.hc-calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: linear-gradient(180deg, var(--hc-red) 0%, var(--hc-red-light) 100%);
  border-bottom: 2px solid var(--hc-border-gold);
}

.hc-calendar-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--hc-gold-light);
}

.hc-calendar-nav {
  display: flex;
  gap: 8px;
}

.hc-calendar-nav-btn {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--hc-border-gold);
  color: var(--hc-gold-light);
  width: 36px;
  height: 36px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hc-calendar-nav-btn:hover {
  background: rgba(212, 168, 85, 0.2);
}

/* Weekday Header */
.hc-calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  background: rgba(0, 0, 0, 0.2);
  border-bottom: 1px solid var(--hc-border);
}

.hc-calendar-weekday {
  padding: 12px 8px;
  text-align: center;
  font-weight: 600;
  font-size: 0.8rem;
  color: var(--hc-gold);
  text-transform: uppercase;
}

/* Calendar Grid */
.hc-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.hc-calendar-day {
  min-height: 80px;
  padding: 6px;
  border-right: 1px solid var(--hc-border);
  border-bottom: 1px solid var(--hc-border);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  overflow: hidden;
  transition: all 0.2s;
}

.hc-calendar-day:nth-child(7n) {
  border-right: none;
}

.hc-calendar-day.other-month {
  opacity: 0.3;
}

.hc-calendar-day.today {
  background: rgba(212, 168, 85, 0.1);
  border: 2px solid var(--hc-gold);
}

.hc-calendar-day.has-event {
  cursor: pointer;
}

.hc-calendar-day.has-event:hover {
  background: var(--hc-bg-card-hover);
}

.hc-calendar-day-number {
  font-weight: 600;
  color: var(--hc-text);
  font-size: 0.8rem;
  align-self: flex-start;
}

.hc-calendar-day.today .hc-calendar-day-number {
  color: var(--hc-gold);
}

.hc-calendar-event-cards {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 4px;
  width: 100%;
}

.hc-calendar-event-card {
  background: rgba(212, 168, 85, 0.1);
  border: 1px solid var(--hc-border);
  border-radius: 4px;
  padding: 2px 4px;
  font-size: 0.65rem;
  color: var(--hc-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
}

/* Event Modal */
.hc-event-modal {
  max-width: 500px;
}

.hc-event-modal-image {
  width: 100%;
  max-height: 250px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 16px;
}

.hc-event-modal-date {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--hc-gold);
  margin-bottom: 8px;
}

.hc-event-modal-time {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--hc-text);
  margin-bottom: 16px;
}

.hc-event-modal-description {
  color: var(--hc-text);
  line-height: 1.6;
}

/* Responsive Calendar */
@media (max-width: 768px) {
  .hc-next-event {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .hc-calendar-day {
    min-height: 60px;
    padding: 3px;
  }

  .hc-calendar-day-number {
    font-size: 0.7rem;
  }

  .hc-calendar-weekday {
    padding: 8px 4px;
    font-size: 0.7rem;
  }

  .hc-calendar-event-card {
    font-size: 0.55rem;
    padding: 1px 2px;
  }
}

@media (max-width: 480px) {
  .hc-calendar-day {
    min-height: 50px;
  }

  .hc-calendar-day-number {
    font-size: 0.65rem;
  }

  .hc-calendar-event-card {
    font-size: 0.5rem;
  }
}
