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

/* --------------------------------------
   Base layer: reset & dark‐mode defaults
--------------------------------------- */
@layer base {
  html,
  body {
    margin: 0;
    padding: 0;
    height: 100%;
    width: 100%;
    background: #000;                    /* dark background */
    color: #dc2626;                      /* red primary text */
    font-family: Inter, "Segoe UI", Roboto, sans-serif;
    line-height: 1.6;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

/* --------------------------------------
   Component layer: core layout & sizing
--------------------------------------- */
@layer components {
  .main-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 90%;
    max-width: 480px;                    /* mobile max width */
    padding: 2rem;
    background: #111;                    /* contrast panel */
    border-radius: 1.5rem;
    box-shadow: 0 10px 25px rgb(0 0 0 / 50%);
    text-align: center;
    border: 1px solid #dc2626;
  }

  /* Countdown styling */
  #countdown {
    font-size: 2rem;
    font-weight: bold;
    color: #ff1a1a;
    margin: 1rem 0;
  }

  /* OG image container & img */
  .og-image-wrapper {
    margin: 1.5rem 0;
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .og-image-wrapper img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 1rem;
    border: 2px solid #dc2626;
    box-shadow: 0 6px 20px rgb(220 38 38 / 30%);
    max-width: 100%;
  }
}

/* --------------------------------------
   Responsive tweaks (≥640px / sm)
--------------------------------------- */
@layer components {
  @screen sm {
    .main-container {
      max-width: 600px;                  /* wider on tablets and up */
      padding: 3rem;
    }

    .main-container h1 {
      font-size: 2.5rem;                 /* ~40px */
    }

    #countdown {
      font-size: 3rem;                   /* ~48px */
    }
  }
}
