/* Design System Variables */
:root {
  /* Colors - Sleek Light Mode */
  --color-primary: #3B82F6;
  --color-primary-light: #EFF6FF;
  --color-secondary: #60A5FA;
  --color-accent: #EF4444;
  /* Unified red for holidays */
  /* For holidays */
  --color-accent-light: rgba(239, 68, 68, 0.1);
  --color-weekend: #EF4444;
  /* For weekends */
  --color-weekend-light: rgba(239, 68, 68, 0.1);

  /* New playful colors for strategy row */
  --color-brown-600: #8D6E63;
  --color-brown-100: #EFEBE9;
  --color-holiday-text: #EF4444;
  /* Red for holiday text */
  --color-workday-text: #3B82F6;
  /* Blue for work text */

  --color-bg: #F8FAFC;
  --color-sand-50: #FFFDF8;
  /* Softer sandy background */
  --color-surface: rgba(255, 255, 255, 0.85);
  /* Glassmorphism base */

  --color-slate-900: #1E293B;
  /* Headings */
  --color-slate-600: #475569;
  /* Body text */
  --color-slate-500: #64748B;
  /* Muted text */
  --color-slate-200: #E2E8F0;
  /* Borders */

  /* Typography */
  --font-sans-tc: 'Noto Sans TC', sans-serif;
  --font-outfit: 'Outfit', sans-serif;

  /* Layout */
  --max-w: 1280px;

  /* Shadow */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.05), 0 2px 4px -2px rgb(0 0 0 / 0.05);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.05), 0 4px 6px -4px rgb(0 0 0 / 0.05);

  /* Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;

  /* Animation */
  --transition: 200ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans-tc);
  background-color: var(--color-bg);
  background-image:
    radial-gradient(at 0% 0%, hsla(217, 100%, 96%, 1) 0px, transparent 50%),
    radial-gradient(at 100% 0%, hsla(28, 100%, 95%, 1) 0px, transparent 50%);
  background-attachment: fixed;
  color: var(--color-slate-600);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* Utilities */
.bg-sand-50 {
  background-color: var(--color-sand-50) !important;
  background-image: none !important;
  /* Overriding previous gradients for a cleaner look */
}

.max-w-7xl {
  max-width: var(--max-w);
  margin-left: auto;
  margin-right: auto;
}

.text-slate-900 {
  color: var(--color-slate-900);
}

.text-slate-600 {
  color: var(--color-slate-600);
}

.text-slate-500 {
  color: var(--color-slate-500);
}

.text-primary {
  color: var(--color-primary);
}

.bg-primary-light {
  background-color: var(--color-primary-light);
}

.bg-gradient {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
}

.font-noto {
  font-family: var(--font-sans-tc);
}

.font-outfit {
  font-family: var(--font-outfit);
}

.text-xl {
  font-size: 1.25rem;
}

.font-bold {
  font-weight: 700;
}

.text-sm {
  font-size: 0.875rem;
}

.hidden {
  display: none !important;
}

.cursor-pointer {
  cursor: pointer;
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

.max-w-\[900px\] {
  max-width: 900px;
}

.w-full {
  width: 100%;
}

.text-left {
  text-align: left;
}

.p-2 {
  padding: 0.5rem;
}

.p-3 {
  padding: 0.75rem;
}

.bg-white {
  background-color: #fff;
}

.border {
  border-width: 1px;
}

.shadow-sm {
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.rounded-xl {
  border-radius: 0.75rem;
}

.hover\:bg-slate-50:hover {
  background-color: #F8FAFC;
}

.rounded-lg {
  border-radius: 0.5rem;
}

.transition-colors {
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

.transition-all {
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

.duration-300 {
  transition-duration: 300ms;
}

.border-none {
  border: none;
}

.bg-transparent {
  background-color: transparent;
}

.overflow-hidden {
  overflow: hidden;
}

/* Glassmorphism Panel */
.glass-panel {
  background: var(--color-surface);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: var(--shadow-sm);
}

/* Layout */
.app-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(248, 250, 252, 0.8);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--color-slate-200);
  padding: 1rem 1.5rem;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

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

.logo-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: var(--shadow-md);
}

.brand h1 {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.2;
}

.subtitle {
  font-size: 0.875rem;
  opacity: 0.8;
}

.year-selector {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-xl);
}

.icon-btn {
  background: none;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0.25rem;
  border-radius: 50%;
  transition: all var(--transition);
}

.icon-btn:hover {
  background-color: var(--color-slate-200);
  color: var(--color-primary);
}

/* Main Content */
.main-content {
  flex: 1;
  padding: 2rem 1.5rem;
  width: 100%;
}

/* Stats Section */
.stats-section {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.stat-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-lg);
  min-width: 200px;
}

