/**
 * Reel Block - Website Styles (Matching Popup)
 * ============================================
 * Otter & Water Themed Design
 */

/* Import pixel-style font */
@import url("https://fonts.googleapis.com/css2?family=Press+Start+2P&family=Source+Sans+Pro:wght@400;600;700&display=swap");

/* CSS Variables - Otter Water Theme */
:root {
  /* Water blues from the image */
  --bg-main: #085e8a;
  --bg-deep: #054060;
  --bg-card: rgba(125, 211, 232, 0.15); /* Light blue glass effect */
  --bg-light: #7dd3e8;

  /* Otter browns */
  --otter-dark: #5c3d2e;
  --otter-light: #d4c4a8;
  --otter-mid: #8b6914;

  /* Water accents */
  --water-light: #7dd3e8;
  --water-splash: #b8f0f5;
  --water-dark: #0d3a4d;

  /* Text colors */
  --text-primary: #ffffff;
  --text-secondary: #d0f0fa;
  --text-muted: #a0d8ea;
  --text-dark: #0d3a4d;

  /* UI colors */
  --accent-color: #7dd3e8;
  --success-color: #5cb85c;
  --border-color: rgba(125, 211, 232, 0.4);

  --radius: 16px;
  --radius-sm: 8px;
  --transition: all 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);

  --shadow-sm:
    0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-md:
    0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg:
    0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

  /* Define a uniform padding variable */
  --uniform-padding: 16px; /* Set uniform padding */
}

/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family:
    "Source Sans Pro",
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-primary);
  background: #085e8a;
  padding: var(--uniform-padding);
  min-height: 100vh;
}

/* Water ripple animation */
@keyframes ripple {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-2px);
  }
}

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

/* Modern Button */
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  outline: none;
  cursor: pointer;
  background: var(--water-light);
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.4);
  /* Removed bottom border */
  padding: 12px 24px;
  transition: var(--transition);
  font-family: "Source Sans Pro", sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-dark);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 15px rgba(125, 211, 232, 0.4);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn:hover {
  transform: translateY(-2px);
  background: #9de0f0;
  box-shadow: 0 8px 20px rgba(125, 211, 232, 0.5);
  filter: brightness(1.05);
}

.btn:active {
  transform: translateY(1px);
  box-shadow: 0 2px 10px rgba(125, 211, 232, 0.3);
  filter: brightness(0.95);
}

.btn::after {
  display: none;
}

.btn-sm {
  height: 36px;
  padding: 0 16px;
  font-size: 13px;
  border-radius: 12px;
}

.btn-icon {
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 12px;
}

.btn-large {
  padding: 18px 36px;
  font-size: 18px;
  width: 100%;
  max-width: 100%;
}

.btn-primary {
  background: var(--water-light);
  color: var(--text-dark);
  border: 1px solid rgba(255, 255, 255, 0.6);
}

.btn-primary:hover {
  background: #9de0f0;
}

/* Updated button styles to use #085E8A */
button {
  padding: 0.1em 0.25em;
  width: 13em;
  height: 4.2em;
  background-color: #085e8a; /* Updated to #085E8A */
  border: 0.08em solid var(--text-primary);
  border-radius: 0.3em;
  font-size: 12px;
  cursor: pointer;
}

button span {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  bottom: 0.4em;
  width: 8.25em;
  height: 2.5em;
  background-color: #085e8a; /* Updated to #085E8A */
  border-radius: 0.2em;
  font-size: 1.5em;
  color: var(--text-primary);
  border: 0.08em solid var(--text-primary);
  box-shadow: 0 0.4em 0.1em 0.019em var(--text-primary);
}

button span:hover {
  transition: all 0.5s;
  transform: translate(0, 0.4em);
  box-shadow: 0 0 0 0 var(--text-primary);
}

button span:not(hover) {
  transition: all 1s;
}

/* Popup Container */
.popup-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding: var(--uniform-padding);
  gap: 20px;
  position: relative;
  overflow: hidden;
  width: 50%; /* occupy roughly half the viewport width on larger screens */
  max-width: none; /* allow 50% to take effect even on very wide screens */
  margin: 24px auto; /* center horizontally and add some vertical breathing room */
  background: var(--bg-main);
}

/* Water bubbles decoration */
.popup-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    radial-gradient(
      circle at 10% 20%,
      rgba(125, 211, 232, 0.15) 4px,
      transparent 4px
    ),
    radial-gradient(
      circle at 90% 40%,
      rgba(184, 240, 245, 0.15) 6px,
      transparent 6px
    ),
    radial-gradient(
      circle at 30% 70%,
      rgba(125, 211, 232, 0.15) 3px,
      transparent 3px
    ),
    radial-gradient(
      circle at 80% 80%,
      rgba(184, 240, 245, 0.15) 5px,
      transparent 5px
    );
  pointer-events: none;
  animation: ripple 6s ease-in-out infitransparentnite;
}

/* Card style */
.card {
  background: transparent; /* Changed from rgba(125, 211, 232, 0.1) to transparent */
  border: none; /* Removed border */
  border-radius: var(--radius);
  padding: 24px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: none; /* Removed shadow */
  transition:
    transform 0.3s ease,
    background 0.3s ease;
}

.card:hover {
  border-color: none; /* Removed hover border color */
  background: transparent; /* Changed from rgba(125, 211, 232, 0.15) to transparent */
}

/* Header */
.popup-header {
  display: flex;
  flex-direction: column;
  align-items: center; /* Center align the header section */
  justify-content: center;
  padding-bottom: 8px;
  border-bottom: none;
  position: relative;
  z-index: 10;
}

.logo-section {
  display: flex;
  align-items: center; /* Align image and text on the same line */
  gap: 12px; /* Add spacing between the image and text */
}

