/* ==========================================================================
   Base Styles & Variables
   ========================================================================== */
:root {
  --primary-blue: #30a7d7;
  --secondary-blue: #4dad5b;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
}

body {
  background: #30a7d7;
  font-family: 'Flexo-Medium', Arial, sans-serif;
  color: #fff;
  text-align: center;
}

.container {
  max-width: 100%;
  margin: 0 auto;
  padding: 20px;
}

/* ==========================================================================
   Header
   ========================================================================== */
.header {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 2rem;
  gap: 1.5rem;
}

.header__curved-text {
  width: 100%;
  max-width: 800px;
  height: auto;
}

.curved-text {
  fill: white;
  font-size: 14px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 2px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

@media (max-width: 768px) {
  .curved-text {
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  .curved-text {
    font-size: 12px;
  }
}

/* ==========================================================================
     Logo & Header
     ========================================================================== */
.logo {
  width: 50%;
  max-width: 400px;
}

button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 8px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
  .logo {
    width: 90%;
  }
}

/* ==========================================================================
     Search Component
     ========================================================================== */
.search-container {
  width: 100%;
  max-width: 600px;
  margin: 20px auto;
  padding: 0 20px;
  position: relative;
}

.search-bar {
  padding: 12px 20px;
  font-size: 16px;
  width: 100%;
  padding: 15px 25px;
  font-size: 18px;
  border: 2px solid rgba(255, 255, 255, 0.8);
  border-radius: 30px;
  outline: none;
  transition: all 0.3s ease;
  background: linear-gradient(135deg, rgba(104, 144, 240, 0.1) 0%, rgba(48, 167, 215, 0.15) 100%);
  backdrop-filter: blur(5px);
  color: white;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1), inset 0 2px 4px rgba(255, 255, 255, 0.1);
}

.search-bar:focus {
  border-color: rgba(255, 255, 255, 1);
  background: linear-gradient(135deg, rgba(104, 144, 240, 0.2) 0%, rgba(48, 167, 215, 0.25) 100%);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15), inset 0 2px 4px rgba(255, 255, 255, 0.2);
}

.search-bar::placeholder {
  color: rgba(255, 255, 255, 0.7);
  opacity: 1;
}

/* For WebKit browsers (Chrome, Safari) */
.search-bar::-webkit-input-placeholder {
  color: rgba(255, 255, 255, 0.7);
}

/* For Firefox */
.search-bar::-moz-placeholder {
  color: rgba(255, 255, 255, 0.7);
}

/* For Internet Explorer */
.search-bar:-ms-input-placeholder {
  color: rgba(255, 255, 255, 0.7);
}

/* ==========================================================================
     Pokemon Grid & Cards
     ========================================================================== */
.pokemon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  padding: 20px;
  max-width: 1400px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .container {
    padding: 10px;
  }

  .pokemon-grid {
    padding: 10px;
    gap: 15px;
  }

  .intro__description {
    font-size: 1rem;
    padding: 0 15px;
  }

  .intro__steps {
    padding: 0 15px;
  }

  .intro__step {
    min-width: 140px;
    padding: 12px;
  }
}

@media (max-width: 480px) {
  .pokemon-grid {
    grid-template-columns: 1fr;
    padding: 10px;
  }

  .pokemon-card {
    height: 130px;
    width: 100%;
    max-width: none;
    margin: 0;
  }

  .pokemon-card__image {
    width: 110px;
    height: 110px;
  }

  .pokemon-card__name {
    font-size: 1.5rem;
  }

  .search-bar {
    font-size: 14px;
    padding: 10px 16px;
  }
}

/* Block: pokemon-card */
.pokemon-card {
  text-decoration: none;
  display: block;
  height: 150px;
  border-radius: 20px;
  padding: 15px;
  position: relative;
  cursor: pointer;
  transition: transform 0.3s ease;
  overflow: hidden;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  view-transition-name: none;
}

/* Element: pokemon-card__pokeball-bg */
.pokemon-card::before {
  content: '';
  position: absolute;
  right: -30px;
  bottom: -30px;
  width: 200px;
  height: 200px;
  background: url('images/pokeball/pokeball.png') no-repeat center center;
  background-size: contain;
  opacity: 0.15;
  z-index: -1;
  transform: rotate(30deg);
}

.pokemon-card__info {
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: relative;
}

.pokemon-card:hover {
  transform: translateY(-5px);
}

/* Element: pokemon-card__content */
.pokemon-card__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: relative;
}

/* Element: pokemon-card__number */
.pokemon-card__number {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
  margin-bottom: 5px;
  font-weight: 500;
}

