/* ===== GLOBAL STYLES & VARIABLES ===== */
:root {
  --color-primary: #8B0000;
  --color-primary-rgb: 139, 0, 0;
  --color-secondary: rgb(98, 2, 117);
  --color-accent: #C9ADA7;
  --color-text: #F2E9E4;
  --color-emergency: #2B2D42;
}

body {
  background: linear-gradient(135deg, #2B2D42 0%, #8B0000 100%);
  background-size: 400% 400%;
  animation: gradientBG 15s ease infinite;
}

/* Scrollbar styles */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: #2B2D42;
}
::-webkit-scrollbar-thumb {
  background: #8B0000;
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgb(98, 2, 117);
}

/* Tab bar styles */
.tab-bar {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
  border-bottom: 2px solid #8B0000;
}

.tab-button {
  background: transparent;
  border: none;
  color: #F2E9E4;
  padding: 12px 24px;
  margin: 0 5px;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.tab-button.active {
  color: #C9ADA7;
  font-weight: bold;
}

.tab-button.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 3px;
  background: #8B0000;
}

.tab-button:hover:not(.active) {
  color: #8B0000;
}

.tab-button[data-demo="true"] {
  cursor: pointer !important;
}

.tab-pane {
  display: none;
}

.tab-pane.active {
  display: block;
}

/* Favorites Modal */
.favorites-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.favorites-modal .modal-content {
  position: relative;
  background: #2B2D42;
  border-radius: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  overflow: auto;
  display: flex;
  flex-direction: column;
}

.favorites-modal .gallery-title {
  color: #F2E9E4;
  font-size: 2rem;
  text-align: center;
  margin: 20px 0;
  font-weight: bold;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.favorites-modal .close-modal {
  position: fixed;
  top: 20px;
  right: 20px;
  font-size: 2rem;
  color: #F2E9E4;
  background: rgba(139, 0, 0, 0.7);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1001;
  border: 2px solid rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: all 0.2s ease;
}

.favorites-modal .close-modal:hover {
  background: rgba(139, 0, 0, 0.9);
  transform: scale(1.1);
  border-color: rgba(255, 255, 255, 0.6);
}

.favorites-modal .gallery-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  height: 100%;
  width: 100%;
  position: relative;
  flex: 1;
}

.favorites-modal .gallery-viewport {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 20px;
}

.favorites-modal .favorite-media-container {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.favorites-modal .favorite-media {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.7);
  border: 2px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  background-color: rgba(0,0,0,0.2);
}

.favorites-modal .nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(139, 0, 0, 0.5);
  color: #F2E9E4;
  border: none;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  font-size: 2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  border: 2px solid rgba(255, 255, 255, 0.3);
  transition: all 0.2s ease;
}

.favorites-modal .nav-arrow:hover {
  background: rgba(139, 0, 0, 0.8);
  transform: translateY(-50%) scale(1.1);
  border-color: rgba(255, 255, 255, 0.6);
}

.favorites-modal .left-arrow {
  left: 20px;
}

.favorites-modal .right-arrow {
  right: 20px;
}

.favorites-modal .favorite-tags {
  position: absolute;
  bottom: 15px;
  left: 15px;
  color: #E0E0E0;
  font-size: 1rem;
  text-align: left;
  background: rgba(0, 0, 0, 0.6);
  padding: 8px 12px;
  border-radius: 8px;
  max-width: calc(100% - 150px);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

.favorites-modal .gallery-counter {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.6);
  color: #F2E9E4;
  padding: 8px 18px;
  border-radius: 20px;
  font-size: 1rem;
  font-weight: bold;
  z-index: 100;
  box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

.favorites-modal .remove-favorite-button {
  position: absolute;
  bottom: 15px;
  right: 15px;
  z-index: 100;
  background: rgba(200, 50, 50, 0.8);
  color: #F2E9E4;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 8px;
  padding: 10px 15px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.favorites-modal .remove-favorite-button:hover {
  background: rgba(220, 40, 40, 1);
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0,0,0,0.5);
}

.favorites-modal .empty-favorites {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #F2E9E4;
  text-align: center;
  padding: 20px;
}

.favorites-modal .empty-favorites svg {
  opacity: 0.3;
  margin-bottom: 20px;
}

.favorites-modal .empty-msg {
  font-size: 1.5rem;
  margin-bottom: 10px;
  color: #C9ADA7;
}

.favorites-modal .empty-hint {
  font-size: 1rem;
  opacity: 0.7;
}

.favorites-modal .play-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.3);
  cursor: pointer;
  transition: all 0.2s ease;
}

.favorites-modal .play-overlay:hover {
  background: rgba(0, 0, 0, 0.5);
}

.favorites-modal .play-overlay svg {
  opacity: 0.8;
  transition: all 0.2s ease;
}

.favorites-modal .play-overlay:hover svg {
  opacity: 1;
  transform: scale(1.1);
}

/* Responsive adjustments for favorites modal */
@media (max-width: 768px) {
  .favorites-modal .gallery-title {
    font-size: 1.5rem;
    margin: 15px 0;
  }
  
  .favorites-modal .close-modal {
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
    top: 10px;
    right: 10px;
  }
  
  .favorites-modal .nav-arrow {
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
  }
  
  .favorites-modal .favorite-tags {
    font-size: 0.9rem;
    padding: 8px 15px;
  }
  
  .favorites-modal .remove-favorite-button {
    font-size: 0.8rem;
    padding: 6px 10px;
  }
  
  .favorites-modal .empty-msg {
    font-size: 1.2rem;
  }
  
  .favorites-modal .empty-hint {
    font-size: 0.9rem;
  }
} 
@keyframes favoriteHeartAnimation {
  0% {
    transform: translate(-50%, -50%) scale(0);
    opacity: 0.9;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.5);
    opacity: 0.5;
  }
  100% {
    transform: translate(-50%, -50%) scale(2);
    opacity: 0;
  }
}