.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.stat-info {
  display: flex;
  flex-direction: column;
}

.stat-value {
  font-size: 1.5rem;
  line-height: 1.2;
}

.continuous-holidays-scroll {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  flex: 1;
  /* Hide scrollbar for cleaner look */
  scrollbar-width: none;
}

.continuous-holidays-scroll::-webkit-scrollbar {
  display: none;
}

.period-card {
  display: flex;
  flex-direction: column;
  padding: 1rem;
  border-radius: var(--radius-lg);
  background: white;
  border: 1px solid var(--color-accent-light);
  min-width: 160px;
  box-shadow: var(--shadow-sm);
}

.period-name {
  color: var(--color-accent);
  font-weight: 600;
  font-size: 0.875rem;
}

.period-days {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-slate-900);
}

.period-date {
  font-size: 0.75rem;
  color: var(--color-slate-500);
  margin-top: 0.25rem;
}

/* Strategy Section Header */
.strategy-section {
  margin-bottom: 3rem;
  padding: 1.5rem;
  background: white;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  border: 1px dashed var(--color-slate-200);
}

/* Strategy Section Header */
.strategy-section {
  margin-bottom: 3rem;
  padding: 1.5rem;
  background: white;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  border: 1px dashed var(--color-slate-200);
  /* Constrain width so it looks neat */
}

.strategy-grid {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  /* Add playful background pattern to container */
  background-color: #FDF3E7;
  padding: 2rem;
  border-radius: var(--radius-xl);
  border: 4px solid #F3E0CC;
  position: relative;
  overflow: hidden;
}

/* Cute row card */
.strategy-new-card {
  display: flex;
  align-items: stretch;
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 0px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s, box-shadow 0.2s;
  overflow: visible;
  /* To allow badges to overflow if needed */
  border: 2px solid var(--color-brown-100);
}

.strategy-new-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 0px rgba(0, 0, 0, 0.08);
}

/* Left Label (Brown Box) */
.strategy-left-label {
  background-color: var(--color-brown-600);
  color: white;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  border-top-left-radius: 14px;
  border-bottom-left-radius: 14px;
  width: 120px;
  flex-shrink: 0;
}

.strategy-left-label .month {
  font-size: 1.1rem;
  font-weight: 700;
}

.strategy-left-label .festival {
  font-size: 0.9rem;
  opacity: 0.9;
  margin-top: 0.25rem;
  line-height: 1.2;
  word-break: break-all;
}

/* Middle Calendar Row */
.strategy-calendar-row {
  display: flex;
  flex: 1;
  padding: 0.75rem 0.75rem 2.5rem 0.75rem;
  /* Increased bottom padding to 2.5rem to fit tags */
  gap: 2px;
  overflow-x: auto;
  align-items: center;
  /* Hide scrollbar */
  scrollbar-width: none;
}

.strategy-calendar-row::-webkit-scrollbar {
  display: none;
}

.cal-day-col {
  display: flex;
  flex-direction: column;
  min-width: 36px;
  text-align: center;
  position: relative;
}

/* Common Header/Body for cols */
.cal-head,
.cal-body {
  padding: 0.25rem 0;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: 700;
}

.cal-head {
  color: white;
  font-size: 0.8rem;
  border-top-left-radius: 4px;
  border-top-right-radius: 4px;
}

.cal-body {
  background-color: white;
  border: 1px solid var(--color-slate-200);
  border-top: none;
  font-size: 1.1rem;
  border-bottom-left-radius: 4px;
  border-bottom-right-radius: 4px;
  height: 40px;
}

/* Modifiers for Holiday vs Workday */
.cal-day-col.holiday .cal-head {
  background-color: rgba(239, 68, 68, 0.8);
  /* Red header */
}

.cal-day-col.holiday .cal-body {
  color: var(--color-holiday-text);
}

.cal-day-col.workday .cal-head {
  background-color: rgba(59, 130, 246, 0.8);
  /* Blue header */
}

.cal-day-col.workday .cal-body {
  color: var(--color-workday-text);
}

/* Festival Tag below column */
.cal-festival-tag {
  font-size: 0.65rem;
  color: var(--color-brown-600);
  margin-top: 4px;
  white-space: nowrap;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  font-weight: 700;
}

/* Right Badge (請X休Y) */
.strategy-right-badge {
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-left: 2px dashed var(--color-slate-200);
  background-color: white;
  border-top-right-radius: 14px;
  border-bottom-right-radius: 14px;
  min-width: 140px;
  flex-shrink: 0;
}

.strategy-right-badge .badge-text {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--color-brown-600);
  letter-spacing: 1px;
}

/* Legend */
.strategy-legend {
  display: flex;
  gap: 1.5rem;
  justify-content: flex-end;
  margin-top: 1.5rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.7);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-brown-600);
}

.legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.legend-dot.holiday {
  background-color: var(--color-holiday-text);
}

.legend-dot.workday {
  background-color: var(--color-workday-text);
}



/* Loading */
.loading-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 0;
  gap: 1rem;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--color-slate-200);
  border-top-color: var(--color-primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

/* Calendar Grid */
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

.month-card {
  background: var(--color-surface);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition), box-shadow var(--transition);
}

.month-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.month-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--color-slate-200);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.month-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-slate-900);
}

.month-stats {
  font-size: 0.75rem;
  color: var(--color-slate-500);
  background: var(--color-slate-200);
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
}

.days-header {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  padding: 0.75rem 1rem;
  background: rgba(248, 250, 252, 0.5);
  border-bottom: 1px solid var(--color-slate-200);
}

.day-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-slate-500);
}

.day-label.weekend {
  color: var(--color-weekend);
}

.days-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  padding: 1rem;
  gap: 0.25rem;
}

.day-cell {
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  position: relative;
  transition: all var(--transition);
  color: var(--color-slate-900);
}

.solar-date {
  font-size: 0.875rem;
  line-height: 1.2;
}

.lunar-date {
  font-size: 0.6rem;
  color: var(--color-slate-500);
  line-height: 1;
  margin-top: 2px;
  transform: scale(0.9);
}

.lunar-festival {
  color: var(--color-accent);
}

/* Hide Lunar Elements */
.hide-lunar .lunar-date,
.hide-lunar .lunar-festival {
  display: none !important;
}

.day-cell.empty {
  visibility: hidden;
}

.day-cell.weekend {
  color: var(--color-weekend);
  background-color: var(--color-weekend-light);
  cursor: pointer;
}

.day-cell.weekend:hover,
.day-cell.holiday:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-md);
  z-index: 10;
}

.day-cell.holiday {
  color: var(--color-accent);
  background-color: var(--color-accent-light);
  font-weight: 600;
  cursor: pointer;
}

.day-cell.today {
  background-color: var(--color-primary);
  color: white;
  font-weight: 700;
  border-radius: var(--radius-sm);
  z-index: 5;
  box-shadow: var(--shadow-sm);
}

.day-cell.today.weekend {
  background-color: var(--color-weekend);
  color: white;
}

.day-cell.today.holiday {
  background-color: var(--color-accent);
  color: white;
}

.day-cell.today .holiday-dot {
  background-color: white;
}

.holiday-dot {
  width: 4px;
  height: 4px;
  background-color: var(--color-accent);
  border-radius: 50%;
  position: absolute;
  bottom: 4px;
}



/* Fix leave strategies layout break */
#leaveStrategiesWrapper {
  overflow: hidden;
}

/* Tooltip */
.tooltip {
  position: fixed;
  background-color: var(--color-slate-900);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  pointer-events: none;
  z-index: 50;
  box-shadow: var(--shadow-lg);
  transform: translateX(-50%) translateY(10px);
  white-space: nowrap;
  opacity: 0;
  transition: opacity var(--transition);
}

.tooltip.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Footer */
.footer {
  padding: 2rem 1.5rem;
  text-align: center;
  border-top: 1px solid var(--color-slate-200);
}

/* Header Links Overlay */
.header-links {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
  margin-right: 1.5rem;
}

/* Responsive */
@media (max-width: 768px) {
  .header {
    padding: 1rem 1rem;
  }

  .header-content {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }

  .brand {
    justify-content: center;
  }

  .brand .logo-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
  }

  .brand h1 {
    font-size: 1.15rem;
  }

  .subtitle {
    font-size: 0.75rem;
  }

  .header-links {
    width: 100%;
    justify-content: center;
    margin: 0 !important;
  }

  .controls {
    width: 100%;
  }

  .year-selector {
    width: 100%;
    justify-content: space-between;
    padding: 0.5rem 1rem;
  }

  .calendar-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .strategy-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .strategy-new-card {
    padding: 1rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .strategy-left-label {
    width: 100%;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .strategy-calendar-row {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    scrollbar-width: none;
    /* Firefox */
  }

  .strategy-calendar-row::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari and Opera */
  }

  .strategy-right-badge {
    border-left: none;
    border-top: 2px dashed var(--color-slate-200);
    width: 100%;
    padding-top: 0.5rem;
    justify-content: center;
    border-top-right-radius: 0;
    border-bottom-left-radius: 14px;
  }

  .cal-day-col {
    min-width: 32px;
  }

  .cal-head {
    font-size: 0.7rem;
  }

  .cal-body {
    font-size: 0.85rem;
  }

  .cal-festival-tag {
    font-size: 0.6rem;
    writing-mode: horizontal-tb;
    transform: none;
    line-height: 1.1;
    margin-top: 2px;
    height: auto;
  }

  .continuous-holidays-scroll {
    gap: 1rem;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
  }

  .continuous-card {
    min-width: 200px;
    padding: 1rem;
  }
}