/* Element: pokemon-card__name */
.pokemon-card__name {
  text-transform: capitalize;
  font-size: 2rem;
  font-weight: bold;
  color: white;
  margin-bottom: 5px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

/* Element: pokemon-card__image */
.pokemon-card__image {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 140px;
  height: 140px;
}

.pokemon-card__types {
  display: flex;
  gap: 5px;
}

/* ==========================================================================
     Back Button
     ========================================================================== */
.back-button {
  position: fixed;
  top: 20px;
  left: 20px;
  padding: 12px 24px;
  border-radius: 25px;
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: none;
  cursor: pointer;
  z-index: 1001;
  font-size: 1.2rem;
  backdrop-filter: blur(5px);
  transition: all 0.2s ease;
}

.back-button:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

/* ==========================================================================
     Footer
     ========================================================================== */
.footer {
  background: rgba(0, 0, 0, 0.2);
  padding: 3rem 2rem 1rem;
  margin-top: auto;
}

.footer__content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.footer__section h4 {
  color: white;
  margin-bottom: 1rem;
}

.footer__links {
  list-style: none;
  padding: 0;
}

.footer__links a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  line-height: 1.8;
}

.footer__links a:hover {
  color: white;
}

.footer__copyright {
  text-align: center;
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.6);
}

/* ==========================================================================
     Type Badges
     ========================================================================== */

.type-badge {
  padding: 4px 10px 4px 28px;
  font-size: 0.8rem;
  color: white;
  text-transform: capitalize;
  font-weight: 500;
  position: relative;
  display: inline-flex;
  align-items: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  transition: box-shadow 0.2s ease;
}

