/* 
 * Winners Page Specific Styles
 */ 

/* Winners Marquee Gallery Styles */
.winners-marquee-container {
  margin: 2rem 0;
  overflow: hidden;
}

.marquee {
  --duration: 60s;
  --gap: 2rem;
  display: flex;
  overflow: hidden;
  user-select: none;
  gap: var(--gap);
  transform: skewY(-3deg);
  margin-bottom: 2rem;
}

.marquee__group {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: var(--gap);
  min-width: 100%;
  animation: scroll var(--duration) linear infinite;
}

@media (prefers-reduced-motion: reduce) {
  .marquee__group {
    animation-play-state: paused;
  }
}

.marquee__group img {
  max-width: clamp(8rem, 1rem + 20vmin, 15rem);
  aspect-ratio: 1;
  object-fit: cover;
  object-position: top center;
  border-radius: 1rem;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
}

.marquee__group img:hover {
  transform: scale(1.05);
}

.marquee__group p {
  color: var(--primary);
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
}

.marquee--borders {
  border-block: 3px solid var(--primary);
  padding-block: 0.75rem;
  transform: skewY(0deg);
}

.marquee--reverse .marquee__group {
  animation-direction: reverse;
  animation-delay: calc(var(--duration) / -2);
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(calc(-100% - var(--gap)));
  }
}

/* Dark theme adjustments */
.dark-theme .marquee__group img {
  box-shadow: 0 8px 25px rgba(255, 255, 255, 0.1);
}

.dark-theme .marquee--borders {
  border-block-color: var(--primary);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .marquee {
    --gap: 1rem;
    --duration: 45s;
    transform: skewY(-2deg);
  }
  
  .marquee__group img {
    max-width: clamp(8rem, 1rem + 25vmin, 12rem);
  }
  
  .marquee__group p {
    font-size: 1.2rem;
  }
}

@media (max-width: 480px) {
  .marquee {
    --gap: 1rem;
    --duration: 35s;
    transform: skewY(-1deg);
  }
  
  .marquee__group img {
    max-width: clamp(10rem, 1rem + 30vmin, 15rem);
  }
  
  .marquee__group p {
    font-size: 1.7rem;
  }
} 

/* Entry List Modal Styles - Clean & Minimal */
#entryListModal .modal-content {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

#entryListModal .modal-header {
  background: linear-gradient(135deg, var(--primary), var(--gradient-mid));
  color: white;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px 16px 0 0;
  padding: 1.25rem 1.5rem;
}

#entryListModal .modal-title {
  font-weight: 600;
  font-size: 1.2rem;
  margin: 0;
}

#entryListModal .modal-body {
  padding: 1.25rem 1.5rem;
  max-height: 70vh;
  overflow-y: auto;
  color: var(--text-color);
}

#entryListModal .modal-footer {
  background: rgba(255, 255, 255, 0.03);
  border-top: 1px solid var(--glass-border);
  border-radius: 0 0 16px 16px;
  padding: 0.875rem 1.5rem;
}

/* Competition Stats Cards - Clean & Minimal */
.competition-stats .stat-card {
  background: var(--glass-bg);
  backdrop-filter: blur(8px);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  transition: all 0.2s ease;
  height: 100%;
  padding: 1rem;
}

.competition-stats .stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
  border-color: var(--primary);
}

.competition-stats .stat-icon {
  opacity: 0.85;
  margin-bottom: 0.75rem;
}

.competition-stats .stat-value {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.25rem;
  display: block;
}

.competition-stats .stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

/* Dark theme: Make stat labels white */
.dark-theme .competition-stats .stat-label {
  color: white !important;
}

/* Mobile: Make stats 2 per row instead of 4 */
@media (max-width: 767.98px) {
  .competition-stats .col-md-6 {
    flex: 0 0 50% !important;
    max-width: 50% !important;
  }
}

/* Winner Information Section - Clean & Minimal */
.winner-info-section .glass-card {
  background: rgba(var(--primary-rgb), 0.08);
  border: 1px solid rgba(var(--primary-rgb), 0.15);
  border-radius: 10px;
  padding: 1rem;
}

.winner-info-section h6 {
  color: var(--primary);
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 0.75rem;
}

.winner-info-section .icon-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: rgba(var(--primary-rgb), 0.1);
  border: 1px solid rgba(var(--primary-rgb), 0.2);
}

/* Entry List Section - Clean & Minimal */
.entry-list-section {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  padding: 1.25rem;
}

