/* =============================================
   WhiteBackground.net — Page-Specific Styles
   ============================================= */

/* --- Homepage: Feature Showcase --- */
.features {
  background: linear-gradient(180deg, var(--white-pure) 0%, var(--gray-50) 100%);
}

.feature-showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
  padding: var(--space-3xl) 0;
}

.feature-showcase:nth-child(even) {
  direction: rtl;
}

.feature-showcase:nth-child(even) > * {
  direction: ltr;
}

.feature-showcase__visual {
  aspect-ratio: 4/3;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--gray-100);
  box-shadow: var(--shadow-soft);
}

@media (max-width: 768px) {
  .feature-showcase {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .feature-showcase:nth-child(even) {
    direction: ltr;
  }
}

/* --- Homepage: Hex Copier Tool --- */
.hex-copier {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  background: var(--gray-950);
  border-radius: 100px;
  padding: 6px 6px 6px 24px;
  max-width: 380px;
  margin: var(--space-xl) auto 0;
}

.hex-copier__value {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--white-pure);
  letter-spacing: 0.05em;
  flex: 1;
  user-select: all;
}

.hex-copier__btn {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gray-950);
  background: var(--white-pure);
  padding: 12px 24px;
  border-radius: 100px;
  transition: all var(--duration-fast) var(--ease-out);
  white-space: nowrap;
}

.hex-copier__btn:hover {
  background: var(--gray-100);
}

.hex-copier__btn.copied {
  background: #dcfce7;
  color: #166534;
}

/* --- Full-Screen White Page --- */
.fullscreen-page {
  padding: var(--space-4xl) 0;
}

.fullscreen-demo {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--gray-200);
  margin-bottom: var(--space-2xl);
}

.fullscreen-demo__screen {
  aspect-ratio: 16/9;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color var(--duration-slow) var(--ease-out);
  cursor: pointer;
}

.fullscreen-demo__prompt {
  text-align: center;
  pointer-events: none;
}

.fullscreen-demo__prompt p {
  font-size: 1.1rem;
  color: var(--gray-400);
}

.fullscreen-demo__controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md) var(--space-lg);
  background: var(--gray-50);
  border-top: 1px solid var(--gray-100);
  flex-wrap: wrap;
  gap: var(--space-md);
}

.fullscreen-demo__shade-btns {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.shade-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--gray-200);
  cursor: pointer;
  transition: transform var(--duration-fast) var(--ease-out),
              border-color var(--duration-fast);
  position: relative;
}

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

.shade-btn.active {
  border-color: var(--gray-900);
  box-shadow: 0 0 0 2px var(--white-pure), 0 0 0 4px var(--gray-900);
}

.shade-btn__tooltip {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--gray-900);
  color: var(--white-pure);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 4px 8px;
  border-radius: 4px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--duration-fast);
}

.shade-btn:hover .shade-btn__tooltip {
  opacity: 1;
}

.fullscreen-demo__info {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--gray-500);
}

/* True fullscreen overlay */
.fullscreen-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
}

.fullscreen-overlay.active {
  display: flex;
}

.fullscreen-overlay__hint {
  position: absolute;
  bottom: var(--space-xl);
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.85rem;
  color: var(--gray-400);
  background: rgba(255,255,255,0.9);
  padding: var(--space-sm) var(--space-lg);
  border-radius: 100px;
  border: 1px solid var(--gray-200);
  backdrop-filter: blur(8px);
  animation: fadeIn 1s var(--ease-out) 2s both;
  white-space: nowrap;
}

/* --- CSS Snippets Page --- */
.snippets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: var(--space-xl);
}

@media (max-width: 768px) {
  .snippets-grid {
    grid-template-columns: 1fr;
  }
}

.snippet-card {
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--duration-normal) var(--ease-out),
              box-shadow var(--duration-normal) var(--ease-out);
}

.snippet-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
}

.snippet-card__preview {
  padding: var(--space-2xl);
  background: var(--gray-50);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 160px;
  border-bottom: 1px solid var(--gray-100);
}

.snippet-card__code {
  position: relative;
}

.snippet-card__code pre {
  padding: var(--space-lg);
  background: var(--gray-950);
  margin: 0;
  overflow-x: auto;
}

.snippet-card__code code {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  line-height: 1.6;
  color: #e2e8f0;
}

.snippet-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md) var(--space-lg);
  background: var(--gray-950);
  border-top: 1px solid rgba(255,255,255,0.06);
}

.snippet-card__name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gray-300);
}

.snippet-card__copy {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--gray-400);
  padding: 4px 14px;
  border-radius: 100px;
  border: 1px solid rgba(255,255,255,0.1);
  transition: all var(--duration-fast);
}

.snippet-card__copy:hover {
  color: var(--white-pure);
  border-color: rgba(255,255,255,0.3);
}

.snippet-card__copy.copied {
  color: #4ade80;
  border-color: rgba(74, 222, 128, 0.3);
}

/* Snippet preview demos */
.preview-soft-shadow {
  width: 120px;
  height: 80px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06), 0 1px 3px rgba(0,0,0,0.04);
}

.preview-border-subtle {
  width: 120px;
  height: 80px;
  background: #fff;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.06);
}

.preview-neumorphic {
  width: 100px;
  height: 100px;
  background: #f0f0f0;
  border-radius: 20px;
  box-shadow: 8px 8px 16px #d1d1d1, -8px -8px 16px #ffffff;
}

