/* Apple-inspired Professional Layout */

/* Thumbnail Hover Window Styles */
.thumbnail-hover-window {
  position: fixed;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  opacity: 0;
  visibility: hidden;
  transform: scale(0);
  transform-origin: left center;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  pointer-events: none;
  max-width: 90vw;
}

[data-theme="dark"] .thumbnail-hover-window {
  background: rgba(40, 40, 40, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.thumbnail-hover-window.show {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

.thumbnail-container {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

/* Multi-line layouts for 9+ images */
.thumbnail-container.multi-line {
  flex-wrap: wrap;
  overflow-x: visible;
  max-width: 280px;
}

.thumbnail-container.two-rows {
  max-width: 280px;
}

.thumbnail-container.three-rows {
  max-width: 160px;
}

.thumbnail-container::-webkit-scrollbar {
  display: none;
}

.thumbnail-image {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  object-fit: cover;
  opacity: 0.7;
  transition: all 0.2s ease;
  border: 2px solid transparent;
  flex-shrink: 0;
}

.thumbnail-image:hover {
  opacity: 1;
  transform: scale(1.1);
}

.thumbnail-image.current {
  opacity: 1;
  border: 2px solid rgba(0, 122, 255, 0.8);
  box-shadow: 0 0 8px rgba(0, 122, 255, 0.4);
}

/* Performance Insights Tooltip */
.performance-tooltip {
  position: fixed;
  z-index: 1100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 16px;
  padding: 0;
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.15),
    0 8px 24px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
  opacity: 0;
  visibility: hidden;
  transform: scale(0.8) translateY(10px);
  transform-origin: bottom center;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  pointer-events: none;
  max-width: 340px;
  min-width: 320px;
}

.performance-tooltip.show {
  opacity: 1;
  visibility: visible;
  transform: scale(1) translateY(0);
  pointer-events: all;
}

[data-theme="dark"] .performance-tooltip {
  background: rgba(30, 30, 30, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.4),
    0 8px 24px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.tooltip-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px 12px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

[data-theme="dark"] .tooltip-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.tooltip-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.02em;
}

.tooltip-close {
  font-size: 1.4rem;
  color: var(--text-secondary);
  cursor: pointer;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.tooltip-close:hover {
  background: rgba(0, 0, 0, 0.1);
  color: var(--text-primary);
}

[data-theme="dark"] .tooltip-close:hover {
  background: rgba(255, 255, 255, 0.1);
}

.tooltip-content {
  padding: 16px 20px 20px;
}

.metric-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}

.metric-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.metric-label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.metric-value {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary-color);
  font-family: 'SF Mono', Consolas, monospace;
  letter-spacing: -0.02em;
}

.performance-bar {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bar-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.bar-container {
  position: relative;
  height: 8px;
  background: rgba(0, 0, 0, 0.1);
  border-radius: 4px;
  overflow: hidden;
}

[data-theme="dark"] .bar-container {
  background: rgba(255, 255, 255, 0.1);
}

.bar-fill {
  height: 100%;
  background: linear-gradient(90deg, 
    #34C759 0%, 
    #30D158 50%, 
    #32D74B 100%);
  border-radius: 4px;
  transition: width 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  width: 100%;
}

.bar-fill[data-score="100"] { width: 100%; background: linear-gradient(90deg, #34C759 0%, #30D158 50%, #32D74B 100%); }
.bar-fill[data-score="90"] { width: 90%; background: linear-gradient(90deg, #34C759 0%, #30D158 100%); }
.bar-fill[data-score="80"] { width: 80%; background: linear-gradient(90deg, #FF9500 0%, #FFCC02 100%); }
.bar-fill[data-score="70"] { width: 70%; background: linear-gradient(90deg, #FF9500 0%, #FF6B35 100%); }
.bar-fill[data-score="60"] { width: 60%; background: linear-gradient(90deg, #FF6B35 0%, #FF3B30 100%); }

.bar-percentage {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-primary);
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

/* Apple-inspired Professional Layout */
:root {
  --primary-color: #007AFF;
  --secondary-color: #5856D6;
  --success-color: #34C759;
  --warning-color: #FF9500;
  --error-color: #FF3B30;
  --text-primary: #000000;
  --text-secondary: #6C6C70;
  --background-primary: #EBEBEB;
  --background-secondary: #F2F2F7;
  --card-background: #EBEBEB;
  --border-color: #D1D1D6;
  --shadow-light: 0 2px 10px rgba(0, 0, 0, 0.1);
  --shadow-medium: 0 4px 20px rgba(0, 0, 0, 0.15);
  --border-radius: 12px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] {
  --text-primary: #FFFFFF;
  --text-secondary: #8E8E93;
  --background-primary: #000000;
  --background-secondary: #1C1C1E;
  --card-background: #2C2C2E;
  --border-color: #3A3A3C;
  --shadow-light: 0 2px 10px rgba(0, 0, 0, 0.3);
  --shadow-medium: 0 4px 20px rgba(0, 0, 0, 0.4);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background: var(--background-primary);
  color: var(--text-primary);
  line-height: 1.6;
  transition: var(--transition);
}

/* Apple-Inspired Shortcode Table */
.apple-shortcode-table {
  background: var(--card-background);
  border-radius: 16px;
  box-shadow: var(--shadow-medium);
  margin-bottom: 2rem;
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.table-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  background: linear-gradient(135deg, rgba(0, 122, 255, 0.08) 0%, rgba(88, 86, 214, 0.08) 100%);
  border-bottom: 1px solid var(--border-color);
}

.table-title {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.table-stats {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.stat-separator {
  color: var(--text-secondary);
  opacity: 0.5;
}

.apple-table-container {
  background: var(--background-secondary);
}

.apple-table-header {
  display: grid;
  grid-template-columns: 2fr 2fr 1.2fr 1.5fr 1fr;
  gap: 1rem;
  padding: 1rem 2rem;
  background: var(--card-background);
  border-bottom: 2px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 10;
}

.apple-th {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-secondary);
  padding: 0.5rem 0;
}

.apple-table-body {
  background: var(--background-primary);
}

.apple-row {
  display: grid;
  grid-template-columns: 2fr 2fr 1.2fr 1.5fr 1fr;
  gap: 1rem;
  padding: 1rem 2rem;
  border-bottom: 1px solid var(--border-color);
  transition: background-color 0.15s ease;
  align-items: center;
}

.apple-row:hover {
  background: var(--background-secondary);
}

.apple-row:last-child {
  border-bottom: none;
}

.apple-td {
  font-size: 0.875rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
}

/* Center the Type and Update Frequency columns */
.type-col,
.frequency-col {
  justify-content: center;
  text-align: center;
}

/* Module column styling */
.module-col {
  font-weight: 600;
  color: var(--text-primary);
}

.apple-code {
  background: linear-gradient(135deg, rgba(0, 122, 255, 0.1) 0%, rgba(88, 86, 214, 0.1) 100%);
  color: var(--primary-color);
  padding: 0.375rem 0.75rem;
  border-radius: 8px;
  font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
  font-size: 0.8125rem;
  font-weight: 500;
  border: 1px solid rgba(0, 122, 255, 0.2);
  white-space: nowrap;
}

.type-badge {
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.type-badge.date-based {
  background: linear-gradient(135deg, rgba(52, 199, 89, 0.15) 0%, rgba(48, 209, 88, 0.15) 100%);
  color: #34c759;
  border: 1px solid rgba(52, 199, 89, 0.3);
}

.type-badge.time-based {
  background: linear-gradient(135deg, rgba(0, 122, 255, 0.15) 0%, rgba(88, 86, 214, 0.15) 100%);
  color: #007aff;
  border: 1px solid rgba(0, 122, 255, 0.3);
}

.type-badge.business-logic {
  background: linear-gradient(135deg, rgba(255, 149, 0, 0.15) 0%, rgba(255, 159, 10, 0.15) 100%);
  color: #ff9500;
  border: 1px solid rgba(255, 149, 0, 0.3);
}

.type-badge.random {
  background: linear-gradient(135deg, rgba(255, 59, 48, 0.15) 0%, rgba(255, 69, 58, 0.15) 100%);
  color: #ff3b30;
  border: 1px solid rgba(255, 59, 48, 0.3);
}

/* Dark mode adjustments */
[data-theme="dark"] .apple-code {
  background: linear-gradient(135deg, rgba(0, 122, 255, 0.2) 0%, rgba(88, 86, 214, 0.2) 100%);
  color: #64b5f6;
  border: 1px solid rgba(0, 122, 255, 0.4);
}

[data-theme="dark"] .type-badge.date-based {
  background: linear-gradient(135deg, rgba(52, 199, 89, 0.25) 0%, rgba(48, 209, 88, 0.25) 100%);
  color: #66d981;
  border: 1px solid rgba(52, 199, 89, 0.5);
}

[data-theme="dark"] .type-badge.time-based {
  background: linear-gradient(135deg, rgba(0, 122, 255, 0.25) 0%, rgba(88, 86, 214, 0.25) 100%);
  color: #64b5f6;
  border: 1px solid rgba(0, 122, 255, 0.5);
}

[data-theme="dark"] .type-badge.business-logic {
  background: linear-gradient(135deg, rgba(255, 149, 0, 0.25) 0%, rgba(255, 159, 10, 0.25) 100%);
  color: #ffb347;
  border: 1px solid rgba(255, 149, 0, 0.5);
}

[data-theme="dark"] .type-badge.random {
  background: linear-gradient(135deg, rgba(255, 59, 48, 0.25) 0%, rgba(255, 69, 58, 0.25) 100%);
  color: #ff8a80;
  border: 1px solid rgba(255, 59, 48, 0.5);
}

/* Responsive design */
@media (max-width: 768px) {
  /* Add padding to table on mobile to prevent horizontal scroll */
  .apple-shortcode-table {
    margin: 0 15px;
  }
  
  .apple-table-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 8px;
  }
  
  .apple-table-header,
  .apple-row {
    grid-template-columns: 150px 180px 120px 140px 100px;
    min-width: 690px;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
  }
  
  .table-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
  }
  
  .table-title {
    font-size: 1.25rem;
  }
  
  .table-stats {
    font-size: 0.8rem;
  }
  
  /* Adjust font sizes for mobile */
  .apple-th {
    font-size: 0.7rem;
    padding: 0.5rem 0;
  }
  
  .apple-td {
    font-size: 0.8rem;
  }
  
  .apple-code {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
  }
  
  .type-badge {
    font-size: 0.7rem;
    padding: 0.25rem 0.5rem;
  }
  
  /* Add scroll indicator */
  .apple-table-container::after {
    content: "← Scroll to view more →";
    display: block;
    text-align: center;
    padding: 0.5rem;
    font-size: 0.75rem;
    color: var(--text-secondary);
    background: var(--background-secondary);
    border-top: 1px solid var(--border-color);
  }
}

/* Tablet responsive design */
@media (max-width: 1024px) and (min-width: 769px) {
  .apple-table-header,
  .apple-row {
    grid-template-columns: 1.8fr 1.8fr 1fr 1.2fr 0.8fr;
    padding: 0.875rem 1.5rem;
  }
  
  .apple-th {
    font-size: 0.7rem;
  }
  
  .apple-td {
    font-size: 0.825rem;
  }
  
  .apple-code {
    font-size: 0.8rem;
  }
}

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, 
    #a8c8ff 0%, 
    #c5d9ff 25%, 
    #e3f0ff 50%, 
    #d4e5ff 75%, 
    #b8d1ff 100%);
  background-size: 300% 300%;
  animation: gradientShift 15s ease-in-out infinite;
  border-radius: var(--border-radius);
  padding: 3rem 2rem;
  text-align: center;
  color: #2c3e50;
  margin-bottom: 3rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(168, 200, 255, 0.3);
}

@keyframes gradientShift {
  0% {
    background: linear-gradient(135deg, 
      #a8c8ff 0%, 
      #c5d9ff 25%, 
      #e3f0ff 50%, 
      #d4e5ff 75%, 
      #b8d1ff 100%);
  }
  25% {
    background: linear-gradient(135deg, 
      #c5d9ff 0%, 
      #e3f0ff 20%, 
      #f0f8ff 40%, 
      #e3f0ff 60%, 
      #d4e5ff 80%, 
      #b8d1ff 100%);
  }
  50% {
    background: linear-gradient(135deg, 
      #e3f0ff 0%, 
      #a8c8ff 25%, 
      #c5d9ff 50%, 
      #f0f8ff 75%, 
      #d4e5ff 100%);
  }
  75% {
    background: linear-gradient(135deg, 
      #d4e5ff 0%, 
      #f0f8ff 20%, 
      #c5d9ff 40%, 
      #a8c8ff 60%, 
      #e3f0ff 100%);
  }
  100% {
    background: linear-gradient(135deg, 
      #a8c8ff 0%, 
      #c5d9ff 25%, 
      #e3f0ff 50%, 
      #d4e5ff 75%, 
      #b8d1ff 100%);
  }
}

/* Dark mode hero section - 40% darker blue */
[data-theme="dark"] .hero-section {
  background: linear-gradient(135deg, 
    #6694cc 0%, 
    #8bb3cc 25%, 
    #b8d1cc 50%, 
    #a0c2cc 75%, 
    #7ba8cc 100%);
}

[data-theme="dark"] @keyframes gradientShift {
  0% {
    background: linear-gradient(135deg, 
      #6694cc 0%, 
      #8bb3cc 25%, 
      #b8d1cc 50%, 
      #a0c2cc 75%, 
      #7ba8cc 100%);
  }
  25% {
    background: linear-gradient(135deg, 
      #8bb3cc 0%, 
      #b8d1cc 20%, 
      #c4d9cc 40%, 
      #b8d1cc 60%, 
      #a0c2cc 80%, 
      #7ba8cc 100%);
  }
  50% {
    background: linear-gradient(135deg, 
      #b8d1cc 0%, 
      #6694cc 25%, 
      #8bb3cc 50%, 
      #c4d9cc 75%, 
      #a0c2cc 100%);
  }
  75% {
    background: linear-gradient(135deg, 
      #a0c2cc 0%, 
      #c4d9cc 20%, 
      #8bb3cc 40%, 
      #6694cc 60%, 
      #b8d1cc 100%);
  }
  100% {
    background: linear-gradient(135deg, 
      #6694cc 0%, 
      #8bb3cc 25%, 
      #b8d1cc 50%, 
      #a0c2cc 75%, 
      #7ba8cc 100%);
  }
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: none;
  opacity: 0.4;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 900;
  margin-bottom: 1.5rem;
  padding: 0.3rem 0;
  letter-spacing: -0.02em;
  line-height: 1.2;
  text-align: center;
  background: linear-gradient(135deg, 
    #007AFF 0%, 
    #00D4FF 25%, 
    #5856D6 50%, 
    #AF52DE 75%, 
    #007AFF 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 8s ease-in-out infinite;
  position: relative;
  transform: perspective(500px) rotateX(5deg);
  
  /* Thin light blue border around letters */
  -webkit-text-stroke: 1px rgba(0, 122, 255, 0.4);
  text-stroke: 1px rgba(0, 122, 255, 0.4);
  
  filter: 
    brightness(1.1)
    contrast(1.15)
    saturate(1.2);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: subpixel-antialiased;
  -moz-osx-font-smoothing: auto;
}

.hero-title::before {
  content: '';
  position: absolute;
  top: -10px;
  left: -20px;
  right: -20px;
  bottom: -10px;
  background: linear-gradient(135deg, 
    rgba(0, 122, 255, 0.1) 0%, 
    rgba(0, 212, 255, 0.1) 25%, 
    rgba(88, 86, 214, 0.1) 50%, 
    rgba(175, 82, 222, 0.1) 75%, 
    rgba(0, 122, 255, 0.1) 100%);
  border-radius: 20px;
  filter: blur(20px);
  z-index: -1;
  opacity: 0.6;
  animation: pulseGlow 4s ease-in-out infinite;
}

@keyframes pulseGlow {
  0%, 100% { 
    opacity: 0.6; 
    transform: scale(1);
  }
  50% { 
    opacity: 0.8; 
    transform: scale(1.02);
  }
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* Professional Logo Styling for MyD Dynamic Images */
.logo-title {
  font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Inter', sans-serif;
  font-weight: 800;
  letter-spacing: -0.05em;
  position: relative;
  text-transform: none;
}

.logo-highlight {
  font-weight: 500;
  letter-spacing: 0.01em;
  position: relative;
  display: inline-block;
  background: linear-gradient(135deg, 
    #007AFF 0%, 
    #5856D6 50%, 
    #AF52DE 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: none;
  -webkit-text-stroke: 0.5px rgba(0, 122, 255, 0.3);
  text-stroke: 0.5px rgba(0, 122, 255, 0.3);
}


.logo-dynamic {
  font-weight: 700;
  font-style: normal;
}

.logo-images {
  font-weight: 400;
  font-style: italic;
}

/* Hero Text Line with Inline Images */
.hero-text-line {
  margin-top: 2rem;
  text-align: center;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  flex-wrap: wrap;
  line-height: 1;
}

.hero-text {
  font-size: 20pt;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  line-height: 30px;
  vertical-align: bottom;
  display: inline-block;
}

.inline-module-img {
  width: 30px;
  height: 30px;
  border-radius: 3px;
  margin: 0 1ch;
  vertical-align: bottom;
  display: inline-block;
  transition: transform 0.3s ease;
}

/* Floating animation for inline images */
@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-3px);
  }
}

.float-animation {
  animation: float 2s ease-in-out infinite;
}

.hero-subtitle {
  font-size: 1.35rem;
  font-weight: 500;
  opacity: 0.95;
  margin-bottom: 2.5rem;
  letter-spacing: 0.02em;
  line-height: 1.85;
  color: var(--text-primary);
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  text-align: center;
}

/* Emphasized terms styling */
.emphasis-term {
  font-weight: 700;
  position: relative;
  padding: 2px 6px;
  border-radius: 6px;
  transition: all 0.3s ease;
  animation: termGlow 4s ease-in-out infinite;
}

.emphasis-term.time {
  color: #007AFF;
  background: linear-gradient(135deg, rgba(0, 122, 255, 0.15) 0%, rgba(0, 122, 255, 0.05) 100%);
  border: 1px solid rgba(0, 122, 255, 0.2);
  box-shadow: 0 2px 8px rgba(0, 122, 255, 0.15);
}

.emphasis-term.date {
  color: #34C759;
  background: linear-gradient(135deg, rgba(52, 199, 89, 0.15) 0%, rgba(52, 199, 89, 0.05) 100%);
  border: 1px solid rgba(52, 199, 89, 0.2);
  box-shadow: 0 2px 8px rgba(52, 199, 89, 0.15);
}

.emphasis-term.business {
  color: #FF9500;
  background: linear-gradient(135deg, rgba(255, 149, 0, 0.15) 0%, rgba(255, 149, 0, 0.05) 100%);
  border: 1px solid rgba(255, 149, 0, 0.2);
  box-shadow: 0 2px 8px rgba(255, 149, 0, 0.15);
}

.emphasis-term.intelligent {
  color: #5856D6;
  background: linear-gradient(135deg, 
    rgba(88, 86, 214, 0.2) 0%, 
    rgba(175, 82, 222, 0.15) 50%, 
    rgba(191, 90, 242, 0.1) 100%);
  border: 2px solid rgba(88, 86, 214, 0.3);
  box-shadow: 
    0 2px 12px rgba(88, 86, 214, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  font-size: 1.1em;
  letter-spacing: 0.5px;
  animation: intelligentPulse 3s ease-in-out infinite;
}

@keyframes intelligentPulse {
  0%, 100% { 
    transform: translateY(0px) scale(1); 
    box-shadow: 
      0 2px 12px rgba(88, 86, 214, 0.2),
      inset 0 1px 0 rgba(255, 255, 255, 0.2),
      0 0 0 rgba(88, 86, 214, 0);
  }
  50% { 
    transform: translateY(-2px) scale(1.02); 
    box-shadow: 
      0 6px 20px rgba(88, 86, 214, 0.3),
      inset 0 1px 0 rgba(255, 255, 255, 0.3),
      0 0 30px rgba(88, 86, 214, 0.15);
  }
}

@keyframes termGlow {
  0%, 100% { 
    transform: translateY(0px); 
    box-shadow: 
      0 2px 8px rgba(var(--glow-color), 0.15),
      0 0 0 rgba(var(--glow-color), 0);
  }
  50% { 
    transform: translateY(-1px); 
    box-shadow: 
      0 4px 12px rgba(var(--glow-color), 0.25),
      0 0 20px rgba(var(--glow-color), 0.1);
  }
}

.emphasis-term.time {
  --glow-color: 0, 122, 255;
}

.emphasis-term.date {
  --glow-color: 52, 199, 89;
}

.emphasis-term.business {
  --glow-color: 255, 149, 0;
}

.emphasis-term.intelligent {
  --glow-color: 88, 86, 214;
}


/* Add text primary RGB variable support */
:root {
  --text-primary-rgb: 17, 17, 17;
}

[data-theme="dark"] {
  --text-primary-rgb: 255, 255, 255;
}

/* Time Display */
.time-display {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
}

.time-card {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border-radius: var(--border-radius);
  padding: 20px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 140px;
  height: 140px;
  aspect-ratio: 1 / 1;
  box-sizing: border-box;
}

.time-label {
  font-size: 0.875rem;
  opacity: 0.8;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.time-value {
  font-size: 1.1rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
  margin-top: 4px;
}

/* Header Images */
.header-time-image,
.header-date-image {
  width: 70px;
  height: 70px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  object-fit: cover;
  transform: perspective(1000px) rotateY(-15deg) rotateX(5deg);
  aspect-ratio: 1 / 1;
  margin-top: 10px;
  margin-bottom: -2px;
}

.header-time-image:hover,
.header-date-image:hover {
  transform: perspective(1000px) rotateY(-10deg) rotateX(2deg) scale(1.05);
}

/* Override hover effects for hero section static images */
.hero-static-image:hover {
  transform: none !important;
  perspective: none !important;
  scale: 1 !important;
}

/* Table Styling */
.table {
  width: 100%;
  border-collapse: collapse;
  background: transparent;
}

.table thead th {
  color: var(--text-primary) !important;
  background: rgba(var(--primary-rgb), 0.1);
  font-weight: 600;
  padding: 1rem;
  border-bottom: 2px solid var(--border-color);
  text-align: center;
}

.table tbody td {
  padding: 0.875rem 1rem;
  border-bottom: 1px solid var(--border-color);
  vertical-align: middle;
}

.table tbody tr td:first-child {
  color: var(--text-primary) !important;
  font-weight: 500;
}

.table tbody tr td:not(:first-child) {
  color: var(--text-secondary) !important;
}

.table tbody tr:hover {
  background: rgba(var(--primary-rgb), 0.05);
}

.table-responsive {
  overflow-x: auto;
  border-radius: 12px;
  border: 1px solid var(--border-color);
}

/* Light mode specific table styling */
:root:not([data-theme="dark"]) .table {
  background: #e8e9ea !important;
}

:root:not([data-theme="dark"]) .table thead th {
  background: #f8f9fa !important;
  color: #212529 !important;
  text-align: center !important;
}

:root:not([data-theme="dark"]) .table tbody tr {
  background: #e8e9ea !important;
}

:root:not([data-theme="dark"]) .table tbody tr td:first-child {
  color: #212529 !important;
}

:root:not([data-theme="dark"]) .table tbody tr td:not(:first-child) {
  color: #495057 !important;
}

:root:not([data-theme="dark"]) .table tbody tr:hover {
  background: #dee2e6 !important;
}

:root:not([data-theme="dark"]) .table-responsive {
  background: #e8e9ea !important;
}

/* Theme Toggle */
.theme-toggle {
  position: fixed;
  top: 2rem;
  right: 2rem;
  z-index: 1000;
  background: var(--card-background);
  border: 1px solid var(--border-color);
  border-radius: 50px;
  padding: 0.75rem 1.5rem;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-light);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
}

.theme-toggle:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-medium);
}

.theme-icon {
  width: 16px;
  height: 16px;
  transition: var(--transition);
}

/* Section Headers */
.section-header {
  text-align: center;
  margin: 4rem 0 2rem;
}

.section-title {
  font-size: 2.8rem;
  font-weight: 900;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
  font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  background: linear-gradient(135deg, #007AFF 0%, #5856D6 25%, #AF52DE 50%, #FF3B30 75%, #FF9500 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 300% 300%;
  animation: rainbowShift 8s ease-in-out infinite;
  text-align: center;
  position: relative;
}

.section-title::before {
  content: '';
  position: absolute;
  top: -20px;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, rgba(0, 122, 255, 0.4) 20%, rgba(175, 82, 222, 0.4) 80%, transparent 100%);
  z-index: -1;
  border-radius: 1px;
}

@keyframes rainbowShift {
  0%, 100% {
    background-position: 0% 50%;
  }
  25% {
    background-position: 100% 0%;
  }
  50% {
    background-position: 100% 100%;
  }
  75% {
    background-position: 0% 100%;
  }
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* Image Cards */
.image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 4rem;
}

.image-card {
  background: var(--card-background);
  border-radius: var(--border-radius);
  border: 1px solid var(--border-color);
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-light);
  position: relative;
  transform: translateZ(0);
  will-change: transform, box-shadow;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.image-card:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: var(--shadow-medium), 0 20px 40px rgba(0, 0, 0, 0.15);
  animation: cardHoverScale 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Individual card theme states */
.image-card.light-theme {
  --text-primary: #000000;
  --text-secondary: #6C6C70;
  --card-background: #EBEBEB;
  --border-color: #D1D1D6;
  --shadow-light: 0 2px 10px rgba(0, 0, 0, 0.1);
  background: var(--card-background);
  border-color: var(--border-color);
  color: var(--text-primary);
}

.image-card.dark-theme {
  --text-primary: #FFFFFF;
  --text-secondary: #8E8E93;
  --card-background: #2C2C2E;
  --border-color: #3A3A3C;
  --shadow-light: 0 2px 10px rgba(0, 0, 0, 0.3);
  background: var(--card-background);
  border-color: var(--border-color);
  color: var(--text-primary);
}

.image-card-header {
  padding: 1.5rem 1.5rem 0;
  cursor: pointer;
}

.image-card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  align-items: center;
  justify-content: space-between;
  min-height: 300px;
}

.image-container {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  flex: 1;
  margin: 0;
  min-height: 200px;
}

/* Bottom section container for all three fields */
.bottom-fields-container {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

.image-card-body .image-description {
  text-align: center;
  margin: 0;
}

.image-card-body .shortcode-badge {
  text-align: center;
  margin: 0;
}

.image-card-body .actual-size-field {
  margin: 0;
  text-align: center;
}

.image-card-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: #2c2c2c;
  margin-bottom: 0.5rem;
  padding-bottom: 15px;
  transition: var(--transition);
  text-align: center;
  font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  position: relative;
  text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8), 0 0 10px rgba(255, 255, 255, 0.3);
}

.image-card-title::after {
  content: '';
  position: absolute;
  bottom: -9px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--primary-color) 50%, transparent 100%);
  transition: width 0.4s ease;
}

.image-card-header:hover .image-card-title::after {
  width: 80%;
}

.title-first-word {
  font-weight: 900;
  text-transform: uppercase;
  position: relative;
  display: inline-block;
  background-size: 200% 200%;
  color: #1a1a1a;
  text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.9), 
               0 0 15px rgba(255, 255, 255, 0.5),
               1px 1px 0px rgba(0, 0, 0, 0.1);
  animation: subtleGlow 3s ease-in-out infinite;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.2));
  /* Default transparent background for modules without specific styling */
  background: transparent;
}

.title-first-word:hover {
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3)) brightness(1.2);
}



/* Dark theme adjustments */
[data-theme="dark"] .image-card-title {
  color: #e8e8e8;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8), 0 0 10px rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] .title-first-word {
  color: #f0f0f0;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.9), 
               0 0 15px rgba(0, 0, 0, 0.7),
               1px 1px 0px rgba(255, 255, 255, 0.1);
}



@keyframes subtleGlow {
  0%, 100% {
    filter: brightness(1);
    background-position: 0% 50%;
  }
  50% {
    filter: brightness(1.2);
    background-position: 100% 50%;
  }
}

/* Unique gradient background colors for each section's first word */


#130-day-card .image-card-title .title-first-word {
  background: linear-gradient(135deg, rgba(88, 86, 214, 0.3) 0%, rgba(175, 82, 222, 0.3) 50%, rgba(191, 90, 242, 0.3) 100%) !important;
  padding: 4px 12px !important;
  border-radius: 8px !important;
  border: 2px solid rgba(88, 86, 214, 0.5) !important;
  display: inline-block !important;
  color: #1a1a1a !important;
  box-shadow: 0 2px 4px rgba(88, 86, 214, 0.2) !important;
}

#180-day-card .image-card-title .title-first-word {
  background: linear-gradient(135deg, rgba(52, 199, 89, 0.3) 0%, rgba(48, 209, 88, 0.3) 50%, rgba(50, 215, 75, 0.3) 100%) !important;
  padding: 4px 12px !important;
  border-radius: 8px !important;
  border: 2px solid rgba(52, 199, 89, 0.5) !important;
  display: inline-block !important;
  color: #1a1a1a !important;
  box-shadow: 0 2px 4px rgba(52, 199, 89, 0.2) !important;
}

#day160-card .title-first-word {
  background: linear-gradient(135deg, rgba(255, 149, 0, 0.2) 0%, rgba(255, 140, 0, 0.2) 50%, rgba(255, 165, 0, 0.2) 100%);
  padding: 4px 12px;
  border-radius: 8px;
  border: 2px solid rgba(255, 149, 0, 0.3);
}

#cube160-card .title-first-word {
  background: linear-gradient(135deg, rgba(255, 59, 48, 0.2) 0%, rgba(255, 107, 107, 0.2) 50%, rgba(255, 87, 34, 0.2) 100%);
  padding: 4px 12px;
  border-radius: 8px;
  border: 2px solid rgba(255, 59, 48, 0.3);
}

#sun100-card .title-first-word {
  background: linear-gradient(135deg, rgba(255, 107, 53, 0.2) 0%, rgba(255, 142, 83, 0.2) 50%, rgba(255, 112, 67, 0.2) 100%);
  padding: 4px 12px;
  border-radius: 8px;
  border: 2px solid rgba(255, 107, 53, 0.3);
}

#sun230-card .title-first-word {
  background: linear-gradient(135deg, rgba(247, 147, 30, 0.2) 0%, rgba(255, 183, 77, 0.2) 50%, rgba(255, 167, 38, 0.2) 100%);
  padding: 4px 12px;
  border-radius: 8px;
  border: 2px solid rgba(247, 147, 30, 0.3);
}

#month-card .title-first-word {
  background: linear-gradient(135deg, rgba(48, 209, 88, 0.2) 0%, rgba(76, 175, 80, 0.2) 50%, rgba(139, 195, 74, 0.2) 100%);
  padding: 4px 12px;
  border-radius: 8px;
  border: 2px solid rgba(48, 209, 88, 0.3);
}

#weekday-card .title-first-word {
  background: linear-gradient(135deg, rgba(90, 200, 250, 0.2) 0%, rgba(41, 182, 246, 0.2) 50%, rgba(3, 169, 244, 0.2) 100%);
  padding: 4px 12px;
  border-radius: 8px;
  border: 2px solid rgba(90, 200, 250, 0.3);
}

#business-card .title-first-word {
  background: linear-gradient(135deg, rgba(175, 82, 222, 0.2) 0%, rgba(233, 30, 99, 0.2) 50%, rgba(156, 39, 176, 0.2) 100%);
  padding: 4px 12px;
  border-radius: 8px;
  border: 2px solid rgba(175, 82, 222, 0.3);
}

.image-card-header:hover .image-card-title {
  transform: translateY(-1px);
  filter: brightness(1.1);
}

.image-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Module-specific hover box shadows matching title colors */


#130-day-card:hover {
  box-shadow: 0 8px 25px rgba(88, 86, 214, 0.3);
}

#180-day-card:hover {
  box-shadow: 0 8px 25px rgba(52, 199, 89, 0.3);
}

#day160-card:hover {
  box-shadow: 0 8px 25px rgba(255, 149, 0, 0.3);
}

#cube160-card:hover {
  box-shadow: 0 8px 25px rgba(255, 59, 48, 0.3);
}

#sun100-card:hover {
  box-shadow: 0 8px 25px rgba(255, 107, 53, 0.3);
}

