/* Advanced Schedule Component Styles */
/* This file contains all styles for the advanced schedule component to ensure consistency across all templates */

/* App Theme Colors - Supports both main and primary/secondary systems */
:root {
  --main-color: #67645e;
  --light-color: #f1f0ed;
}

/* Main color system (homepage) */
.bg-main {
  background-color: var(--main-color);
}
.text-main {
  color: var(--main-color);
}
.border-main {
  border-color: var(--main-color);
}

/* Primary/Secondary color system (microsite) */
.bg-primary {
  background-color: var(--primary-color);
}
.text-primary {
  color: var(--primary-color);
}
.border-primary {
  border-color: var(--primary-color);
}

/* Main color system utilities (homepage) */
.bg-main\/90 {
  background-color: rgba(103, 100, 94, 0.9);
}
.bg-main\/10 {
  background-color: rgba(103, 100, 94, 0.1);
}
.bg-main\/5 {
  background-color: rgba(103, 100, 94, 0.05);
}
.bg-main\/20 {
  background-color: rgba(103, 100, 94, 0.2);
}
.bg-main\/80 {
  background-color: rgba(103, 100, 94, 0.8);
}
.text-main\/80 {
  color: rgba(103, 100, 94, 0.8);
}
.border-main\/30 {
  border-color: rgba(103, 100, 94, 0.3);
}
.border-main\/50 {
  border-color: rgba(103, 100, 94, 0.5);
}
.hover\:bg-main\/10:hover {
  background-color: rgba(103, 100, 94, 0.1);
}
.hover\:bg-main\/20:hover {
  background-color: rgba(103, 100, 94, 0.2);
}
.hover\:bg-main\/90:hover {
  background-color: rgba(103, 100, 94, 0.9);
}
.hover\:bg-main\/5:hover {
  background-color: rgba(103, 100, 94, 0.05);
}
.hover\:border-main\/50:hover {
  border-color: rgba(103, 100, 94, 0.5);
}
.focus\:ring-main:focus {
  --tw-ring-color: var(--main-color);
}
.focus\:border-main:focus {
  border-color: var(--main-color);
}

/* Gradient utilities */
.bg-gradient-to-br {
  background-image: linear-gradient(to bottom right, var(--tw-gradient-stops));
}
.from-main {
  --tw-gradient-from: var(--main-color);
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(103, 100, 94, 0));
}
.to-main\/80 {
  --tw-gradient-to: rgba(103, 100, 94, 0.8);
}

/* Black overlay utilities */
.bg-black\/40 {
  background-color: rgba(0, 0, 0, 0.4);
}

/* Primary color system utilities (microsite) */
.bg-primary\/90 {
  background-color: var(--primary-color);
}
.bg-primary\/10 {
  background-color: var(--primary-color);
  opacity: 0.1;
}
.bg-primary\/5 {
  background-color: var(--primary-color);
  opacity: 0.05;
}
.bg-primary\/20 {
  background-color: var(--primary-color);
  opacity: 0.2;
}
.text-primary\/80 {
  color: var(--primary-color);
  opacity: 0.8;
}
.border-primary\/30 {
  border-color: var(--primary-color);
  opacity: 0.3;
}
.border-primary\/50 {
  border-color: var(--primary-color);
  opacity: 0.5;
}
.hover\:bg-primary\/10:hover {
  background-color: var(--primary-color);
  opacity: 0.1;
}
.hover\:bg-primary\/20:hover {
  background-color: var(--primary-color);
  opacity: 0.2;
}
.hover\:bg-primary\/90:hover {
  background-color: var(--primary-color);
}
.hover\:bg-primary\/5:hover {
  background-color: var(--primary-color);
  opacity: 0.05;
}
.hover\:border-primary\/50:hover {
  border-color: var(--primary-color);
  opacity: 0.5;
}
.focus\:ring-primary:focus {
  --tw-ring-color: var(--primary-color);
}
.focus\:border-primary:focus {
  border-color: var(--primary-color);
}