/* GitHub Markdown Overrides for Brand Consistency */
.markdown-body {
  font-family: var(--font-sans-tc) !important;
  color: var(--color-slate-900) !important;
}

.markdown-body a {
  color: var(--color-primary) !important;
  text-decoration: none !important;
  transition: all var(--transition);
}

.markdown-body a:hover {
  text-decoration: underline !important;
}

.markdown-body h1,
.markdown-body h2,
.markdown-body h3,
.markdown-body h4,
.markdown-body h5,
.markdown-body h6 {
  color: var(--color-slate-900) !important;
  border-bottom-color: var(--color-slate-200) !important;
}

.markdown-body code {
  background-color: rgba(0, 0, 0, 0.05) !important;
  color: var(--color-accent) !important;
  padding: 0.2em 0.4em !important;
  border-radius: var(--radius-sm) !important;
}

.markdown-body pre {
  background-color: var(--color-slate-900) !important;
  color: #F8FAFC !important;
  border-radius: var(--radius-lg) !important;
  padding: 1rem !important;
  overflow: auto !important;
}

.markdown-body pre code {
  background-color: transparent !important;
  color: inherit !important;
  padding: 0 !important;
}

/* Header Icon Tooltips */
.icon-btn-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-tooltip {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  background-color: var(--color-slate-900);
  color: white;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 500;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 50;
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  margin-top: 6px;
}

.icon-tooltip.tooltip-right {
  left: auto;
  right: 0;
  transform: translateX(0) translateY(8px);
}

.icon-tooltip::before {
  content: '';
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 5px;
  border-style: solid;
  border-color: transparent transparent var(--color-slate-900) transparent;
}

.icon-tooltip.tooltip-right::before {
  left: auto;
  right: 12px;
  transform: none;
}

.icon-btn-wrapper:hover .icon-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.icon-btn-wrapper:hover .icon-tooltip.tooltip-right {
  transform: translateX(0) translateY(0);
}

/* Floating Social Share Bar */
.floating-social-bar {
  position: fixed;
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.05);
  z-index: 50;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.social-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: var(--color-slate-500);
  background: white;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 4px -1px rgba(0, 0, 0, 0.05);
}

.social-btn svg {
  width: 20px;
  height: 20px;
  transition: transform 0.2s ease;
}

.social-tooltip {
  position: absolute;
  right: calc(100% + 12px);
  background: var(--color-slate-900);
  color: white;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.75rem;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translateX(10px);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Specific Social Brand Colors on Hover */
.social-btn.facebook:hover {
  background: #1877F2;
  color: white;
  border-color: #1877F2;
}

.social-btn.twitter:hover {
  background: #000000;
  color: white;
  border-color: #000000;
}

.social-btn.linkedin:hover {
  background: #0A66C2;
  color: white;
  border-color: #0A66C2;
}

.social-btn.threads:hover {
  background: #000000;
  color: white;
  border-color: #000000;
}

.social-btn.line:hover {
  background: #06C755;
  color: white;
  border-color: #06C755;
}

.social-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px -2px rgba(0, 0, 0, 0.15);
}

.social-btn:hover svg {
  transform: scale(1.1);
}

.social-btn:hover .social-tooltip {
  opacity: 1;
  transform: translateX(0);
}

.social-tooltip::after {
  content: '';
  position: absolute;
  left: 100%;
  top: 50%;
  transform: translateY(-50%);
  border-width: 5px;
  border-style: solid;
  border-color: transparent transparent transparent var(--color-slate-900);
}

/* Responsive constraints for the floating bar */
@media (max-width: 1024px) {
  .floating-social-bar {
    right: 0.5rem;
    padding: 0.5rem;
    gap: 0.5rem;
  }

  .social-btn {
    width: 36px;
    height: 36px;
  }

  .social-btn svg {
    width: 18px;
    height: 18px;
  }
}

@media (max-width: 768px) {
  .floating-social-bar {
    right: auto;
    left: 50%;
    top: auto;
    bottom: 1.5rem;
    transform: translateX(-50%);
    flex-direction: row;
    padding: 0.5rem 1rem;
    gap: 0.75rem;
    border-radius: 999px;
  }

  .social-tooltip {
    right: auto;
    bottom: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%) translateY(10px);
  }

  .social-btn:hover .social-tooltip {
    transform: translateX(-50%) translateY(0);
  }

  .social-tooltip::after {
    left: 50%;
    top: 100%;
    transform: translateX(-50%);
    border-color: var(--color-slate-900) transparent transparent transparent;
  }
}