#sun230-card:hover {
  box-shadow: 0 8px 25px rgba(247, 147, 30, 0.3);
}

#month-card:hover {
  box-shadow: 0 8px 25px rgba(48, 209, 88, 0.3);
}

#weekday-card:hover {
  box-shadow: 0 8px 25px rgba(90, 200, 250, 0.3);
}

#business-card:hover {
  box-shadow: 0 8px 25px rgba(175, 82, 222, 0.3);
}

/* Hero section static images - no hover effects or interactions */
.hero-static-image {
  cursor: default !important;
  pointer-events: none !important;
  transition: none !important;
}

.hero-static-image:hover {
  transform: none !important;
  filter: none !important;
  opacity: 1 !important;
  box-shadow: none !important;
  perspective: none !important;
  scale: 1 !important;
}

/* Ensure hero section time cards don't have hover effects */
.hero-section .time-card:hover {
  transform: none !important;
  box-shadow: none !important;
  background: rgba(255, 255, 255, 0.2) !important;
}

.hero-section .time-card:hover .hero-static-image {
  transform: none !important;
  filter: none !important;
  perspective: none !important;
  scale: 1 !important;
}

/* Completely disable hover effects for any header images in hero section */
.hero-section .header-time-image:hover,
.hero-section .header-date-image:hover {
  transform: none !important;
  perspective: none !important;
  scale: 1 !important;
}

