/* details.css */
/* GLOBAL */

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}

body {
  font-family: inter, sans-serif, poppins;
  font-size: 1rem;
  font-weight: 700;
  background-color: #800000; /* Fallback cosmic red */
  background-image: url("../images/detailspage.fe205bb57698.png");
  background-size: cover;
  background-position: center;
  background-attachment: fixed; /* Keep it on for desktops and laptops */
  color: white;
  margin: 0;
  padding: 6px;
  /* Fallback + Modern mobile height fix */
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
}

/* ==========================================================================
   MOBILE-ONLY BACKGROUND FIX (Targets screens smaller than a tablet)
   ========================================================================== */

@media (max-width: 767.98px) {
  body {
    /* 1. Turns off the buggy fixed behavior on mobile phones */
    background-attachment: scroll !important;

    /* 2. Forces the background to span the body size */
    background-size: cover;
    background-repeat: no-repeat;
  }
}


*, *::before, *::after {
  box-sizing: border-box !important;
}

.btn {
  text-decoration:none;
}

/* Header Styling */
.adastra {
  grid-area: adastra;
  color: black;
  text-align: center;
  text-shadow: 1px 1px 2px white, 0 0 25px lightblue, 0 0 5px lightpink;
  font-family: "arial black", "times new roman", sans-serif;
  font-weight: 900;
}

/*  Desktop Base Layout */
.grid-container {
  display: grid;
  grid-template-columns: 0.8fr 1fr 1fr 0.8fr;
  gap: 20px;
  grid-template-areas:
    'adastra adastra adastra adastra'
    'left details details right'
    'left footer footer right';
}
/* Must have this if I want to re-order */
.adastra { grid-area: adastra; }
.left    { grid-area: left; }
.details { grid-area: details; }
.right   { grid-area: right; }
.footer  { grid-area: footer; }


/*  Responsive Mobile Layout */
@media (max-width: 992px) {
  .grid-container {
    /* Changes columns to a single full-width track */
    grid-template-columns: 1fr;
    gap: 20px;
    grid-template-areas:
      'adastra'
      'details'
      'footer'
      'left'
      'right';
  }
  .m-notation,
  .luminosity {
    width: 100%;
    max-width: 70%; /* adjust to taste */
    margin: 0 auto;
    text-align: left;
  }
  .footer {
    padding: 0 15px;
    box-sizing: border-box;
  }

  /* Force all child items to reset to a single column width */
  .grid-container > * {
    grid-column: 1 / -1 !important;
  }
  /* Center the entire list block */
  .details-list ul {
    margin-left: auto;
    margin-right: auto;
    width: fit-content;   /* <-- THIS is the missing piece, my fight with tablet is over */
  }

  /* Prevent list items from stretching full width */
  .detail-row {
    justify-content: flex-start;
    text-align: left;
  }
}


/* Left column styling */
.left {
  grid-area: left;
  background-color: rgba(0, 0, 0, 0.7);
  border-radius: 20px;
  color: #f2f7f3;
  border: 2px solid darkred;
  outline: 1px solid darkorange;
  padding: 10px;
  position: relative;
  font-family: "times new roman", arial;
  font-weight: 700;
  height: max-content;

}

.left h4, .right p, #not1, #not3, .luminosity {
  color: #f6770c;
}

.left p, #not2, #not4, .lum {
  color: rgb(255, 212, 59);
}


/* Star Links Dropdown container */

.dropdown {
  position: relative;
  z-index: 10;
  margin-bottom: 7px;
}

.dropbtn {
  display: inline-block;
  text-align: center;
  padding: 10px 20px;
  width: 200px;
  cursor: pointer;
  font-size: 1rem;
  color: #f2f7f3;
  transition: all 0.3s ease;
  border-radius: 12px;
  background-color: rgba(90,0,0,0.6);
  border: 1px solid white;

}

.dropbtn:hover {
  box-shadow: 0 5px grey;
  transform: translateY(4px);
  background-color:rgba(0,0,0,0.6);
  color:white;
  border:1px solid grey;
  outline:none;
}

.dropbtn:active {
  box-shadow: 0 2px #666;
  transform: scale(0.94);
}

.dropdown-content {
  position: absolute;
  top: 100%;
  margin-top: 12px;
  display: none;
  background-color: #4d0000;
  background: url("/static/images/heic1608a.60854ce09ce9.jpg") center fixed;
  border: 1px dotted white;
  border-radius: 12px;
  min-width: 200px;
  box-shadow: 0px 8px 16px rgba(0,0,0,0.2);
}

