@tailwind base;
@tailwind components;
@tailwind utilities;

html {
  scroll-behavior: smooth;
}

.hljs-copy-button {
  background-color: rgb(129, 129, 129) !important;
  padding: 0 0.5rem;
}

@layer base {
  :root {
    --background: 0 0% 100%;
    --foreground: 222.2 84% 4.9%;

    --card: 0 0% 100%;
    --card-foreground: 222.2 84% 4.9%;

    --popover: 0 0% 100%;
    --popover-foreground: 222.2 84% 4.9%;

    --primary: 202 100% 41%;
    --primary-foreground: 210 40% 98%;

    --secondary: 210 40% 96.1%;
    --secondary-foreground: 222.2 47.4% 11.2%;

    --muted: 210 40% 96.1%;
    --muted-foreground: 215.4 16.3% 46.9%;

    --accent: 210 40% 96.1%;
    --accent-foreground: 222.2 47.4% 11.2%;

    --destructive: 0 84.2% 60.2%;
    --destructive-foreground: 210 40% 98%;

    --border: 214.3 31.8% 91.4%;
    --input: 214.3 31.8% 91.4%;
    --ring: 222.2 84% 4.9%;

    --radius: 0.5rem;
  }

  .dark {
    --background: 222.2 84% 4.9%;
    --foreground: 210 40% 98%;

    --card: 222.2 84% 4.9%;
    --card-foreground: 210 40% 98%;

    --popover: 222.2 84% 4.9%;
    --popover-foreground: 210 40% 98%;

    --primary: 210 40% 98%;
    --primary-foreground: 222.2 47.4% 11.2%;

    --secondary: 217.2 32.6% 17.5%;
    --secondary-foreground: 210 40% 98%;

    --muted: 217.2 32.6% 17.5%;
    --muted-foreground: 215 20.2% 65.1%;

    --accent: 217.2 32.6% 17.5%;
    --accent-foreground: 210 40% 98%;

    --destructive: 0 62.8% 30.6%;
    --destructive-foreground: 210 40% 98%;

    --border: 217.2 32.6% 17.5%;
    --input: 217.2 32.6% 17.5%;
    --ring: 212.7 26.8% 83.9%;
  }
}

@layer base {
  * {
    @apply border-border;
  }
  body {
    @apply bg-background text-foreground;
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

.floating-btn {
  animation: float 2s ease-in-out infinite;
  font-size: 1.05rem;
}

.confetti-banner {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

/* Confetti falling pseudo-elements */
.confetti-banner::before,
.confetti-banner::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

/* Confetti thrown upward and falling down */
.confetti-banner::before {
  background:
    radial-gradient(circle, #fbbf24cc 8px, transparent 9px) 10% 100% / 14px 14px no-repeat,
    radial-gradient(circle, #22d3eecc 7px, transparent 8px) 30% 100% / 12px 12px no-repeat,
    linear-gradient(45deg, #ef4444cc 80%, transparent 81%) 50% 100% / 13px 13px no-repeat,
    repeating-linear-gradient(120deg, #facc15cc 0 6px, transparent 7px 12px) 70% 100% / 16px 16px no-repeat;
  background-repeat: no-repeat;
  animation: confetti-rain 4s linear infinite;
  animation-delay: 0s;
}

.confetti-banner::after {
  background:
    radial-gradient(circle, #c084fccc 8px, transparent 9px) 20% 100% / 14px 14px no-repeat,
    radial-gradient(circle, #34d399cc 9px, transparent 10px) 40% 100% / 16px 16px no-repeat,
    linear-gradient(45deg, #06b6d4cc 80%, transparent 81%) 60% 100% / 13px 13px no-repeat,
    repeating-linear-gradient(-110deg, #a3e635cc 0 6px, transparent 7px 13px) 80% 100% / 15px 15px no-repeat;
  background-repeat: no-repeat;
  animation: confetti-rain 4s linear infinite;
  animation-delay: 10s; /* repeats every 10s */
}

@keyframes confetti-rain {
  0% {
    background-position-y: 100%;
    opacity: 1;
  }
  100% {
    background-position-y: 0%;
    opacity: 0;
  }
}

/* Modern FAQ Section */
.faq-container {
    /* max-width: 900px; */
    margin: 0 auto;
    /* background-color: red; */
    display: flex;
    flex-direction: row;
}

.faq-header {
    text-align: left;
    margin-bottom: 3rem;
    width: 40%;
}

.faq-content {
    flex: 1;
}

.faq-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #ffffff, #e5e7eb);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.faq-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
}

.faq-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    margin-bottom: 1rem;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(0, 85, 254, 0.2);
}

.faq-question {
    width: 100%;
    padding: 1.5rem 2rem;
    background: none;
    border: none;
    text-align: left;
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s ease;
    background: none;
    border: none;
    outline: none;
    appearance: none;
}

.faq-question span {
    width: 90%;
}

.faq-question:hover {
    color: #0055FE;
}

.faq-question.active {
    color: #0055FE;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    transform: none;
    box-shadow: none;
}

.faq-icon {
    width: 24px;
    height: 24px;
    background: rgba(0, 85, 254, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.faq-icon.active {
    background: #0055FE;
    color: white;
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 2rem;   /* no vertical padding initially */
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
    font-size: 1rem;
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-answer.active {
    max-height: 600px;
    padding: 1rem 2rem 1.5rem;  /* add top/bottom padding on expand */
}

.electrolize-regular {
  font-family: "Electrolize", sans-serif;
  font-weight: 400;
  font-style: normal;
}

/* Custom scrollbar for Webkit browsers (Chrome, Safari, Edge) */
::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: #1a1a1a;
  border-radius: 6px;
}

::-webkit-scrollbar-thumb {
  background-color: #4a90e2;
  border-radius: 6px;
  border: 3px solid #1a1a1a;
}

::-webkit-scrollbar-thumb:hover {
  background-color: #357ABD;
}

/* For Firefox */
* {
  scrollbar-width: thin;
  scrollbar-color: #4a90e2 #1a1a1a;
}

/* Prop Firms Table Styles */
.prop-firms-table {
  border-collapse: separate;
  border-spacing: 0;
}

.prop-firms-table thead th {
  position: sticky;
  top: 0;
  background: linear-gradient(to bottom, rgba(31, 41, 55, 0.95), rgba(17, 24, 39, 0.95));
  backdrop-filter: blur(10px);
  z-index: 10;
}

.prop-firm-row {
  position: relative;
  transition: all 0.2s ease-in-out;
}

.prop-firm-row:hover {
  background: rgba(59, 130, 246, 0.1) !important;
  transform: translateX(4px);
}

/* .prop-firm-row::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, #3b82f6, #8b5cf6);
  opacity: 0;
  transition: opacity 0.2s ease-in-out;
} */

.prop-firm-row:hover::before {
  opacity: 1;
}

/* Mobile responsiveness for table */
@media (max-width: 768px) {
  .prop-firms-table {
    font-size: 0.875rem;
  }

  .prop-firm-row:hover {
    transform: translateX(2px);
  }
}

/* Smooth scroll offset for anchor links */
html {
  scroll-padding-top: 100px;
}