.image-card:hover .title-first-word {
  animation: titleWordGlow 1.2s cubic-bezier(0.4, 0, 0.2, 1) infinite alternate;
  transform: translateY(-1px);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.image-card-schedule {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.schedule-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.25rem 0;
}

.schedule-time {
  font-weight: 500;
  color: var(--primary-color);
}

.image-card-body {
  padding: 0 1.5rem 1.5rem;
  text-align: center;
}

.image-display {
  border-radius: 8px;
  margin-bottom: 1rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  position: relative;
  transform: translateZ(0);
  will-change: transform, opacity;
}
}

/* Image container with badge */
.image-container {
  position: relative;
  display: inline-block;
}

/* Glass Overlay System - Transparent Glass Button Effects */
.glass-overlay {
  position: absolute;
  top: -5px;
  left: -5px;
  width: calc(100% + 10px);
  height: calc(100% + 10px);
  pointer-events: none;
  border-radius: 50%;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
  z-index: 2;
  transform: scale(0.9);
}

.glass-overlay.active {
  opacity: 1;
  transform: scale(1);
  animation: slideInScale 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Clear Glass - Classic transparent button */
.glass-overlay.frost {
  background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.15) 0%, 
    rgba(255, 255, 255, 0.05) 50%, 
    rgba(255, 255, 255, 0.1) 100%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 
    0 2px 8px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* Frosted Glass - Subtle blur effect */
.glass-overlay.aurora {
  background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.12) 0%, 
    rgba(255, 255, 255, 0.08) 50%, 
    rgba(255, 255, 255, 0.12) 100%);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 
    0 4px 12px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