/* Beautiful Universal Card Styles */
.class-card {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.class-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.class-card:active {
  transform: translateY(0);
}

/* Beautiful button animations */
button {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

button:hover {
  transform: translateY(-1px);
}

button:active {
  transform: translateY(0);
}

/* Beautiful filter button animations with main color */
button[class*="bg-main"] {
  box-shadow: 0 4px 6px -1px rgba(103, 100, 94, 0.1),
    0 2px 4px -1px rgba(103, 100, 94, 0.06);
}

button[class*="bg-main"]:hover {
  box-shadow: 0 10px 15px -3px rgba(103, 100, 94, 0.2),
    0 4px 6px -2px rgba(103, 100, 94, 0.1);
}

/* Beautiful filter button animations with primary color */
button[class*="bg-primary"] {
  box-shadow: 0 4px 6px -1px rgba(79, 70, 229, 0.1),
    0 2px 4px -1px rgba(79, 70, 229, 0.06);
}

button[class*="bg-primary"]:hover {
  box-shadow: 0 10px 15px -3px rgba(79, 70, 229, 0.2),
    0 4px 6px -2px rgba(79, 70, 229, 0.1);
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb {
  background: var(--main-color);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(103, 100, 94, 0.8);
}

/* Program Schedule Block Styles */
.program-schedule {
  padding: 2em;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.program-schedule h2 {
  font-size: 1.5em;
  margin-bottom: 1em;
  color: #333;
}

.program-schedule .description {
  margin-bottom: 2em;
  color: #666;
}

.program-schedule .days {
  display: grid;
  gap: 1.5em;
}

.program-schedule .day {
  padding: 1.5em;
  background: #f8f9fa;
  border-radius: 6px;
  border-left: 4px solid #4a90e2;
}

.program-schedule .day-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1em;
}

.program-schedule .day-header h3 {
  font-size: 1.2em;
  color: #333;
  margin: 0;
}

.program-schedule .date {
  color: #666;
  font-size: 0.9em;
}

.program-schedule .highlights {
  margin-top: 1em;
  padding-left: 1.5em;
}

.program-schedule .highlights li {
  margin-bottom: 0.5em;
  color: #555;
}

.program-schedule .highlights li:before {
  content: "•";
  color: #4a90e2;
  display: inline-block;
  width: 1em;
  margin-left: -1em;
}

.program-schedule .note {
  margin-top: 2em;
  padding: 1em;
  background: #fff3cd;
  border-radius: 4px;
  color: #856404;
  font-style: italic;
}

/* Responsive Design */
@media (max-width: 768px) {
  .program-schedule {
    padding: 1em;
  }

  .program-schedule .day-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5em;
  }
}

/* Schedule Component Specific Styles */
.schedule-content {
  padding: 1rem;
}

.city-section {
  margin-bottom: 2rem;
}

.city-name {
  font-size: 1.25rem;
  font-weight: bold;
  margin-bottom: 1rem;
  color: #333;
}

.instructor-group {
  margin-bottom: 15px;
}

.instructor-name {
  font-weight: bold;
  margin-bottom: 10px;
  color: #447e9b;
}

.class-item {
  margin-left: 20px;
  margin-bottom: 8px;
}

.class-details {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.class-details .date {
  font-weight: 600;
  color: #666;
}

.class-details .time {
  color: #888;
}

.class-details .class-name {
  font-weight: 500;
  color: #333;
}

.class-details .location {
  color: #666;
  font-style: italic;
}

/* Export Button Styles */
.unfold-btn {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease-in-out;
}

.unfold-btn-primary {
  background-color: #67645e;
  color: white;
  border: 1px solid #67645e;
}

.unfold-btn-primary:hover {
  background-color: #5a5751;
  border-color: #5a5751;
  transform: translateY(-1px);
}

.unfold-btn i {
  margin-right: 0.5rem;
}

/* Loading and Empty States */
.loading-spinner {
  display: inline-block;
  width: 2rem;
  height: 2rem;
  border: 2px solid #f3f4f6;
  border-radius: 50%;
  border-top-color: #67645e;
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Filter Styles */
.filter-container {
  background: white;
  border-radius: 0.75rem;
  padding: 1.5rem;
  border: 1px solid #e5e7eb;
  margin-bottom: 2rem;
}

.filter-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 1024px) {
  .filter-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.filter-group {
  display: flex;
  flex-direction: column;
}

.filter-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  font-weight: 500;
  color: #111827;
}

.filter-select {
  width: 100%;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  background: white;
  transition: all 0.2s ease-in-out;
}

.filter-select:focus {
  outline: none;
  ring: 2px;
  ring-color: #67645e;
  border-color: #67645e;
}

.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.filter-button {
  padding: 0.375rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid;
}

.filter-button.active {
  background-color: #67645e;
  color: white;
  border-color: #67645e;
}

.filter-button:not(.active) {
  background-color: white;
  color: #67645e;
  border-color: #d1d5db;
}

.filter-button:not(.active):hover {
  background-color: rgba(103, 100, 94, 0.05);
}

/* Clear Filters */
.clear-filters-container {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #e5e7eb;
}

.clear-filters-button {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: #6b7280;
  transition: color 0.2s ease-in-out;
}

.clear-filters-button:hover {
  color: #374151;
}

/* Results Summary */
.results-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.results-count {
  color: #6b7280;
}

/* Day Navigator */
.day-navigator {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

/* Mobile adjustments */
@media (min-width: 640px) {
  .day-navigator {
    gap: 1rem;
    margin-bottom: 2rem;
  }
}

@media (min-width: 768px) {
  .day-navigator {
    gap: 1.5rem;
  }
}

.day-button {
  text-align: center;
  padding: 0.5rem 0.25rem;
  border-radius: 0.5rem;
  border: 2px solid;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  min-height: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

/* Mobile adjustments for day buttons */
@media (min-width: 640px) {
  .day-button {
    padding: 0.75rem 0.5rem;
    border-radius: 0.75rem;
    min-height: 3.5rem;
  }
}

@media (min-width: 768px) {
  .day-button {
    padding: 1rem 0.5rem;
    min-height: 4rem;
  }
}

.day-button.past {
  border-color: #e5e7eb;
  background-color: #f9fafb;
  color: #9ca3af;
  cursor: not-allowed;
  opacity: 0.5;
}

.day-button.selected {
  border-color: #67645e;
  background-color: #67645e;
  color: white;
  box-shadow: 0 4px 8px -2px rgba(103, 100, 94, 0.3);
  transform: scale(1.02);
  font-weight: 600;
}

.day-button.today {
  border-color: rgba(103, 100, 94, 0.6);
  background-color: rgba(103, 100, 94, 0.15);
  color: #67645e;
  font-weight: 600;
  box-shadow: 0 2px 4px -1px rgba(103, 100, 94, 0.2);
}

/* Mobile adjustments for selected and today states */
@media (min-width: 640px) {
  .day-button.selected {
    box-shadow: 0 6px 12px -3px rgba(103, 100, 94, 0.3);
    transform: scale(1.05);
  }
  
  .day-button.today {
    box-shadow: 0 2px 6px -1px rgba(103, 100, 94, 0.2);
  }
}

@media (min-width: 768px) {
  .day-button.selected {
    box-shadow: 0 8px 16px -4px rgba(103, 100, 94, 0.3);
    transform: scale(1.08);
  }
  
  .day-button.today {
    box-shadow: 0 2px 8px -2px rgba(103, 100, 94, 0.2);
  }
}

.day-button.has-classes {
  border-color: rgba(103, 100, 94, 0.4);
  background-color: rgba(103, 100, 94, 0.08);
  color: rgba(103, 100, 94, 0.9);
  font-weight: 500;
}

.day-button.has-classes:hover {
  background-color: rgba(103, 100, 94, 0.15);
  border-color: rgba(103, 100, 94, 0.6);
  transform: scale(1.01);
}

.day-button.default {
  border-color: #e5e7eb;
  background-color: white;
  color: #6b7280;
}

.day-button.default:hover {
  background-color: #f9fafb;
  border-color: #d1d5db;
  transform: scale(1.01);
}

/* Mobile adjustments for hover effects */
@media (min-width: 640px) {
  .day-button.has-classes:hover {
    transform: scale(1.02);
  }
  
  .day-button.default:hover {
    transform: scale(1.02);
  }
}

.day-name {
  font-weight: 600;
  margin-bottom: 0.25rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.day-date {
  font-size: 0.875rem;
  font-weight: 700;
  margin-bottom: 0.125rem;
}

.class-indicator {
  width: 0.25rem;
  height: 0.25rem;
  background-color: #67645e;
  border-radius: 50%;
  margin: 0.125rem auto 0;
}

/* Mobile adjustments for typography */
@media (min-width: 640px) {
  .day-name {
    margin-bottom: 0.375rem;
    font-size: 0.875rem;
  }
  
  .day-date {
    font-size: 1rem;
    margin-bottom: 0.25rem;
  }
  
  .class-indicator {
    width: 0.375rem;
    height: 0.375rem;
    margin: 0.25rem auto 0;
  }
}

@media (min-width: 768px) {
  .day-name {
    margin-bottom: 0.5rem;
  }
  
  .day-date {
    margin-bottom: 0.25rem;
  }
}

/* Week Navigation */
.week-navigation {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
}

.week-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.week-button {
  padding: 0.5rem;
  border-radius: 0.5rem;
  transition: all 0.2s ease-in-out;
  cursor: pointer;
}

.week-button:hover {
  background-color: #f3f4f6;
}

.week-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.week-range {
  font-size: 1.25rem;
  font-weight: 600;
  color: #111827;
}

/* Classes Grid */
.classes-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .classes-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .classes-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Date Grouping */
.date-section {
  margin-bottom: 2.5rem;
}

.date-header {
  font-size: 1.25rem;
  font-weight: 600;
  color: #111827;
  margin-bottom: 1rem;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 3rem 1rem;
}

.empty-state-icon {
  width: 4rem;
  height: 4rem;
  margin: 0 auto 1rem;
  color: #d1d5db;
}

.empty-state-title {
  font-size: 1.125rem;
  font-weight: 500;
  color: #111827;
  margin-bottom: 0.5rem;
}

.empty-state-description {
  color: #6b7280;
  margin-bottom: 1rem;
}

.reset-filters-button {
  padding: 0.5rem 1rem;
  background-color: rgba(103, 100, 94, 0.1);
  color: #67645e;
  border-radius: 0.5rem;
  transition: all 0.2s ease-in-out;
}

.reset-filters-button:hover {
  background-color: rgba(103, 100, 94, 0.2);
}

/* Additional Universal Card Styles for Schedule Components */
.universal-card {
  transition: all 0.3s ease-in-out;
}

.universal-card:hover {
  transform: scale(1.02);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.universal-card:active {
  transform: scale(0.98);
}

/* Animation for background pattern */
.universal-card:hover .absolute.inset-0.opacity-10 {
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

/* Shine effect on hover */
.universal-card:hover::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s;
  z-index: 1;
}

.universal-card:hover::before {
  left: 100%;
}

/* Text line clamping utilities */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-4 {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Hide scrollbar but allow scrolling */
.hide-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.hide-scrollbar::-webkit-scrollbar {
  display: none;
}

/* Enhanced button animations for schedule components */
button {
  transition: all 0.2s ease-in-out;
}

button:hover {
  transform: translateY(-1px);
}

button:active {
  transform: translateY(0);
}

/* Filter button animations for schedule components */
button[class*="bg-main"] {
  box-shadow: 0 2px 4px rgba(103, 100, 94, 0.2);
}

button[class*="bg-main"]:hover {
  box-shadow: 0 4px 8px rgba(103, 100, 94, 0.3);
} 