﻿/**
 * ====================================================================
 * スロット9999.store - Smooth Effects & Interactions CSS
 * ====================================================================
 */

/* ─── 1. Custom Smooth Glowing Cursor (Desktop Only) ─── */
@media (hover: hover) and (pointer: fine) {
  .cursor-dot {
    position: fixed;
    top: 0;
    left: 0;
    width: 8px;
    height: 8px;
    background: #ffdb00;
    border-radius: 50%;
    pointer-events: none;
    z-index: 999999;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 10px rgba(255, 219, 0, 0.9), 0 0 20px rgba(255, 219, 0, 0.5);
    transition: opacity 0.2s ease, transform 0.15s ease;
  }

  .cursor-aura {
    position: fixed;
    top: 0;
    left: 0;
    width: 38px;
    height: 38px;
    border: 1.5px solid rgba(255, 219, 0, 0.6);
    border-radius: 50%;
    pointer-events: none;
    z-index: 999998;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 15px rgba(255, 219, 0, 0.25);
    transition: width 0.28s cubic-bezier(0.25, 1, 0.5, 1),
                height 0.28s cubic-bezier(0.25, 1, 0.5, 1),
                border-color 0.25s ease,
                background-color 0.25s ease,
                opacity 0.2s ease;
  }

  /* When hovering clickable or interactive elements */
  body.cursor-hover .cursor-dot {
    transform: translate(-50%, -50%) scale(1.6);
    background: #ffffff;
    box-shadow: 0 0 12px #ffffff, 0 0 24px rgba(255, 219, 0, 0.9);
  }

  body.cursor-hover .cursor-aura {
    width: 56px;
    height: 56px;
    border-color: #ffdb00;
    background-color: rgba(255, 219, 0, 0.12);
    box-shadow: 0 0 25px rgba(255, 219, 0, 0.45);
  }

  .hide-cursor {
    opacity: 0 !important;
  }
}

/* Hide custom cursor on touch/mobile screens */
@media (hover: none) or (pointer: coarse) {
  .cursor-dot,
  .cursor-aura,
  .cursor-wrap {
    display: none !important;
  }
}

/* ─── 2. Smooth Scrolling & Active Links ─── */
html {
  scroll-behavior: smooth;
}

.nav-link.active-link,
.nav-link.active {
  color: #ffdb00 !important;
  text-shadow: 0 0 10px rgba(255, 219, 0, 0.55);
}

/* ─── 3. Work Tabs & Category Content Transitions ─── */
[data-content] {
  display: none;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

[data-content].work-active,
[data-content].active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

[data-target] {
  cursor: pointer;
  user-select: none;
  transition: all 0.25s ease;
}

[data-target].work-active,
[data-target].active {
  color: #0b0b0e !important;
  background: linear-gradient(135deg, #ffe55c 0%, #ffdb00 50%, #ca8a04 100%) !important;
  box-shadow: 0 4px 16px rgba(255, 219, 0, 0.35) !important;
}

/* ─── 4. Smooth Services & Custom Accordion ─── */
.services__info,
.smooth-accordion-info {
  overflow: hidden;
  height: 0;
  transition: height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.services__card.services-open .services__info,
.smooth-accordion-item.services-open .smooth-accordion-info {
  height: auto;
}

/* ─── 5. Testimonials / Infinite Marquee Track ─── */
.infinite-marquee-container {
  overflow: hidden;
  width: 100%;
  position: relative;
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.testimonials__content,
.infinite-marquee-track {
  display: flex;
  gap: 1.5rem;
  width: max-content;
  animation: smoothMarquee 32s linear infinite;
}

.testimonials__content:hover,
.infinite-marquee-track:hover {
  animation-play-state: paused;
}

@keyframes smoothMarquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* ─── 6. Smooth Split-Text & Typing Animation ─── */
.split-char {
  display: inline-block;
  opacity: 0;
  transform: translateY(18px);
  animation: charFloatUp 0.55s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

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

/* ─── 7. Copy Feedback Tooltip ─── */
.copy-feedback {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: #4ade80;
  font-size: 0.85rem;
  font-weight: 600;
  animation: fadeInOut 2s ease forwards;
}

@keyframes fadeInOut {
  0% { opacity: 0; transform: scale(0.9); }
  15% { opacity: 1; transform: scale(1); }
  85% { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(0.9); }
}
/* ─── 8. High Contrast Text Readability (Fix dark unreadable text) ─── */
.text-muted,
p.text-muted,
span.text-muted,
small.text-muted,
div.text-muted {
  color: #e2e8f0 !important;
  opacity: 0.95 !important;
}

.text-dim,
p.text-dim,
span.text-dim,
small.text-dim {
  color: #cbd5e1 !important;
  opacity: 0.92 !important;
}

.portal-card p,
.portal-card .text-muted,
.stat-card p,
.stat-card .text-muted,
.card-dark p,
.card-dark .text-muted,
.winner-card p,
.winner-card .text-muted,
.feature-card p,
.feature-card .text-muted,
.vip-card p,
.vip-card .text-muted,
.guide-step-card p,
.guide-step-card .text-muted,
.article-wrap p,
.article-wrap ul,
.article-wrap ol,
.accordion-body,
.table {
  color: #f1f5f9 !important;
}

.portal-card h4 {
  color: #ffdb00 !important;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.portal-card p {
  color: #e2e8f0 !important;
  font-size: 0.95rem !important;
  line-height: 1.6 !important;
  font-weight: 400 !important;
  opacity: 1 !important;
}