/* Matte Glass - Subtle surface texture */
.glass-overlay.zen {
  background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.08) 0%, 
    rgba(255, 255, 255, 0.04) 50%, 
    rgba(255, 255, 255, 0.08) 100%);
  backdrop-filter: blur(2px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 
    0 3px 10px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* Glossy Glass - Shiny reflective surface */
.glass-overlay.prism {
  background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.2) 0%, 
    rgba(255, 255, 255, 0.1) 30%, 
    rgba(255, 255, 255, 0.05) 70%, 
    rgba(255, 255, 255, 0.15) 100%);
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 
    0 5px 15px rgba(0, 0, 0, 0.12),
    inset 0 2px 0 rgba(255, 255, 255, 0.4),
    inset 0 -1px 0 rgba(255, 255, 255, 0.1);
}

/* Crystal Glass - Premium crystalline effect */
.glass-overlay.glow {
  background: radial-gradient(ellipse at 30% 30%, 
    rgba(255, 255, 255, 0.18) 0%, 
    rgba(255, 255, 255, 0.1) 40%, 
    rgba(255, 255, 255, 0.06) 70%, 
    rgba(255, 255, 255, 0.12) 100%);
  backdrop-filter: blur(1px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 
    0 6px 20px rgba(0, 0, 0, 0.1),
    inset 0 2px 0 rgba(255, 255, 255, 0.5),
    inset 0 -2px 0 rgba(255, 255, 255, 0.15);
}

/* Overlay Controls */
.overlay-controls {
  margin-top: 1rem;
  padding: 1rem;
  background: rgba(var(--card-background-rgb), 0.5);
  border-radius: 8px;
  border: 1px solid var(--border-color);
}

.overlay-controls h4 {
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.overlay-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 0.5rem;
}

.overlay-option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.overlay-option input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--primary-color);
}

