* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --transition-duration: 0.5s;
  --theme-primary: var(--theme-primary);
  --theme-secondary: var(--theme-secondary);
  --theme-tertiary: var(--theme-tertiary);
  --theme-quaternary: var(--theme-quaternary);
  --theme-background-image: url(../images/EOSbackground1.png);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue, Arial, sans-serif;
  min-height: 100vh;
  background: var(--theme-background-image) no-repeat center center fixed;
  background-size: cover;
  color: #fff;
  display: flex;
  flex-direction: column;
  opacity: 0;
  animation: fadeInPage 1s ease-out forwards;
  transition: background var(--transition-duration) ease;
  overflow-x: hidden;
}

body.collapsed {
  overflow: hidden;
}

body.legacy-theme {
  font-family: 'Times New Roman', Times, serif;
  background: #1a1a1a;
  color: #e0e0e0;
  transition: all var(--transition-duration) ease;
}

.page-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: rgba(0, 0, 0, 0.1);
  transition: all var(--transition-duration) ease;
}

.legacy-theme .page-container {
  background: none;
}

@keyframes fadeInPage {
  0% {
    opacity: 0;
    transform: translateY(-20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fade-in {
  0% {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slide-up {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in {
  animation: fade-in 0.5s ease-out;
}

.animate-slide-up {
  animation: slide-up 0.5s ease-out;
}

header {
  background-color: rgba(0, 0, 0, 0.6);
  padding: 1.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  animation: slideInDown 0.8s ease-out;
  transition: all var(--transition-duration) ease;
  transform-origin: top;
}

header.collapsed {
  background: transparent;
  border-bottom: none;
}

.legacy-theme header {
  background-color: #2a2a2a;
  border-bottom: 1px solid #404040;
}

@keyframes slideInDown {
  0% {
    transform: translateY(-100%);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

.header-content {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1rem;
  position: relative;
}

.title-container {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-left: 1rem;
  animation: slideInLeft 1s ease-out;
  cursor: pointer;
  user-select: none;
  transition: all var(--transition-duration) ease;
}

.title-container.fixed {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 1000;
  margin: 0;
  background: rgba(0, 0, 0, 0.6);
  padding: 0.5rem;
  border-radius: 0.5rem;
  width: 42px;
  height: 42px;
  display: flex;
  justify-content: center;
  align-items: center;
}

@keyframes slideInLeft {
  0% {
    transform: translateX(-100%);
    opacity: 0;
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

.logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
  transition: all var(--transition-duration) ease;
}

.logo.fixed {
  width: 32px;
  height: 32px;
}

.title {
  font-size: 2.5rem;
  font-weight: 700;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  margin: 0;
  padding: 0;
  transition: opacity var(--transition-duration) ease, transform var(--transition-duration) ease;
  word-wrap: break-word;
  overflow-wrap: break-word;
  max-width: 100%;
}

.title.fade-out {
  opacity: 0;
  transform: translateX(-20px);
  position: absolute;
  pointer-events: none;
}

.legacy-theme .title {
  font-family: 'Times New Roman', Times, serif;
  text-shadow: none;
}

.digital-clock {
  font-family: Courier New, Courier, monospace;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--theme-primary);
  text-shadow: 0 0 10px color-mix(in srgb, var(--theme-primary) 70%, transparent);
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  align-items: center;
  margin-bottom: 0.5rem;
  transition: all var(--transition-duration) ease;
}

.legacy-theme .digital-clock {
  color: var(--theme-secondary);
  text-shadow: none;
}

.clock-digit {
  width: 2rem;
  text-align: center;
}

.colon {
  color: var(--theme-primary);
  animation: blink 1s infinite;
}

.legacy-theme .colon {
  color: var(--theme-secondary);
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.clock-container {
  position: absolute;
  top: 0.5rem;
  right: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: slideInRight 1s ease-out;
  transition: all var(--transition-duration) ease;
}

.clock-container.collapsed {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.6);
  padding: 0.5rem;
  border-radius: 0.5rem;
}

.clock-date {
  display: none;
  color: var(--theme-primary);
  font-size: 0.875rem;
  margin-bottom: 0.25rem;
  text-align: center;
}

.clock-container.collapsed .clock-date {
  display: block;
}

.clock-container.collapsed .binary-clock {
  display: none;
}

.clock-container.collapsed .digital-clock {
  margin: 0;
  font-size: 1.25rem;
  background: transparent;
}

@keyframes slideInRight {
  0% {
    transform: translateX(100%);
    opacity: 0;
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

.binary-clock {
  display: flex;
  gap: 2rem;
  justify-content: center;
  margin-top: -0.5rem;
}

.binary-column {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  align-items: center;
  width: 2rem;
  transition: transform 0.5s ease, opacity 0.5s ease;
}

.binary-column.slide-up {
  transform: translateY(-100vh);
  opacity: 0;
}

.binary-digit {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  border: 2px solid var(--theme-primary);
  transition: all var(--transition-duration) ease;
}

.legacy-theme .binary-digit {
  border-color: var(--theme-secondary);
}

.binary-digit.on {
  background-color: var(--theme-primary);
  box-shadow: 0 0 10px var(--theme-primary);
}

.legacy-theme .binary-digit.on {
  background-color: var(--theme-secondary);
  box-shadow: none;
}

.binary-digit.off {
  background-color: transparent;
  opacity: 0.3;
}

nav {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  animation: slideInUp 1s ease-out;
  transition: all var(--transition-duration) ease;
}

nav.collapsed {
  opacity: 0;
  pointer-events: none;
}

@keyframes slideInUp {
  0% {
    transform: translateY(50%);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  color: #fff;
  text-decoration: none;
  transition: transform 0.5s ease, opacity 0.5s ease, background-color 0.3s ease;
  transform: scale(1);
  background: rgba(255, 255, 255, 0.1);
}

.nav-link.slide-up {
  transform: translateY(-100vh);
  opacity: 0;
  pointer-events: none;
}

.legacy-theme .nav-link {
  background: #333;
  color: #e0e0e0;
}

.nav-link:hover {
  background-color: rgba(255, 255, 255, 0.2);
  transform: scale(1.05);
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}

.legacy-theme .nav-link:hover {
  background-color: #444;
  box-shadow: none;
}

.nav-link.active {
  background-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.legacy-theme .nav-link.active {
  background-color: #555;
  box-shadow: none;
}

main {
  flex: 1;
  padding: 2rem;
  transition: padding-top 0.5s ease;
}

main.header-collapsed {
  padding-top: 5rem;
}

.content-container {
  max-width: 80rem;
  margin: 0 auto;
  display: flex;
  justify-content: flex-end;
  transition: all var(--transition-duration) ease;
}

.content-container.header-collapsed {
  margin-right: 2rem;
}

.news-section {
  background-color: rgba(0, 0, 0, 0.6);
  border-radius: 0.75rem;
  padding: 1.5rem;
  width: 100%;
  max-width: 30rem;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all var(--transition-duration) ease;
}

.news-section.news-exiting {
  animation: newsExit 0.4s ease-out forwards;
}

@keyframes newsExit {
  0% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
  100% {
    opacity: 0;
    transform: scale(0.95) translateY(-20px);
  }
}

.legacy-theme .news-section {
  background-color: #2a2a2a;
  box-shadow: none;
  border: 1px solid #404040;
}

.news-header {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
}

.news-icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.section-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-left: 0.5rem;
  color: #fff;
}

.legacy-theme .section-title {
  color: #e0e0e0;
}

.more-link {
  margin-left: auto;
  color: var(--theme-primary);
  text-decoration: none;
  transition: color 0.3s ease;
  cursor: pointer;
}

.legacy-theme .more-link {
  color: var(--theme-secondary);
}

.more-link:hover {
  color: var(--theme-tertiary);
  text-shadow: 0 0 10px color-mix(in srgb, var(--theme-tertiary) 70%, transparent);
}

.legacy-theme .more-link:hover {
  color: var(--theme-quaternary);
  text-shadow: none;
}

.next-event {
  padding: 0.75rem;
  margin-bottom: 1rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 0.5rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.3s ease;
  color: #fff;
}

.next-event:hover {
  background: rgba(255, 255, 255, 0.2);
}

.current-event {
  color: var(--theme-primary);
  font-weight: bold;
  margin-bottom: 5px;
}

.countdown {
  color: #fff;
}

.news-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  margin: 1rem 0;
}

.news-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.news-list li {
  margin-bottom: 1rem;
  transform: translate(0);
  transition: all 0.5s ease;
  padding: 0.5rem;
  border-radius: 0.25rem;
  opacity: 1;
}

.news-list li.hidden {
  opacity: 0;
  transform: translate(var(--fall-direction)) translateY(100px);
  height: 0;
  margin: 0;
  padding: 0;
}

.news-list li:hover {
  transform: translate(-0.5rem);
  background: rgba(255, 255, 255, 0.1);
}

.legacy-theme .news-list li:hover {
  background: #333;
}

.news-list a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s ease;
  display: block;
}

.legacy-theme .news-list a {
  color: #e0e0e0;
}

.news-list a:hover {
  color: var(--theme-primary);
}

.legacy-theme .news-list a:hover {
  color: var(--theme-secondary);
}

footer {
  background-color: rgba(0, 0, 0, 0.6);
  padding: 1rem 0;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: auto;
  transition: all var(--transition-duration) ease;
  position: relative;
  min-height: 4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

footer.slide-down {
  transform: translateY(100%);
  opacity: 0;
  pointer-events: none;
}

.legacy-theme footer {
  background-color: #2a2a2a;
  border-top: 1px solid #404040;
}

.contact {
  font-size: 0.875rem;
}

.contact a {
  color: var(--theme-primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

.legacy-theme .contact a {
  color: var(--theme-secondary);
}

.contact a:hover {
  color: var(--theme-tertiary);
  text-shadow: 0 0 10px color-mix(in srgb, var(--theme-tertiary) 70%, transparent);
}

.legacy-theme .contact a:hover {
  color: var(--theme-quaternary);
  text-shadow: none;
}

.ad-link {
  position: absolute;
  left: 1rem;
  bottom: 50%;
  transform: translateY(50%);
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: color 0.3s ease;
}

.legacy-theme .ad-link {
  color: #888;
}

.ad-link:hover {
  color: rgba(255, 255, 255, 0.8);
}

.legacy-theme .ad-link:hover {
  color: #aaa;
}

.loading {
  color: rgba(255, 255, 255, 0.7);
  font-style: italic;
}

.legacy-theme .loading {
  color: #888;
}

#VOCECHAT_WIDGET {
  left: 10px;
  bottom: 5px;
}

/* Theme Switcher Styles */
.theme-switcher {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
  transition: transform 0.5s ease, opacity 0.5s ease;
}

.theme-switcher.slide-right {
  transform: translateX(200%);
  opacity: 0;
  pointer-events: none;
}

.theme-toggle-btn {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  padding: 0;
}

.legacy-theme .theme-toggle-btn {
  background: #2a2a2a;
  border: 1px solid #404040;
}

.theme-toggle-btn:hover {
  transform: scale(1.1);
}

.theme-panel {
  position: absolute;
  bottom: 100%;
  right: 0;
  margin-bottom: 1rem;
  background: rgba(0, 0, 0, 0.8);
  border-radius: 0.5rem;
  padding: 1rem;
  width: 12rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transform: translateY(1rem);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.legacy-theme .theme-panel {
  background: #2a2a2a;
  border: 1px solid #404040;
}

.theme-panel.active {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.theme-panel h3 {
  margin-bottom: 0.75rem;
  font-size: 1rem;
  color: #fff;
  text-align: center;
}

.legacy-theme .theme-panel h3 {
  color: #e0e0e0;
}

.theme-options {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.theme-option {
  padding: 0.5rem;
  border-radius: 0.25rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.theme-option:hover {
  background: rgba(255, 255, 255, 0.1);
}

.legacy-theme .theme-option:hover {
  background: #333;
}

.theme-option.active {
  background: rgba(255, 255, 255, 0.2);
}

.legacy-theme .theme-option.active {
  background: #444;
}

.theme-option-dot {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  border: 2px solid var(--theme-primary);
  position: relative;
}

.legacy-theme .theme-option-dot {
  border-color: var(--theme-secondary);
}

.theme-option.active .theme-option-dot::after {
  content: '';
  position: absolute;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--theme-primary);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.legacy-theme .theme-option.active .theme-option-dot::after {
  background: var(--theme-secondary);
}

.update-log-btn {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  cursor: pointer;
  transition: color 0.3s ease;
  background: none;
  border: none;
  padding: 0;
  text-align: right;
}

.legacy-theme .update-log-btn {
  color: rgba(255, 255, 255, 0.4);
}

.update-log-btn:hover {
  color: rgba(255, 255, 255, 0.8);
}

.legacy-theme .update-log-btn:hover {
  color: rgba(255, 255, 255, 0.6);
}

@media (max-width: 768px) {
  .title-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .title {
    font-size: 1.8rem;
    white-space: normal;
    line-height: 1.3;
    text-align: center;
  }
  .clock-container {
    position: static;
    margin-bottom: 1rem;
  }
  .binary-clock {
    margin: 0 auto;
  }
  nav {
    flex-wrap: wrap;
  }
  .nav-link {
    flex: 1 1 auto;
    min-width: 120px;
    justify-content: center;
  }
  .content-container {
    justify-content: center;
  }
  .ad-link {
    position: static;
    display: block;
    margin-top: 0.5rem;
    text-align: left;
    padding-left: 1rem;
    transform: none;
  }
  footer {
    padding: 1rem;
  }
}

/* Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  backdrop-filter: blur(4px);
}

.modal-overlay.active {
  display: flex;
  animation: fadeIn 0.3s ease-out;
}

.modal-content {
  background: rgba(0, 0, 0, 0.8);
  border-radius: 1rem;
  padding: 2rem;
  max-width: 90%;
  width: 500px;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transform: translateY(20px);
  opacity: 0;
  animation: slideUp 0.3s ease-out forwards;
}

.legacy-theme .modal-content {
  background: #2a2a2a;
  border: 1px solid #404040;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 0.5rem;
  transition: transform 0.3s ease;
}

.modal-close:hover {
  transform: scale(1.1);
}

.event-title {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--theme-primary);
}

.legacy-theme .event-title {
  color: var(--theme-secondary);
}

.event-meta {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 1rem;
}

.legacy-theme .event-meta {
  color: #888;
}

.event-description {
  font-size: 1.1rem;
  color: #fff;
}

.legacy-theme .event-description {
  color: #e0e0e0;
}

.update-log-content {
  white-space: pre-line;
  font-family: monospace;
  font-size: 0.9rem;
  color: #fff;
}

.legacy-theme .update-log-content {
  color: #e0e0e0;
}

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

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

.modal-divider {
  border: none;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  margin: 1.5rem 0;
}

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

@keyframes slideUp {
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Calendar Styles */
.calendar-section {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem;
}

.calendar-section.calendar-entering {
  animation: calendarEnter 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes calendarEnter {
  0% {
    opacity: 0;
    transform: scale(0.9) translateY(30px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  gap: 1rem;
  flex-wrap: wrap;
  background: rgba(0, 0, 0, 0.6);
  padding: 1.5rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.calendar-back-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(0, 0, 0, 0.7);
  border-radius: 8px;
  color: var(--theme-primary, #1fe1f9);
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.calendar-back-btn:hover {
  background: rgba(0, 0, 0, 0.7);
  transform: translateX(-3px);
}

.calendar-title {
  flex: 1;
  text-align: center;
  font-size: 2rem;
  font-weight: 600;
  color: var(--theme-primary, #1fe1f9);
  margin: 0;
}

.calendar-view-toggle {
  display: flex;
  gap: 0.5rem;
  background: rgba(0, 0, 0, 0.3);
  padding: 0.25rem;
  border-radius: 8px;
}

.view-toggle-btn {
  padding: 0.5rem 1rem;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.3s ease;
  font-size: 0.9rem;
}

.view-toggle-btn:hover {
  color: rgba(255, 255, 255, 0.8);
}

.view-toggle-btn.active {
  background: color-mix(in srgb, var(--theme-primary, #1fe1f9) 20%, transparent);
  color: var(--theme-primary, #1fe1f9);
}

.calendar-content {
  width: 100%;
}

/* Year View Styles */
.year-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

.month-mini {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid color-mix(in srgb, var(--theme-primary, #1fe1f9) 20%, transparent);
  border-radius: 12px;
  padding: 1rem;
  transition: all 0.3s ease;
}

.month-mini:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 20px color-mix(in srgb, var(--theme-primary, #1fe1f9) 20%, transparent);
}

.month-mini-header {
  text-align: center;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--theme-primary, #1fe1f9);
  margin-bottom: 0.75rem;
  padding: 0.5rem 1rem;
  padding-bottom: 0.5rem;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 8px;
  border-bottom: 1px solid color-mix(in srgb, var(--theme-primary, #1fe1f9) 20%, transparent);
}

.month-mini-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
}

.weekday-header {
  text-align: center;
  font-size: 0.7rem;
  color: var(--theme-secondary, rgba(255, 255, 255, 0.5));
  padding: 0.25rem;
  font-weight: 500;
}

.day-mini {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.7);
  border-radius: 4px;
  cursor: default;
  transition: all 0.2s ease;
  position: relative;
}

.day-mini.empty {
  opacity: 0;
}

.day-mini.today {
  background: color-mix(in srgb, var(--theme-primary, #1fe1f9) 20%, transparent);
  color: var(--theme-primary, #1fe1f9);
  font-weight: 600;
}

.day-mini.has-birthday {
  background: rgba(255, 107, 107, 0.3);
  color: #fff;
  cursor: pointer;
  font-weight: 600;
}

.day-mini.has-birthday:hover {
  background: rgba(255, 107, 107, 0.5);
  transform: scale(1.1);
}

.day-mini.has-holiday {
  background: rgba(74, 158, 255, 0.3);
  color: #fff;
  cursor: pointer;
  font-weight: 600;
}

.day-mini.has-holiday:hover {
  background: rgba(74, 158, 255, 0.5);
  transform: scale(1.1);
}

/* Month View Styles */
.month-navigation {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 2rem;
}

.month-nav-btn {
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid color-mix(in srgb, var(--theme-primary, #1fe1f9) 30%, transparent);
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--theme-primary, #1fe1f9);
  transition: all 0.3s ease;
}

.month-nav-btn:hover {
  background: color-mix(in srgb, var(--theme-primary, #1fe1f9) 20%, transparent);
  transform: scale(1.1);
}

.current-month-title {
  font-size: 1.8rem;
  color: var(--theme-primary, #1fe1f9);
  font-weight: 600;
  margin: 0;
  min-width: 200px;
  text-align: center;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 12px;
  padding: 0.75rem 1.5rem;
}

.month-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.75rem;
  background: rgba(0, 0, 0, 0.4);
  padding: 1.5rem;
  border-radius: 12px;
  border: 1px solid color-mix(in srgb, var(--theme-primary, #1fe1f9) 20%, transparent);
}

.weekday-header-large {
  text-align: center;
  font-size: 0.9rem;
  color: var(--theme-primary, #1fe1f9);
  padding: 0.75rem;
  font-weight: 600;
}

.day-large {
  min-height: 100px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 0.5rem;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
}

.day-large.empty {
  opacity: 0.3;
  pointer-events: none;
}

.day-large.today {
  border-color: var(--theme-primary, #1fe1f9);
  box-shadow: 0 0 15px color-mix(in srgb, var(--theme-primary, #1fe1f9) 30%, transparent);
}

.day-large:not(.empty):hover {
  background: color-mix(in srgb, var(--theme-primary, #1fe1f9) 5%, transparent);
  transform: translateY(-2px);
}

.day-number {
  font-size: 1.1rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 0.5rem;
}

.day-large.today .day-number {
  color: var(--theme-primary, #1fe1f9);
}

.day-events {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  overflow-y: auto;
}

.event-badge {
  padding: 0.35rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 500;
}

.event-badge.birthday {
  background: rgba(255, 107, 107, 0.3);
  border: 1px solid rgba(255, 107, 107, 0.5);
  color: #fff;
}

.event-badge.birthday:hover {
  background: rgba(255, 107, 107, 0.5);
  transform: translateX(3px);
}

.event-badge.holiday {
  background: rgba(74, 158, 255, 0.3);
  border: 1px solid rgba(74, 158, 255, 0.5);
  color: #fff;
}

.event-badge.holiday:hover {
  background: rgba(74, 158, 255, 0.5);
  transform: translateX(3px);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .calendar-header {
    flex-direction: column;
    align-items: stretch;
  }

  .calendar-title {
    text-align: center;
    order: -1;
  }

  .calendar-view-toggle {
    justify-content: center;
  }

  .year-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
  }

  .month-grid {
    gap: 0.5rem;
    padding: 1rem;
  }

  .day-large {
    min-height: 80px;
  }
}

@media (max-width: 768px) {
  .calendar-section {
    padding: 1rem;
  }

  .calendar-title {
    font-size: 1.5rem;
  }

  .year-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }

  .month-grid {
    gap: 0.25rem;
    padding: 0.5rem;
  }

  .day-large {
    min-height: 60px;
    padding: 0.25rem;
  }

  .day-number {
    font-size: 0.9rem;
  }

  .event-badge {
    font-size: 0.65rem;
    padding: 0.25rem 0.35rem;
  }

  .current-month-title {
    font-size: 1.3rem;
  }

  .month-nav-btn {
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 480px) {
  .title {
    font-size: 1.3rem;
  }

  .year-grid {
    grid-template-columns: 1fr;
  }

  .calendar-header {
    gap: 0.5rem;
  }

  .calendar-view-toggle {
    flex-direction: column;
  }

  .view-toggle-btn {
    width: 100%;
  }
}