.entry-list-section h6 {
  color: var(--primary);
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.entry-count {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Entry List Table - Clean & Minimal */
.entry-list-table {
  background: transparent;
  margin-bottom: 0;
  color: var(--text-color);
  border-radius: 8px;
  overflow: hidden;
}

.entry-list-table thead th {
  background: linear-gradient(135deg, var(--primary), var(--gradient-mid));
  color: white;
  border: none;
  font-weight: 600;
  padding: 0.875rem 0.75rem;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

.entry-list-table tbody td {
  border-color: var(--glass-border);
  padding: 0.625rem 0.75rem;
  vertical-align: middle;
  color: var(--text-color);
  font-size: 0.875rem;
  font-weight: 400;
}

.entry-list-table tbody tr:nth-child(even) {
  background: rgba(0, 0, 0, 0.02);
}

/* Minimal hover effect */
.entry-list-table tbody tr:hover {
  background: rgba(var(--primary-rgb), 0.03);
}

.entry-list-container {
  overflow-x: hidden;
}

/* Status Badges */
.entry-list-table .badge {
  font-size: 0.75rem;
  padding: 0.4rem 0.6rem;
  border-radius: 6px;
  font-weight: 500;
}

.entry-list-table .badge.bg-success {
  background: linear-gradient(135deg, #28a745, #20c997) !important;
}

.entry-list-table .badge.bg-warning {
  background: linear-gradient(135deg, #ffc107, #fd7e14) !important;
  color: #212529;
}

.entry-list-table .badge.bg-secondary {
  background: linear-gradient(135deg, #6c757d, #495057) !important;
}

/* Entry List Pagination - Clean & Minimal */
.entry-pagination .pagination {
  margin-bottom: 0;
  gap: 0.125rem;
}

.entry-pagination .page-link {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--text-color);
  padding: 0.5rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 500;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.entry-pagination .page-link:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
  transform: translateY(-1px);
}

.entry-pagination .page-item.active .page-link {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

.entry-pagination .page-item.disabled .page-link {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--glass-border);
  color: var(--text-muted);
  opacity: 0.6;
}

/* Loading States */
.entry-list-container .spinner-border {
  width: 1.5rem;
  height: 1.5rem;
}

/* Mobile Responsiveness - Compact & Clean */
@media (max-width: 768px) {
  #entryListModal .modal-dialog {
    margin: 0.5rem;
    max-width: calc(100% - 1rem);
  }

  #entryListModal .modal-header {
    padding: 1rem 1.25rem;
  }

  #entryListModal .modal-title {
    font-size: 1.1rem;
  }

  #entryListModal .modal-body {
    padding: 1rem 1.25rem;
    max-height: 60vh;
  }

  #entryListModal .modal-footer {
    padding: 0.75rem 1.25rem;
  }

  .competition-stats .stat-value {
    font-size: 1.5rem;
  }

  .competition-stats .stat-label {
    font-size: 0.8rem;
  }

  .entry-list-section {
    padding: 1rem;
  }

  .entry-list-table thead th,
  .entry-list-table tbody td {
    padding: 0.5rem 0.25rem;
    font-size: 0.8rem;
  }

  .entry-list-table .badge {
    font-size: 0.7rem;
    padding: 0.3rem 0.5rem;
  }

  .entry-pagination .page-link {
    padding: 0.4rem 0.6rem;
    font-size: 0.75rem;
  }

  .winner-info-section .icon-circle {
    width: 32px;
    height: 32px;
  }

  .winner-info-section h6 {
    font-size: 0.95rem;
  }
}

@media (max-width: 576px) {
  #entryListModal .modal-header {
    padding: 0.875rem 1rem;
  }

  #entryListModal .modal-title {
    font-size: 1rem;
  }

  #entryListModal .modal-body {
    padding: 0.875rem 1rem;
  }

  #entryListModal .modal-footer {
    padding: 0.625rem 1rem;
  }

  .competition-stats .row {
    margin: 0 -0.25rem;
  }

  .competition-stats .col-md-6,
  .competition-stats .col-lg-3 {
    padding: 0 0.25rem;
  }

  .competition-stats .stat-value {
    font-size: 1.4rem;
  }

  .competition-stats .stat-label {
    font-size: 0.75rem;
  }

  .entry-list-section {
    padding: 0.875rem;
  }

  .entry-list-table {
    font-size: 0.75rem;
  }

  .entry-list-table thead th,
  .entry-list-table tbody td {
    padding: 0.4rem 0.2rem;
  }

  .entry-list-table .badge {
    font-size: 0.65rem;
    padding: 0.25rem 0.4rem;
  }

  .entry-pagination .page-link {
    padding: 0.35rem 0.55rem;
    font-size: 0.7rem;
  }

  .entry-count {
    font-size: 0.8rem;
    padding: 0.3rem 0.6rem;
  }

  .winner-info-section .icon-circle {
    width: 30px;
    height: 30px;
  }

  .winner-info-section h6 {
    font-size: 0.9rem;
  }
}

/* Dark Theme Enhancements - Subtle & Clean */
:root.dark-theme #entryListModal .modal-content {
  background: rgba(26, 26, 46, 0.96);
  border-color: rgba(58, 58, 94, 0.7);
}

:root.dark-theme .competition-stats .stat-card {
  background: rgba(26, 26, 46, 0.85);
  border-color: rgba(58, 58, 94, 0.65);
}

:root.dark-theme .winner-info-section .glass-card {
  background: rgba(var(--primary-rgb), 0.12);
  border-color: rgba(var(--primary-rgb), 0.2);
}