.logo-icon {
  width: 48px;
  height: 48px;
  image-rendering: pixelated;
  flex-shrink: 0;
}

.logo-text {
  text-align: center; /* Center align the main title */
}

.logo-text h1 {
  font-family: "Press Start 2P", cursive;
  font-size: 20px;
  font-weight: 400;
  margin: 0;
  color: var(--text-primary);
  text-shadow: 2px 2px 0 var(--water-dark);
  line-height: 1;
}

.tagline {
  font-size: 11px;
  font-weight: 600;
  color: var(--water-light);
  text-transform: uppercase;
  letter-spacing: 1px;
  display: block;
}

/* Mascot Section */
.mascot-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: var(--uniform-padding) !important;
  border-radius: 16px;
  position: relative;
  z-index: 10;
  margin-bottom: 8px;
}

.mascot-image {
  width: 400px; /* Increased width */
  height: 240px; /* Increased height */
  object-fit: contain;
  image-rendering: pixelated;
  animation: none; /* Removed float animation */
}

.mascot-message {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  text-align: center;
  margin: 0;
  line-height: 1.4;
  text-shadow: 1px 1px 0 var(--water-dark);
}

.cta-button {
  margin-top: 8px;
  width: 100%;
  text-decoration: none;
  font-size: 15px;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 12px rgba(13, 58, 77, 0.3);
}

.main-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1;
}

/* Add spacing between the button and the mascot swimming image */
.mascot-section button {
  margin-top: 24px; /* Increased spacing */
}

/* Info Section */
.info-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: var(--uniform-padding) !important;
  border-radius: var(--radius);
  position: relative;
  z-index: 10;
}

.info-section .section-title {
  font-family: "Press Start 2P", cursive;
  font-size: 14px;
  margin: 0 0 4px 0;
  text-shadow: 1px 1px 0 var(--water-dark);
  text-align: center;
  color: var(--text-primary);
}

.info-section p {
  font-size: 13px;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.5;
  text-align: center;
  margin-bottom: 8px;
}

.info-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.feature-item {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(125, 211, 232, 0.1);
  border: 1px solid rgba(125, 211, 232, 0.2);
  border-radius: 12px;
  font-size: 14px;
  color: #fff;
  font-weight: 500;
  transition: all 0.2s ease;
  backdrop-filter: blur(5px);
}

.feature-item:hover {
  background: rgba(125, 211, 232, 0.2);
  border-color: rgba(125, 211, 232, 0.4);
  transform: translateX(4px);
}

/* Section Title */
.section-title {
  font-family: "Press Start 2P", cursive;
  font-size: 14px;
  font-weight: 400;
  margin: 0 0 12px 0;
  color: var(--text-primary);
  text-shadow: 1px 1px 0 var(--water-dark);
  text-align: center;
}

/* Platforms Section */
.platforms-section {
  position: relative;
  z-index: 10;
  margin-top: auto;
}

.platform-list {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.platform-item {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px; /* Reduced size */
  height: 48px; /* Reduced size */
  padding: calc(var(--uniform-padding) / 2);
  background: rgba(125, 211, 232, 0.1);
  border-radius: 16px;
  border: none; /* Removed border */
  transition: all 0.2s ease;
  backdrop-filter: blur(8px);
  margin-bottom: 16px; /* Added spacing below icons */
}

.platform-item:hover {
  background: rgba(125, 211, 232, 0.25);
  border-color: rgba(125, 211, 232, 0.5);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.platform-icon-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: brightness(0) invert(1); /* Changed icons to white */
}

.platform-icon {
  display: none; /* Hide old span based icons if any remain */
}

/* Why Section */
.why-section {
  padding: 16px !important;
  background: rgba(255, 255, 255, 0.05) !important;
  border-radius: var(--radius);
  position: relative;
  z-index: 10;
}

.why-section .section-title {
  margin-bottom: 12px;
}

.benefits-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.benefits-list li {
  font-size: 12px;
  color: var(--water-light);
  padding: 6px 0;
  line-height: 1.5;
}

/* Footer */
.popup-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: calc(var(--uniform-padding) / 2) 0;
  padding-top: 24px; /* Increased padding above footer */
  border-top: 1px solid rgba(123, 211, 232, 0.15);
  position: relative;
  z-index: 10;
}

.footer-link {
  color: var(--text-primary); /* Make footer text white */
  font-size: 11px;
  text-decoration: none;
  transition: var(--transition);
}

.footer-link:hover {
  color: var(--text-primary); /* Keep footer text white on hover */
}

.separator {
  color: var(--text-muted);
  font-size: 11px;
}

/* Made by Footer */
.made-by-footer {
  padding: calc(var(--uniform-padding) / 2);
  text-align: center;
  border-top: 1px solid rgba(125, 211, 232, 0.15);
  font-size: 11px;
  position: relative;
  z-index: 10;
}

.made-by-footer p {
  margin: 0;
  color: var(--text-muted);
}

.made-by-footer a {
  color: #085e8a; /* Update link color to #085E8A */
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
}

.made-by-footer a:hover {
  color: var(--text-primary);
}

.made-by-footer a:visited {
  color: #085e8a; /* Keep the visited link color the same as the default color */
}

/* Responsive */
@media (max-width: 600px) {
  .popup-container {
    min-height: auto;
    padding: 12px;
    gap: 10px;
    width: 92%; /* fallback for small screens */
  }

  .logo-text h1 {
    font-size: 18px;
  }

  .mascot-image {
    width: 150px;
    height: 80px;
  }

  .section-title {
    font-size: 13px;
  }

  .info-features {
    grid-template-columns: 1fr;
  }
}
a {
  color: var(--text-primary);
}