/* Actual Size Badge */
.actual-size-badge {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.72) 0%, rgba(118, 75, 162, 0.72) 100%);
  color: white;
  font-size: 0.65rem;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  z-index: 10;
  pointer-events: none;
  opacity: 0.9;
  transition: all 0.3s ease;
  width: fit-content;
  white-space: nowrap;
  min-width: max-content;
}

.image-container:hover .actual-size-badge {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.05);
}

/* Removed hover effects as requested */

/* Specific image sizes */
.image-display[id="hour-clock-img"] {
  width: 190px;
  height: 190px;
  object-fit: cover;
}

.image-display[id="130-day-img"] {
  width: 130px;
  height: 130px;
  object-fit: cover;
}

.image-display[id="180-day-img"] {
  width: 180px;
  height: 180px;
  object-fit: cover;
}

.image-display[id="day160-img"] {
  width: 160px;
  height: 160px;
  object-fit: cover;
}

.image-display[id="cube160-img"] {
  width: 160px;
  height: 160px;
  object-fit: cover;
}

.image-display[id="sun100-img"] {
  width: 100px;
  height: 100px;
  object-fit: cover;
}

.image-display[id="sun230-img"] {
  width: 230px;
  height: 230px;
  object-fit: cover;
}

.image-display[id="month-img"] {
  width: 190px;
  height: 190px;
  object-fit: cover;
}