:root.dark-theme .entry-list-section {
  background: rgba(26, 26, 46, 0.85);
  border-color: rgba(58, 58, 94, 0.65);
}

:root.dark-theme .entry-list-table tbody td {
  color: #e5e5e5;
}

:root.dark-theme .entry-list-table tbody tr:nth-child(even) {
  background: rgba(58, 58, 94, 0.08);
}

:root.dark-theme .entry-pagination .page-link {
  background: rgba(26, 26, 46, 0.8);
  border-color: rgba(58, 58, 94, 0.6);
  color: #e0e0e0;
}

/* Light Theme Enhancements - Clean & Subtle */
:root.light-theme #entryListModal .modal-content {
  background: rgba(255, 255, 255, 0.98);
  border-color: rgba(0, 0, 0, 0.08);
}

:root.light-theme .competition-stats .stat-card {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(0, 0, 0, 0.08);
}

:root.light-theme .winner-info-section .glass-card {
  background: rgba(var(--primary-rgb), 0.06);
  border-color: rgba(var(--primary-rgb), 0.12);
}

:root.light-theme .entry-list-section {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(0, 0, 0, 0.08);
}

:root.light-theme .entry-list-table tbody td {
  color: #2d3748;
}

:root.light-theme .entry-list-table tbody tr:nth-child(even) {
  background: rgba(0, 0, 0, 0.015);
}

:root.light-theme .entry-pagination .page-link {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(0, 0, 0, 0.08);
  color: #2d3748;
}

/* Animation for modal appearance */
#entryListModal.fade .modal-dialog {
  transform: scale(0.8);
  transition: transform 0.3s ease-out;
}

#entryListModal.show .modal-dialog {
  transform: scale(1);
}

/* Smooth transitions for all interactive elements */
.competition-stats .stat-card,
.entry-list-table tbody tr,
.entry-pagination .page-link,
.winner-info-section .glass-card {
  transition: all 0.3s ease;
}

/* Focus states for accessibility */
.entry-pagination .page-link:focus {
  box-shadow: 0 0 0 0.2rem rgba(var(--primary-rgb), 0.25);
  outline: none;
}

/* Custom scrollbar for modal body */
#entryListModal .modal-body::-webkit-scrollbar {
  width: 8px;
}

#entryListModal .modal-body::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}

#entryListModal .modal-body::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 4px;
}

#entryListModal .modal-body::-webkit-scrollbar-thumb:hover {
  background: var(--gradient-mid);
} 

/* Winner Carousel Styles */
.winner-card .carousel {
  margin-bottom: 1rem;
}

.winner-card .carousel-indicators {
  bottom: -10px;
  margin-bottom: 0;
}

.winner-card .carousel-indicators button {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: rgba(var(--primary-rgb), 0.3);
  border: none;
  margin: 0 2px;
  transition: all 0.2s ease;
}

.winner-card .carousel-indicators button.active {
  background-color: var(--primary);
  transform: scale(1.2);
}

.winner-card .carousel-control-prev,
.winner-card .carousel-control-next {
  width: 30px;
  height: 30px;
  background: rgba(var(--primary-rgb), 0.8);
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
  margin: 0 5px;
}

.winner-card .carousel-control-prev {
  left: 5px;
}

.winner-card .carousel-control-next {
  right: 5px;
}

.winner-card .carousel-control-prev-icon,
.winner-card .carousel-control-next-icon {
  width: 15px;
  height: 15px;
}

.winner-card .carousel-inner {
  border-radius: 8px;
  overflow: hidden;
}

.winner-card .carousel-item {
  padding: 0.5rem;
}

/* Winner Details Carousel */
#winnerDetailsCarousel .carousel-indicators {
  position: relative;
  margin-top: 10px;
  bottom: 0;
}

#winnerDetailsCarousel .carousel-control-prev,
#winnerDetailsCarousel .carousel-control-next {
  background: none;
  opacity: 0.7;
}

#winnerDetailsCarousel .carousel-control-prev-icon,
#winnerDetailsCarousel .carousel-control-next-icon {
  filter: invert(1) grayscale(100%) brightness(80%);
}

/* Multiple Winners Indicator */
.winner-card .multiple-winners-indicator {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(255, 193, 7, 0.9);
  color: #212529;
  padding: 0.25rem 0.5rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  z-index: 10;
} 

/* Winner Details Container */
.winner-details-container {
  position: relative;
  min-height: 100px;
  transition: all 0.3s ease;
}

.winner-details-item {
  transition: opacity 0.3s ease;
}

/* Make carousel controls more visible */
.winner-card .carousel-control-prev,
.winner-card .carousel-control-next {
  opacity: 0.2;
  transition: opacity 0.3s ease;
}

.winner-card .carousel-control-prev:hover,
.winner-card .carousel-control-next:hover {
  opacity: 0.9;
}

/* Improve carousel indicators */
.winner-card .carousel-indicators {
  margin-bottom: -5px;
}

/* Add a subtle animation when switching between winner details */
.winner-details-item {
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
} 