/* =========================================
   Phishtopia Styles — Cleaned & Organized
   ========================================= */

/* ---------- Colors ---------- */
:root {
  --dark-text: #331b01;
  --light-text: #f00b0bff;
  --dark-section-bg: #ffb76a;
  --light-section-bg: #03a9f4;
  --blue-main-bg: #19c5df;
}

/* ---------- Backgrounds ---------- */
.gradient-background {
  background: linear-gradient(300deg,
      var(--light-text),
      var(--light-section-bg),
      var(--dark-section-bg));
  background-size: 180% 180%;
  animation: gradient-animation 18s ease infinite;
}

@keyframes gradient-animation {

  0%,
  100% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }
}

#bubble-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: -1;
  background: rgba(121, 208, 219, 1);
}

/* Simple color utility backgrounds */
.light-bg {
  background-color: var(--blue-main-bg);
  color: var(--dark-section-bg);
}

.dark-bg {
  background-color: var(--dark-section-bg);
  color: var(--light-section-bg);
}

.orange-bg {
  background-color: var(--light-section-bg);
  color: var(--dark-text);
}

/* ---------- Images ---------- */
.logo {
  width: 50px;
  border-radius: 50%;
}

/* ---------- Typography ---------- */
body:not(.playint) {
  font-family: "Cormorant Garamond", serif;
}

body:not(.playint) h1,
body:not(.playint) h2,
body:not(.playint) h3,
body:not(.playint) h4,
body:not(.playint) h5,
body:not(.playint) .pompiere-regular {
  font-family: "Pompiere", sans-serif;
  font-weight: 400;
}

body:not(.playint) h1 {
  font-size: 5rem;
}

body:not(.playint) h2 {
  font-size: 3rem;
}

body:not(.playint) h3,
body:not(.playint) h4 {
  font-size: 2.5rem;
}

body:not(.playint) h5 {
  font-size: 2.25rem;
  color: var(--dark-text);
}

body:not(.playint) p {
  font-size: 1.5rem;
  color: var(--dark-text);
}

/* ---------- Links ---------- */
a {
  color: var(--dark-text);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  text-decoration-color: currentColor;
  text-decoration-skip-ink: none;
}

/* Remove possible underline artifacts */
a::before,
a::after {
  background-image: none !important;
  box-shadow: none !important;
  border-bottom: none !important;
}

/* Link states */
a:not(.btn):visited {
  color: var(--light-text);
}

a:not(.btn):hover {
  color: var(--dark-section-bg);
}

a:not(.btn):active {
  color: var(--light-section-bg);
}

/* Section-specific link colors */
.just-in-section a,
.projects-list-section a,
.navbar a {
  color: var(--dark-text) !important;
  text-decoration-color: currentColor !important;
}

.just-in-section a:visited,
.projects-list-section a:visited,
.navbar a:visited {
  color: var(--light-text) !important;
}

.just-in-section a:hover,
.projects-list-section a:hover,
.navbar a:hover {
  color: var(--dark-section-bg) !important;
}

.just-in-section a:active,
.projects-list-section a:active,
.navbar a:active {
  color: #2ac3c9ff !important;
}

/* Keep h2 link colors consistent */
.projects-list-section h2,
.projects-list-section h2 a {
  color: inherit;
}

/* ---------- Gradient Text ---------- */
.gradient-text {
  animation: text-color-animation 18s ease infinite;
}

@keyframes text-color-animation {

  0%,
  100% {
    color: var(--light-section-bg);
  }

  33% {
    color: var(--blue-main-bg);
  }

  66% {
    color: var(--dark-section-bg);
  }
}

/* ---------- Buttons ---------- */
.btn {
  font-size: 1.3rem;
}

.btn-outline-light {
  border-color: var(--dark-text);
  background-color: var(--light-text);
  color: var(--dark-text);
}

.btn-outline-dark {
  border-color: var(--dark-text);
  background-color: var(--dark-section-bg);
  color: var(--light-text);
}

/* ---------- Layout ---------- */
body {
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.navbar {
  border-bottom: 3px solid var(--dark-section-bg);
}

.navbar li {
  font-size: 1.5rem;
}

/* Grid Layouts */
.main-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  padding: 20px;
  flex-grow: 1;
}

.hero-section {
  grid-column: span 2;
  margin-bottom: 20px;
}

.subtitle {
  margin-top: 10px;
}

/* Section containers */
.storecalc-section,
.projects-section {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 360px;
  border-radius: 10px;
  padding: 20px 20px 2rem;
  opacity: 0.75;
}

.projects-section {
  background-color: var(--light-section-bg);
  color: var(--dark-text);
}

/* Last child auto push */
.projects-section:not(.just-in-section)> :last-child,
.storecalc-section> :last-child {
  margin-top: auto;
}

/* Inner p for storecalc */
body:not(.playint) .storecalc-section p {
  background-color: var(--dark-section-bg);
  color: var(--dark-text);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  grid-column: span 2;
}

/* ---------- Just-In Section ---------- */
.just-in-section {
  grid-row: 1 / span 2;
  min-height: 100px;
  justify-content: center;
  padding: 20px;
}

.just-in-section h2 {
  margin-bottom: 15px;
}

.just-in-section ul {
  list-style: none;
  padding: 0;
}

.just-in-section li {
  display: flex;
  align-items: center;
}

.just-in-section li::before {
  content: "•";
  margin-right: 0.5em;
  font-size: 1.2em;
}

/* ---------- Projects List Section ---------- */
.projects-list-section {
  background-color: var(--light-section-bg);
  color: var(--dark-text);
  padding: 20px 10px 15px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* ---------- Footer ---------- */
.footer {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  border-top: 3px solid var(--dark-text);
  opacity: 0.75;
}

#copyright {
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.footer-links {
  width: 75%;
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding-top: 10px;
  margin: 20px auto;
  border-radius: 10px;
  font-size: 1.3rem;
  background-color: var(--blue-main-bg);
}

.footer-links p {
  margin: 0 10px 10px;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {

  .main-grid,
  .projects-grid {
    grid-template-columns: 1fr;
  }

  .hero-section,
  .storecalc-section,
  .projects-section,
  .carousel-section,
  .birthday-section,
  .projects-list-section {
    grid-column: span 1;
  }
}