.image-display[id="day-of-week-img"] {
  width: 190px;
  height: 190px;
  object-fit: cover;
}

/* Business status images are rectangular */
.image-display[id="open-closed-100-img"] {
  width: 100px;
  height: 80px;
  object-fit: cover;
}

.image-display[id="open-closed-200-img"] {
  width: 200px;
  height: 160px;
  object-fit: cover;
}

.image-display[id="open-closed-726-img"] {
  width: 726px;
  height: 582px;
  object-fit: cover;
  max-width: 100%;
}

.image-description {
  font-size: 0.875rem;
  color: var(--text-secondary);
  text-align: center;
  line-height: 1.4;
}

.shortcode-badge {
  background: var(--background-secondary);
  color: var(--text-primary);
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
  font-size: 0.875rem;
  border: 1px solid var(--border-color);
  text-align: center;
  display: inline-block;
  width: auto;
}

/* Status Indicators removed per user request */

/* Desktop-only: Keep subtitle on one line */
@media (min-width: 769px) {
  .hero-subtitle br {
    display: none;
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
  }
  
  .hero-subtitle {
    font-size: 1.15rem;
    margin-bottom: 2rem;
    padding: 0 1rem;
    max-width: 95%;
  }
  
  .emphasis-term {
    padding: 1px 4px;
    font-size: 0.95em;
  }
  
  .emphasis-term.intelligent {
    font-size: 1.05em;
    letter-spacing: 0.3px;
  }
  
  .time-display {
    flex-direction: row;
    gap: 0.5rem;
    justify-content: center;
    flex-wrap: nowrap;
  }
  
  .time-card {
    width: 90px;
    height: 90px;
    padding: 10px;
    gap: 0.5rem;
  }
  
  .header-time-image,
  .header-date-image {
    width: 50px;
    height: 50px;
  }
  
  .time-value {
    font-size: 0.8rem;
  }
  
  .theme-toggle {
    top: 1rem;
    right: 1rem;
    padding: 0.5rem 1rem;
  }
  
  .image-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  /* Mobile animation adjustments */
  .image-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }
  
  .image-card:hover {
    transform: translateY(-2px) scale(1.005);
    animation-duration: 0.2s;
  }
}