.dropdown-content a {
  color: white;
  padding: 12px 20px;
  text-decoration: none;
  display: block;
}

.dropdown-content a:hover {
  background-color: rgba(0,0,0,0.6);
  color: white;
  border-radius: 12px;
}

  /* This bridges the 12px gap so the menu stays open */
.dropdown-content::before {
  content: "";
  position: absolute;
  top: -12px; /* Must match the margin-top value */
  left: 0;
  width: 100%;
  height: 12px; /* Must match the margin-top value */
  background: transparent;
}

.dropdown:hover .dropdown-content {
  display: block;
}

.dropdown:hover .dropbtn {
  background-color: rgba(0,0,0,0.6);
  border:1px solid grey;
  outline:none;
}

/* Middle Details column */
.details {
  grid-area: details;
  font-variant: small-caps;
  background-color: rgba(0, 0, 0, 0.8);
  border-radius: 20px;
  color: white;
  text-align: center;
  animation: fadeIn 1s ease-in;
  border: 2px solid darkred;
  outline: 1px solid darkorange;
  padding: 8px 12px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  height: max-content;

}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.star-name {
  font-size: 2.5rem;
  font-weight: bold;
  background: linear-gradient(
    to right,
    #ffffff,  /* white */
    #ffcc00,  /* yellow */
    #ff4500,  /* orange */
    #ff0000,  /* red */
    #008000,  /* green */
    #00aaff,  /* blue */
    #4b0082  /* indigo */
  );
  background-size: 400% 400%; /* allows movement */
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: starColors 8s ease infinite;
}

/* Animate gradient shifting */
@keyframes starColors {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* List wrapper for (Left, Details, Right) */
.details-list {
  margin: 0 auto;
  max-width: 520px;
  text-align: left;
}

/* Each list item/line (Left, Details, Right) */
.detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  margin: 0.5rem 0;
  min-width: 0; /* critical */
  flex-wrap: wrap;
}

.details i {
  text-shadow:
    -.5px -.5px 0 black,
     .5px -.5px 0 black,
    -.5px  .5px 0 black,
     .5px  .5px 0 black;
  color:orange;
}

/* Text Effects  */
.details p span {
  color: #FFFFE0;
  transition: transform 0.2s ease, color 0.2s ease;
}

.details p span:hover {
  transform: scale(1.1);
  color: lightblue;
  animation:glowPulse 3s ease-in-out infinite alternate;
}

@keyframes glowPulse {
  from {
    text-shadow: -1px -1px 30px #00ffff, 1px -1px 40px #ff00ff;
  }
  to {
    text-shadow: -1px  1px 30px #ff00ff, 1px  1px 40px #66ffcc;
  }
}


/* Temperature Colors */
.temperature-value {
  font-weight: bold;
  transition: color 0.5s ease;
}