.preview-glass {
  width: 120px;
  height: 80px;
  background: rgba(255,255,255,0.5);
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.8);
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.preview-hover-lift {
  width: 120px;
  height: 80px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.preview-hover-lift:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.1);
}

.preview-gradient-border {
  width: 120px;
  height: 80px;
  background: #fff;
  border-radius: 12px;
  position: relative;
}

.preview-gradient-border::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 13px;
  background: linear-gradient(135deg, #e0e0e0, #f5f5f5, #e0e0e0);
  z-index: -1;
}

/* --- Photography Guide Page --- */
.comparison-slider {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--gray-200);
  aspect-ratio: 16/9;
}

.tip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-xl);
}

.tip-card {
  padding: var(--space-xl);
  border-radius: var(--radius-md);
  background: var(--gray-50);
  border: 1px solid var(--gray-100);
}

.tip-card__number {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--gray-200);
  line-height: 1;
  margin-bottom: var(--space-md);
}

.tip-card__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--gray-800);
  margin-bottom: var(--space-sm);
}

.tip-card__desc {
  font-size: 0.9rem;
  color: var(--gray-500);
  line-height: 1.6;
}

/* --- Accessibility Page --- */
.a11y-demo {
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin: var(--space-xl) 0;
}

.a11y-demo__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

@media (max-width: 600px) {
  .a11y-demo__row {
    grid-template-columns: 1fr;
  }
}

.a11y-demo__sample {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-lg) var(--space-xl);
  border-radius: var(--radius-md);
  border: 1px solid var(--gray-200);
}

.a11y-demo__text {
  font-size: 1rem;
  font-weight: 500;
  font-family: var(--font-mono);
}

.a11y-demo__badge {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.a11y-demo__badge--fail {
  background: #fef2f2;
  color: #dc2626;
}

.a11y-demo__badge--pass {
  background: #f0fdf4;
  color: #16a34a;
}

.a11y-demo__badge--pass-aaa {
  background: #ecfdf5;
  color: #059669;
}

/* --- Checklist --- */
.checklist {
  margin: var(--space-xl) 0;
}

.checklist__item {
  display: flex;
  gap: var(--space-md);
  padding: var(--space-lg) 0;
  border-bottom: 1px solid var(--gray-100);
}

.checklist__item:first-child {
  padding-top: 0;
}

.checklist__item:last-child {
  border-bottom: none;
}

.checklist__check {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--gray-950);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.75rem;
  font-weight: 700;
  margin-top: 2px;
}

.checklist__content {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--gray-600);
}

.checklist__content strong {
  color: var(--gray-900);
}


/* --- Newsletter / CTA --- */
.cta-section {
  background: var(--gray-950);
  color: var(--white-pure);
  border-radius: var(--radius-xl);
  padding: var(--space-4xl) var(--space-2xl);
  text-align: center;
  margin: var(--space-2xl) 0;
}

.cta-section h2 {
  color: var(--white-pure);
  margin-bottom: var(--space-md);
}

.cta-section p {
  color: var(--gray-400);
  margin: 0 auto var(--space-xl);
  max-width: 500px;
}

/* --- Use-Case Banner --- */
.use-cases {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
  margin-top: var(--space-2xl);
}

.use-case-tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--gray-500);
  padding: 8px 16px;
  background: var(--gray-50);
  border: 1px solid var(--gray-100);
  border-radius: 100px;
  transition: all var(--duration-fast) var(--ease-out);
}

.use-case-tag:hover {
  background: var(--white-pure);
  border-color: var(--gray-300);
  color: var(--gray-700);
}

/* --- Tab Navigation --- */
.tabs {
  display: flex;
  gap: var(--space-xs);
  background: var(--gray-50);
  padding: 4px;
  border-radius: var(--radius-md);
  margin-bottom: var(--space-2xl);
  overflow-x: auto;
}

.tab {
  font-size: 0.85rem;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: calc(var(--radius-md) - 2px);
  color: var(--gray-500);
  transition: all var(--duration-fast) var(--ease-out);
  white-space: nowrap;
}

.tab:hover {
  color: var(--gray-700);
}

.tab.active {
  background: var(--white-pure);
  color: var(--gray-900);
  box-shadow: var(--shadow-sm);
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
  animation: fadeIn 0.3s var(--ease-out);
}

/* --- FAQ Accordion --- */
.faq-list {
  max-width: var(--max-width-narrow);
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--gray-100);
}

.faq-item__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: var(--space-lg) 0;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--gray-800);
  text-align: left;
  cursor: pointer;
  transition: color var(--duration-fast);
}

.faq-item__question:hover {
  color: var(--gray-950);
}

.faq-item__icon {
  width: 20px;
  height: 20px;
  color: var(--gray-400);
  transition: transform var(--duration-normal) var(--ease-out);
  flex-shrink: 0;
  margin-left: var(--space-md);
}

.faq-item.open .faq-item__icon {
  transform: rotate(45deg);
}

.faq-item__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--duration-slow) var(--ease-out);
}

.faq-item.open .faq-item__answer {
  max-height: 500px;
}

.faq-item__answer p {
  padding-bottom: var(--space-lg);
  font-size: 0.95rem;
  color: var(--gray-500);
  line-height: 1.7;
}