/* Micro-Animations for Content Transitions */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInScale {
  from {
    opacity: 0;
    transform: translateX(-20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

@keyframes imageTransition {
  0% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.3;
    transform: scale(1.02);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes pulseGlow {
  0%, 100% {
    box-shadow: 0 0 0 rgba(0, 122, 255, 0);
  }
  50% {
    box-shadow: 0 0 20px rgba(0, 122, 255, 0.3);
  }
}

@keyframes cardHoverScale {
  from {
    transform: translateY(0) scale(1);
  }
  to {
    transform: translateY(-2px) scale(1.005);
  }
}

@keyframes titleWordGlow {
  0%, 100% {
    filter: brightness(1) drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
  }
  50% {
    filter: brightness(1.2) drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide-in-scale {
  animation: slideInScale 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.image-transition {
  animation: imageTransition 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.pulse-glow {
  animation: pulseGlow 2s ease-in-out infinite;
}

/* Timing Overlay */
.timing-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.9);
  color: white;
  padding: 1rem 1.5rem;
  border-radius: 8px;
  text-align: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1000;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.timing-overlay.show {
  opacity: 1;
}

.timing-title {
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--primary-color);
}

.timing-info {
  font-size: 0.75rem;
  line-height: 1.4;
}



/* Light schedule highlighting with animation */
.schedule-item.current-time {
  background: rgba(0, 122, 255, 0.08);
  border-radius: 6px;
  animation: slideInScale 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-left: 3px solid rgba(0, 122, 255, 0.4);
  padding: 0.0625rem 0.5rem; /* Reduced by 2px top/bottom from 0.1875rem */
  margin: 0.25rem 0;
  border: 1px solid rgba(0, 122, 255, 0.2);
  transition: all 0.3s ease;
}

/* Regular schedule items with standard margins */
.image-card-schedule .schedule-item {
  margin-left: 30px;
  margin-right: 30px;
}

/* Override margins for highlighted fields but keep text aligned */
.image-card-schedule .schedule-item.current-time {
  margin-left: 0;
  margin-right: 0;
  padding-left: 30px;
  padding-right: 30px;
}

.schedule-item.current-time .schedule-time {
  color: var(--primary-color);
  font-weight: 500;
}

/* Loading States */
.loading {
  opacity: 0.6;
  pointer-events: none;
}

/* Thumbnail Popup Styles */
.thumbnail-popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(var(--card-background-rgb), 0.95);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  padding: 1.5rem;
  z-index: 1000;
  max-width: 90vw;
  max-height: 90vh;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.thumbnail-popup.show {
  opacity: 1;
  pointer-events: auto;
}

.thumbnail-popup-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1rem;
  text-align: center;
}

.thumbnail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
  gap: 0.75rem;
  max-width: 600px;
}

.thumbnail-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.thumbnail-item:hover {
  transform: scale(1.05);
}

.thumbnail-image {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 8px;
  border: 2px solid var(--border-color);
  transition: border-color 0.2s ease;
}

.thumbnail-item:hover .thumbnail-image {
  border-color: var(--primary-color);
}

.thumbnail-label {
  font-size: 0.75rem;
  color: var(--text-secondary);
  text-align: center;
}

.thumbnail-popup-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.thumbnail-popup-backdrop.show {
  opacity: 1;
  pointer-events: auto;
}

.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid var(--border-color);
  border-top-color: var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Staggered animation delays for image cards */
.image-card:nth-child(1) { 
  animation-delay: 0.1s; 
  animation: fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) both;
}
.image-card:nth-child(2) { 
  animation-delay: 0.2s; 
  animation: fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) both;
}
.image-card:nth-child(3) { 
  animation-delay: 0.3s; 
  animation: fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) both;
}
.image-card:nth-child(4) { 
  animation-delay: 0.4s; 
  animation: fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) both;
}
.image-card:nth-child(5) { 
  animation-delay: 0.5s; 
  animation: fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) both;
}

