/* CH-UI Brand Colors */
:root {
  /* Brand Colors - CH-UI Orange */
  --vp-c-brand-1: #FF813F;
  --vp-c-brand-2: #FF9A5F;
  --vp-c-brand-3: #FF6B2B;
  --vp-c-brand-soft: rgba(255, 129, 63, 0.14);
  
  /* Button Colors */
  --vp-button-brand-bg: #FF813F;
  --vp-button-brand-border: #FF813F;
  --vp-button-brand-hover-bg: #FF6B2B;
  --vp-button-brand-hover-border: #FF6B2B;
  --vp-button-brand-active-bg: #E55A1F;
  --vp-button-brand-active-border: #E55A1F;
  
  /* Home Hero */
  --vp-home-hero-name-color: transparent;
  --vp-home-hero-name-background: -webkit-linear-gradient(120deg, #FF813F 30%, #FF6B2B);
  
  /* Custom additions */
  --vp-c-accent: #FF813F;
  --vp-c-text-accent: #FF813F;
}

/* Dark mode adjustments */
.dark {
  --vp-c-brand-1: #FF813F;
  --vp-c-brand-2: #FF9A5F;
  --vp-c-brand-3: #FF6B2B;
  --vp-c-brand-soft: rgba(255, 129, 63, 0.16);
}

/* Sponsors Section */
.sponsors-section {
  margin: 4rem 0;
  padding: 2rem 0;
  border-top: 1px solid var(--vp-c-divider);
}

.sponsors-container {
  max-width: 1152px;
  margin: 0 auto;
  padding: 0 24px;
  text-align: center;
}

.sponsors-title {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.sponsors-subtitle {
  color: var(--vp-c-text-2);
  margin-bottom: 2rem;
}

.sponsors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.sponsor-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.5rem;
  border: 1px solid var(--vp-c-divider);
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.sponsor-card:hover {
  border-color: var(--vp-c-brand-1);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.sponsor-logo {
  width: auto;
  height: 60px;
  object-fit: contain;
  margin-bottom: 1rem;
}

.sponsor-name {
  color: var(--vp-c-text-1);
  font-weight: 500;
}

.sponsor-button {
  display: inline-block;
  margin-top: 2rem;
  padding: 0.75rem 1.5rem;
  background: var(--vp-c-brand-1);
  color: white;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  transition: background 0.3s ease;
}

.sponsor-button:hover {
  background: var(--vp-c-brand-2);
}

/* Screenshot styles for markdown images */
.vp-doc img[alt*="CH-UI"],
.vp-doc img[alt*="SQL"],
.vp-doc img[alt*="Database"],
.vp-doc img[alt*="Query"],
.vp-doc img[alt*="Metrics"],
.vp-doc img[alt*="Table"],
.vp-doc img[alt*="User"],
.vp-doc img[alt*="Settings"],
.vp-doc img[alt*="Advanced"],
.vp-doc img[alt*="Data"],
.vp-doc img[alt*="Performance"] {
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  margin: 1rem 0;
}

.vp-doc img[alt*="CH-UI"]:hover,
.vp-doc img[alt*="SQL"]:hover,
.vp-doc img[alt*="Database"]:hover,
.vp-doc img[alt*="Query"]:hover,
.vp-doc img[alt*="Metrics"]:hover,
.vp-doc img[alt*="Table"]:hover,
.vp-doc img[alt*="User"]:hover,
.vp-doc img[alt*="Settings"]:hover,
.vp-doc img[alt*="Advanced"]:hover,
.vp-doc img[alt*="Data"]:hover,
.vp-doc img[alt*="Performance"]:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* Screenshot Modal */
.screenshot-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  cursor: pointer;
}

.screenshot-modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.screenshot-modal img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
}

/* Fix logo in dark mode */
.dark .VPImage.logo {
  filter: brightness(1.2);
}

/* Improve feature cards */
.VPFeature {
  transition: transform 0.3s ease;
}

.VPFeature:hover {
  transform: translateY(-2px);
}

/* Buy Me a Coffee Button styling */
.coffee-button {
  text-align: center;
  margin: 3rem 0;
  padding: 2rem 0;
  border-top: 1px solid var(--vp-c-divider);
}