/* Optional: Add hover effect to make badges more interactive */
.type-badge:hover {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

/* Type-specific colors */
.type-badge[data-type='normal'] {
  background-color: #a8a878;
}
.type-badge[data-type='fire'] {
  background-color: #f08030;
}
.type-badge[data-type='water'] {
  background-color: #6890f0;
}
.type-badge[data-type='electric'] {
  background-color: #f8d030;
}
.type-badge[data-type='grass'] {
  background-color: #78c850;
}
.type-badge[data-type='ice'] {
  background-color: #98d8d8;
}
.type-badge[data-type='fighting'] {
  background-color: #c03028;
}
.type-badge[data-type='poison'] {
  background-color: #a040a0;
}
.type-badge[data-type='ground'] {
  background-color: #e0c068;
}
.type-badge[data-type='flying'] {
  background-color: #a890f0;
}
.type-badge[data-type='psychic'] {
  background-color: #f85888;
}
.type-badge[data-type='bug'] {
  background-color: #a8b820;
}
.type-badge[data-type='rock'] {
  background-color: #b8a038;
}
.type-badge[data-type='ghost'] {
  background-color: #705898;
}
.type-badge[data-type='dragon'] {
  background-color: #7038f8;
}
.type-badge[data-type='dark'] {
  background-color: #705848;
}
.type-badge[data-type='steel'] {
  background-color: #b8b8d0;
}
.type-badge[data-type='fairy'] {
  background-color: #ee99ac;
}

/* Keep the existing icon styles */
.type-badge::before {
  content: '';
  color: white;
  position: absolute;
  left: 8px;
  width: 16px;
  height: 16px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  filter: brightness(0) invert(1);
}

/* Type icons */
.type-badge[data-type='normal']::before {
  background-image: url('images/icons/normal.png');
}
.type-badge[data-type='fire']::before {
  background-image: url('images/icons/fire.png');
}
.type-badge[data-type='water']::before {
  background-image: url('images/icons/water.png');
}
.type-badge[data-type='electric']::before {
  background-image: url('images/icons/electric.png');
}
.type-badge[data-type='grass']::before {
  background-image: url('images/icons/grass.png');
}
.type-badge[data-type='ice']::before {
  background-image: url('images/icons/ice.png');
}
.type-badge[data-type='fighting']::before {
  background-image: url('images/icons/fighting.png');
}
.type-badge[data-type='poison']::before {
  background-image: url('images/icons/poison.png');
}
.type-badge[data-type='ground']::before {
  background-image: url('images/icons/ground.png');
}
.type-badge[data-type='flying']::before {
  background-image: url('images/icons/flying.png');
}
.type-badge[data-type='psychic']::before {
  background-image: url('images/icons/psychic.png');
}
.type-badge[data-type='bug']::before {
  background-image: url('images/icons/bug.png');
}
.type-badge[data-type='rock']::before {
  background-image: url('images/icons/rock.png');
}
.type-badge[data-type='ghost']::before {
  background-image: url('images/icons/ghost.png');
}
.type-badge[data-type='dragon']::before {
  background-image: url('images/icons/dragon.png');
}
.type-badge[data-type='dark']::before {
  background-image: url('images/icons/dark.png');
}
.type-badge[data-type='steel']::before {
  background-image: url('images/icons/steel.png');
}
.type-badge[data-type='fairy']::before {
  background-image: url('images/icons/fairy.png');
}

/* ==========================================================================
     Intro Section
     ========================================================================== */
.intro {
  max-width: 800px;
  margin: 0 auto 0;
  padding: 0 20px;
  text-align: center;
  color: white;
}

.intro__description {
  font-size: 1.4rem;
  line-height: 1.6;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.intro__steps {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2rem;
  overflow-x: auto;
  padding: 0.5rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE and Edge */
}

/* Hide scrollbar for Chrome, Safari and Opera */
.intro__steps::-webkit-scrollbar {
  display: none;
}

.intro__step {
  flex: 0 0 auto;
  width: 200px;
  background: rgba(255, 255, 255, 0.1);
  padding: 1.2rem;
  border-radius: 15px;
  backdrop-filter: blur(5px);
  transition: transform 0.2s;
}

.intro__step:hover {
  transform: translateY(-5px);
}

.intro__step-number {
  display: inline-block;
  width: 32px;
  height: 32px;
  line-height: 32px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  margin-bottom: 0.5rem;
  font-weight: bold;
}

/* Media Queries */
@media (max-width: 768px) {
  .intro {
    margin: 1rem auto 2rem;
  }

  .intro__description {
    font-size: 1rem;
    line-height: 1.5;
    padding: 0 10px;
  }

  .intro__steps {
    margin: 1rem -20px;
    padding: 0.5rem 20px;
  }

  .intro__step {
    width: 200px;
    padding: 1rem;
  }

  .intro__step-number {
    width: 28px;
    height: 28px;
    line-height: 28px;
    font-size: 0.9rem;
  }

  .intro__step p {
    font-size: 0.95rem;
    margin: 0.5rem 0 0;
  }
}

@media (max-width: 480px) {
  .intro {
    margin: 0.5rem auto 1.5rem;
  }

  .intro__description {
    font-size: 0.95rem;
    padding: 0 15px;
  }

  .intro__step {
    padding: 1rem;
  }
}

.intro__curved-text {
  width: 100%;
  max-width: 800px;
  height: auto;
  margin: 0 auto 2rem;
  padding: 20px 0;
}

/* ==========================================================================
   Ad Containers
   ========================================================================== */
.ad-container {
  width: 100%;
  max-width: 1200px;
  margin: 2rem auto;
  text-align: center;
  min-height: 90px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  overflow: hidden;
}

.ad-container--top {
  margin-top: 1rem;
}

.ad-container--bottom {
  margin-bottom: 1rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .ad-container {
    margin: 1rem auto;
    min-height: 60px;
  }
}

/* Add these styles */
.main-nav {
  width: 100%;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  margin-bottom: 2rem;
  padding: 1rem;
}

.main-nav__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: center;
  gap: 2rem;
}

.main-nav__link {
  color: white;
  text-decoration: none;
  font-size: 1.1rem;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  transition: all 0.3s ease;
}

.main-nav__link:hover {
  background: rgba(255, 255, 255, 0.2);
}

.features {
  padding: 2rem;
  margin: 2rem auto;
  max-width: 1200px;
}

.features__title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 2rem;
  color: white;
}

.features__list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.features__item {
  background: rgba(255, 255, 255, 0.1);
  padding: 2rem;
  border-radius: 20px;
  text-align: center;
}

.features__item h3 {
  color: white;
  margin-bottom: 1rem;
}

.features__item p {
  color: rgba(255, 255, 255, 0.9);
}

/* Add responsive styles */
@media (max-width: 768px) {
  .main-nav__list {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }
}

/* Legal Pages Styles */
.legal-content {
  max-width: 800px;
  margin: 2rem auto;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  backdrop-filter: blur(10px);
}

.legal-content h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: white;
}

.legal-content h2 {
  font-size: 1.8rem;
  margin: 2rem 0 1rem;
  color: white;
}

.legal-content p {
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.legal-content ul {
  list-style: disc;
  margin-left: 2rem;
  margin-bottom: 1rem;
  color: rgba(255, 255, 255, 0.9);
}

.legal-content li {
  margin-bottom: 0.5rem;
}

@media (max-width: 768px) {
  .legal-content {
    margin: 1rem;
    padding: 1.5rem;
  }

  .legal-content h1 {
    font-size: 2rem;
  }

  .legal-content h2 {
    font-size: 1.5rem;
  }
}