/* Enhanced micro-animations for UI elements */
.actual-size-badge {
  animation: slideInScale 0.4s cubic-bezier(0.4, 0, 0.2, 1) both;
  animation-delay: 0.3s;
}

.shortcode-badge {
  animation: fadeInUp 0.4s cubic-bezier(0.4, 0, 0.2, 1) both;
  animation-delay: 0.4s;
}

.image-description {
  animation: fadeInUp 0.4s cubic-bezier(0.4, 0, 0.2, 1) both;
  animation-delay: 0.35s;
}

.image-card-schedule {
  animation: fadeInUp 0.5s cubic-bezier(0.4, 0, 0.2, 1) both;
  animation-delay: 0.25s;
}

/* Actual Size Field Styling */
.actual-size-field {
  text-align: center;
  margin-top: 0.75rem;
  padding: 0.5rem;
  background: rgba(var(--primary-color-rgb), 0.06);
  border: 1px solid rgba(var(--primary-color-rgb), 0.15);
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary-color);
  animation: fadeInUp 0.4s cubic-bezier(0.4, 0, 0.2, 1) both;
  animation-delay: 0.45s;
}

/* Dark theme adjustments for actual size field */
.dark-theme .actual-size-field {
  background: rgba(0, 122, 255, 0.08);
  border-color: rgba(0, 122, 255, 0.2);
  color: #0a84ff;
}

/* Force CSS refresh - Thu Aug 21 02:43:45 UTC 2025 */
