/* ===== MEDIA QUERIES FOR BUILDS PAGE ===== */

/* Large devices (desktops, less than 1200px) */
@media (max-width: 1200px) {
  .img-build img {
    max-height: 900px;
    max-width: 900px;
  }
}

/* Medium devices (tablets, less than 992px) */
@media (max-width: 992px) {
  .img-build img {
    max-height: 700px;
    max-width: 700px;
  }
  
  .build-section h1, 
  .arcana-section h1 {
    font-size: 35px;
  }
  
  h2 {
    font-size: 32px;
  }
  
  p {
    font-size: 22px;
    line-height: 1.7em;
  }
  
  .tooltip, .arcana-tooltip {
    max-width: 220px;
  }
}

/* Small devices (landscape phones, less than 768px) */
@media (max-width: 768px) {
  .img-build img {
    max-height: 500px;
    max-width: 500px;
  }
  
  .build-section h1, 
  .arcana-section h1 {
    font-size: 30px;
    margin-top: 15px;
    gap: 8px;
  }
  
  h2 {
    font-size: 28px;
    margin-top: 25px;
  }
  
  p {
    font-size: 18px;
    line-height: 1.6em;
    margin-top: 15px;
    margin-bottom: 10px;
  }
  
  .introduction-section h2::before,
  h2::before {
    width: 30px;
    height: 18px;
    margin-right: 8px;
  }
  
  .tooltip, .arcana-tooltip {
    max-width: 200px;
    padding: 8px;
  }
  
  .tooltip-img {
    width: 40px;
    height: 40px;
    margin-right: 20px;
  }
  
  .arcana-tooltip img {
    margin-left: 20px;
  }
  
  .tooltip-effect {
    font-size: 13px;
    margin-top: 10px;
  }
  
  .bongo-cat {
    max-width: 40px;
    max-height: 40px;
    margin-left: 15px;
  }
  
  .cat-smooch {
    max-width: 35px;
    max-height: 35px;
    margin-left: 8px;
  }
}

/* Extra small devices (portrait phones, less than 576px) */
@media (max-width: 576px) {
  .img-build img {
    max-height: 350px;
    max-width: 350px;
  }
  
  .build-section h1, 
  .arcana-section h1 {
    font-size: 26px;
    margin-top: 12px;
    gap: 6px;
  }
  
  h2 {
    font-size: 24px;
    margin-top: 20px;
  }
  
  p {
    font-size: 18.8px;
    line-height: 1.5em;
    margin-top: 12px;
    margin-bottom: 8px;
  }
  
  .introduction-section h2::before,
  h2::before {
    width: 25px;
    height: 15px;
    margin-right: 6px;
  }
  
  .tooltip, .arcana-tooltip {
    max-width: min(180px, 65vw);
    padding: 6px;
  }
  
  .tooltip-img {
    width: 35px;
    height: 35px;
    margin-right: 15px;
  }
  
  .arcana-tooltip img {
    margin-left: 15px;
  }
  
  .tooltip-effect {
    font-size: 12px;
    margin-top: 8px;
  }
  
  .tooltip-header {
    gap: 6px;
    margin-bottom: 6px;
  }
  
  .tooltip-name {
    font-size: 14px;
  }
  
  .tooltip-cost {
    font-size: 13px;
  }
  
  .bongo-cat {
    max-width: 30px;
    max-height: 30px;
    margin-left: 10px;
  }
  
  .cat-smooch {
    max-width: 30px;
    max-height: 30px;
    margin-left: 5px;
  }
  
  .item-link, .arcana-link {
    font-size: 0.95em; /* Slightly smaller on mobile */
  }
}

/* Very small devices (less than 400px) */
@media (max-width: 400px) {
  .img-build img {
    max-height: 300px;
    max-width: 300px;
  }
  
  .build-section h1, 
  .arcana-section h1 {
    font-size: 22px;
  }
  
  h2 {
    font-size: 20px;
  }
  
  p {
    font-size: 15px;
  }
  
  .tooltip, .arcana-tooltip {
    max-width: 160px;
  }
  
  .tooltip-img {
    width: 30px;
    height: 30px;
    margin-right: 12px;
  }
  
  .tooltip-name {
    font-size: 13px;
  }
  
  .tooltip-cost {
    font-size: 12px;
  }
  
  .tooltip-effect {
    font-size: 11px;
  }
}

/* Landscape orientation for mobile devices */
@media (max-height: 500px) and (orientation: landscape) {
  .img-build img {
    max-height: 250px;
    max-width: 250px;
  }
  
  .build-section h1, 
  .arcana-section h1 {
    margin-top: 10px;
  }
  
  p {
    margin-top: 10px;
    margin-bottom: 8px;
  }
  
  .tooltip, .arcana-tooltip {
    max-width: 200px;
  }
}