@import "tailwindcss";

@theme {
  /* Fonts */
  --font-sans: 'Montserrat', sans-serif;
  --font-heading: 'Oswald', sans-serif;

  /* Kendari Theme Colors */
  --color-primary-red: #ff0000;
  --color-secondary-red: #ff3366;
  --color-dark-bg: #050505;
  --color-glow: rgba(255, 0, 0, 0.6);
  --color-glass-bg: rgba(255, 255, 255, 0.05);
  --color-neon-red: #ff0033;
  --color-neon-red-2: #ff0000;
  
  /* Text Colors */
  --color-text-main: #ffffff;
  --color-text-muted: rgba(255, 255, 255, 0.6);
}

html,
body {
  margin: 0;
  width: 100%;
  min-height: 100vh;
  background-color: #050505;
  background-image: linear-gradient(180deg, #c70000 0%, #5e0000 50%, #000000 90%);
  background-attachment: fixed;
  color: var(--color-text-main);
  font-family: 'Montserrat', sans-serif;
  scroll-behavior: smooth;
  overflow-x: hidden;
  position: relative;
}

/* Noise Overlay for Retro Poster Texture */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  opacity: 0.06;
  pointer-events: none;
  z-index: 9999;
  mix-blend-mode: overlay;
}

/* Navbar/Language visibility restored */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-text-main);
}

@layer components {
  /* Kendari background theme */
  .kendari-background {
    background-color: var(--color-dark-bg);
    background-image: linear-gradient(180deg, #c70000 0%, #5e0000 50%, #000000 90%);
    color: white;
    position: relative;
  }

  /* Dot Pattern Overlay for Popups/Global Backgrounds */
  .kendari-background::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(255, 255, 255, 0.1) 1.5px, transparent 1.5px);
    background-size: 30px 30px;
    opacity: 0.6;
    pointer-events: none;
    z-index: 0;
  }

  /* Utility Classes */
  .text-secondary {
    color: var(--color-text-muted);
  }

  .bg-gradient-radial {
    background-image: radial-gradient(circle, var(--tw-gradient-stops));
  }

  /* Markdown Content Styling */
  .markdown-content {
    text-align: left;
  }

  .markdown-content h1, 
  .markdown-content h2, 
  .markdown-content h3,
  .markdown-content h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--color-text-main);
    line-height: 1.3;
  }

  .markdown-content p {
    margin-bottom: 1rem;
  }

  .markdown-content ul {
    list-style-type: disc;
    padding-left: 1.25rem;
    margin-bottom: 1rem;
  }

  .markdown-content ol {
    list-style-type: decimal;
    padding-left: 1.25rem;
    margin-bottom: 1rem;
  }

  .markdown-content li {
    margin-bottom: 0.25rem;
  }

  .markdown-content strong {
    font-weight: 700;
    color: white; /* Ensure bold stands out against muted text */
  }

  .markdown-content a {
    color: #dc2626; /* red-600 equivalent */
    text-decoration: underline;
  }

  .markdown-content blockquote {
    border-left: 4px solid #dc2626;

    padding-left: 1rem;
    font-style: italic;
    margin-bottom: 1rem;
    color: var(--color-text-muted);
  }

  /* Metallic / Silver Gradient Text Utility */
  /* Metallic / Silver Gradient Text Utility - Matching landing-soon.html */
  .text-gradient-silver,
  h1.font-heading.text-white, 
  h2.font-heading.text-white,
  .hero-title,
  .race-card h3 {
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em; /* Mirip 5px relative */
    line-height: 1.1;
    
    /* Chrome / Metallic White Gradient */
    background: linear-gradient(
      180deg, 
      #FFFFFF 0%, 
      #E0E0E0 45%, 
      #8C8C8C 50%, 
      #D0D0D0 70%,
      #FFFFFF 100%
    );
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.8));
  }
}