/* Modern Opening Hours Component Styles */
:root {
  --oh-modern-primary-color: #d4a762;
  --oh-modern-text-dark: #2c2c2c;
  --oh-modern-text-light: #666666;
  --oh-modern-background: #ffffff;
  --oh-modern-card-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  --oh-modern-open-color: #4caf50;
  --oh-modern-closed-color: #f44336;
  --oh-modern-accent-light: rgba(212, 167, 98, 0.1);
  --oh-modern-border-radius: 12px;
  --oh-modern-transition: all 0.3s ease;
}

/* Container styles */
.oh-modern-container {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
}

/* Card styles */
.oh-modern-card {
  background: var(--oh-modern-background);
  border-radius: var(--oh-modern-border-radius);
  box-shadow: var(--oh-modern-card-shadow);
  padding: 1.75rem;
  position: relative;
  overflow: hidden;
  transition: var(--oh-modern-transition);
  transform: translateY(0);
  border-left: 4px solid var(--oh-modern-primary-color);
}

.oh-modern-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

/* Decorative background pattern */
.oh-modern-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle at top right, var(--oh-modern-accent-light) 0%, transparent 70%);
  opacity: 0.8;
  z-index: 0;
  pointer-events: none;
}

/* Header styles */
.oh-modern-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.oh-modern-header h3 {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--oh-modern-text-dark);
  margin: 0;
  letter-spacing: -0.02em;
}

/* Status indicator */
.oh-modern-status {
  display: flex;
  align-items: center;
  gap: 8px;
}

.oh-status-indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--oh-modern-closed-color);
  box-shadow: 0 0 0 rgba(244, 67, 54, 0.4);
  transition: var(--oh-modern-transition);
}

.oh-status-indicator.open {
  background-color: var(--oh-modern-open-color);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.4);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(76, 175, 80, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(76, 175, 80, 0);
  }
}

.oh-status-text {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--oh-modern-text-light);
}

/* Divider styles */
.oh-modern-divider {
  margin: 1.25rem 0;
  position: relative;
  z-index: 1;
}

.oh-divider-line {
  height: 2px;
  background: linear-gradient(90deg, 
    transparent 0%, 
    var(--oh-modern-primary-color) 20%, 
    var(--oh-modern-primary-color) 80%, 
    transparent 100%);
  opacity: 0.6;
}

/* Table styles */
.oh-modern-content {
  position: relative;
  z-index: 1;
}

.oh-modern-table {
  width: 100%;
  border-collapse: collapse;
}

.oh-modern-table tr {
  opacity: 0;
  transform: translateY(10px);
  animation: fadeInUp 0.5s forwards;
  animation-delay: calc(var(--row-index, 0) * 0.1s);
}

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

.oh-modern-table td {
  padding: 0.8rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.oh-modern-table tr:last-child td {
  border-bottom: none;
}

.oh-modern-table .day {
  font-weight: 500;
  color: var(--oh-modern-text-dark);
  font-size: 1rem;
}

.oh-modern-table .hours {
  text-align: right;
  color: var(--oh-modern-text-light);
  font-size: 1rem;
}

/* Closed day styling */
.oh-modern-table tr.closed .hours {
  color: var(--oh-modern-closed-color);
  font-style: italic;
}

/* Today highlighting */
.oh-modern-table tr.today {
  background-color: var(--oh-modern-accent-light);
  border-radius: 6px;
}

.oh-modern-table tr.today .day {
  font-weight: 600;
  color: var(--oh-modern-primary-color);
}

.oh-modern-table tr.today .day::before {
  content: "•";
  display: inline-block;
  margin-right: 6px;
  color: var(--oh-modern-primary-color);
}

/* Footer styles */
.oh-modern-footer {
  margin-top: 1.25rem;
  text-align: center;
  position: relative;
  z-index: 1;
}

.oh-modern-footer p {
  font-size: 0.95rem;
  color: var(--oh-modern-text-light);
  margin: 0.5rem 0 0;
  font-style: italic;
}

.oh-modern-decoration {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 0.5rem;
}

.oh-decoration-icon {
  color: var(--oh-modern-primary-color);
  font-size: 1.2rem;
  opacity: 0.7;
}

/* Theme variations */
.oh-modern-container.dark-theme {
  --oh-modern-background: #2c2c2c;
  --oh-modern-text-dark: #ffffff;
  --oh-modern-text-light: #cccccc;
  --oh-modern-card-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
  --oh-modern-accent-light: rgba(212, 167, 98, 0.15);
}

.oh-modern-container.minimal {
  --oh-modern-border-radius: 0;
  --oh-modern-card-shadow: none;
}

.oh-modern-container.minimal .oh-modern-card {
  border-left: none;
  border-bottom: 2px solid var(--oh-modern-primary-color);
  padding: 1rem;
}

/* Responsive adaptations */
@media (max-width: 768px) {
  .oh-modern-card {
    padding: 1.25rem;
  }
  
  .oh-modern-header h3 {
    font-size: 1.2rem;
  }
  
  .oh-modern-footer p {
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  .oh-modern-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  
  .oh-status-text {
    font-size: 0.85rem;
  }
  
  .oh-modern-table .day,
  .oh-modern-table .hours {
    font-size: 0.95rem;
  }
}