.temperature-value.hot-extreme { color: #ff4500; }
.temperature-value.hot         { color: #ff8c00; }
.temperature-value.medium      { color: #ffd700; }
.temperature-value.cool        { color: #00bfff; }
.temperature-value.cold        { color: #1e90ff; }


/* Site Search Bar */
.searchform, .dropdown {
  display: flex;
  justify-content: center;
  margin-top: 1.5rem;
}

.search-form {
  max-width: 500px;
  width: 100%;
  margin-bottom:10px;
}

.search-input-wrapper {
  position: relative;
}

.search-input-wrapper input[type="search"] {
  width: 100%;
  padding: 10px 12px 10px 42px; /* Extra left padding for the icon icon */
  font-size: 16px;
  color: #333;
  background-color: #fff;
  border: 1px solid black; /* Matches standard Bootstrap border color */
  border-radius: 0.375rem 0 0 0.375rem; /* Matches Bootstrap border radius */
  outline: none;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.search-input-wrapper input[type="search"]:focus {
  border-color: #86b7fe; /* Standard Bootstrap focus highlight */
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: #6c757d; /* Bootstrap secondary text gray color */
  pointer-events: none;
  z-index: 4; /* Keeps icon layered over background styles */
}

.search-button {
  border-radius: 0 0.375rem 0.375rem 0 !important;
  display: inline-block;
  background-color:rgba(90,0,0,0.6);
  border: 1px solid white;
  color: white;
  text-align: center;
  padding: 10px 20px;
  width: 150px;
  cursor: pointer;
  font-family:roboto;
}

.search-button:hover {
  background-color:rgba(0,0,0,0.6);
  color:white;
}

/* Right Column styling */
.right {
  grid-area: right;
  background-color: rgba(0, 0, 0, 0.7);
  font-family: "times new roman", arial;
  font-weight: 700;
  border-radius: 20px;
  color:#f2f7f3;
  border:2px solid darkred;
  outline:1px solid darkorange;
  padding:10px;
  height: max-content;
}

#lightbulb, .right h4 {
  color: rgb(255, 212, 59);
  text-shadow: 1px 1px 2px black, 0 0 25px lightblue, 0 0 5px lightyellow;
}

  /* Div for photo gallery button */
.photogallery-button-div {
  display:flex;
  justify-content:center;
  align-items:center;
  margin-bottom:10px;
}
  /* Button */
.photogallery-button {
  display: inline-block;
  border-radius: 12px;
  background-color:rgba(90,0,0,0.6);
  border: 1px solid white;
  color: white;
  text-align: center;
  padding: 10px 20px;
  width: 200px;
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.3s ease;
  margin-bottom:20px;

}

.photogallery-button:active {
  box-shadow: 0 5px #666;
  transform: translateY(4px);
}

.photogallery-button span {
  display: inline-block;
  position: relative;
  transition: 0.5s;
}

.photogallery-button span:after {
  content: '\00bb';
  position: absolute;
  opacity: 0;
  right: -20px;
  transition: 0.5s;
}

.photogallery-button:hover span {
  padding-right: 25px;
}

.photogallery-button:hover span:after {
  opacity: 1;
  right: 0;
}

.photogallery-button:hover {
  box-shadow: 0 5px grey;
  transform: translateY(4px);
  background-color:rgba(0,0,0,0.6);
  color:white;
}

/* Footer Styles */

.footer .mt-4 {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}


.footer {
  grid-area: footer;
  background-color: rgba(0, 0, 0, 0.7);
  padding: 8px 12px;
  text-align: center;
  border-radius: 20px;
  border: 2px solid darkred;
  outline: 1px solid darkorange;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  height: max-content;

}

.footer .btn {
  display: inline-block;
  margin: 10px 0; /* ensures button layout when screen size changes */
  text-align: center;
  padding: 10px;
  width: 100%;
  max-width: 280px;
  cursor: pointer;
  font-size: 1rem;
  color: #f2f7f3;
  transition: all 0.3s ease;
  border-radius: 12px;
  background-color: rgba(90,0,0,0.6);
  border: 1px solid white;
  box-sizing: border-box;
}

.footer .btn:hover {
  box-shadow: 0 5px grey;
  transform: translateY(4px);
  background-color:rgba(0,0,0,0.6);
  color:white;
  border:1px solid grey;
  outline:none;
}

.footer .btn:active {
  box-shadow: 0 5px #666;
  transform: translateY(4px);
}

.footer .btn span {
  display: inline-block;
  position: relative;
  transition: 0.5s;
}

.footer .btn:hover span {
  padding-right: 25px;
}

.footer .btn span:after {
  content: '\00ab';
  position: absolute;
  opacity: 0;
  right: -20px;
  transition: 0.5s;
}

.footer .btn:after {
  content: '\00ab';
  position: absolute;
  opacity: 0;
  right: -20px;
  transition: 0.5s;
}

.footer .btn:hover span:after {
  opacity: 1;
  right: 0;
}

@media (max-width: 480px) {
  .footer .btn.me-2 {
    margin-right: 0 !important;
  }
}


/* Images in right, left & footer areas, text in () */
.hgn {
  font-size: 11px;
}

.image-leftside, .image-rightside, .image-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  overflow: hidden;
}

.image-footer {
  overflow: visible;
}
/*
.image-leftside, .image-rightside {
  margin-top: clamp(40px, 8vw, 80px);
}
*/
.image-rightside {
  position: relative;
  z-index: 1;
}

.image-leftside a, .image-rightside a, .image-footer a {
  text-decoration: none;
  color: darkorange;
  text-align: center;
}


.img1 {
  border-radius:12px;
  box-shadow:2px 2px 5px rgba(255,255,255,0.8);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  transform: scale(1);
  position: relative;
  width: 100%;
  height: auto;
}

.img1:hover {
  transform: scale(1.15); /* Makes the photo 15% bigger */
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3); /* Adds a floating shadow */
  z-index: 2; /* Brings it above other elements */
}

/* Container rules */
.image-footer {
  width: 100%;
  max-width: 450px; /* This locks the image to its original 450px size on big screens */
  margin: 20px auto 0 auto; /* Centers the container block */
}

/* Fluid image rules targeting ONLY the footer */
.image-footer img1 {
  width: 100%;        /* Forces image to scale down fluidly with its container */
  height: auto;       /* Maintains perfect aspect ratio without squishing */
  display: block;


}



