/* =========
   AULOS-LIKE THEME (for your existing HTML only)
   ========= */

:root{
  /* screenshot-style accents */
  --accent: #ff6a00;
  --accent2: #ff5fa2;

  /* neutrals */
  --bg: #f4f6fb;
  --card: #ffffff;
  --text: #1f2430;
  --muted: #7e8696;
  --line: rgba(0,0,0,0.06);

  /* UI */
  --radius: 16px;
  --radius2: 12px;
  --shadow: 0 14px 40px rgba(15, 20, 35, 0.10);
  --shadow2: 0 10px 22px rgba(15, 20, 35, 0.08);
}

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

body{
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 15% 10%, rgba(255,106,0,0.10), transparent 42%),
    radial-gradient(circle at 85% 5%, rgba(255,95,162,0.08), transparent 45%),
    linear-gradient(180deg, #f7f8fc, #eef1f8);
  min-height: 100vh;
  padding: 28px 16px;
}

/* Container */
.container{
  max-width: 720px;
  margin: 0 auto;
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(0,0,0,0.05);
  border-radius: 20px;
  padding: 22px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

/* Heading */
h1{
  text-align: center;
  font-size: 22px;
  font-weight: 650;
  letter-spacing: 0.02em;
  margin-bottom: 18px;
}

/* Form blocks */
.search-container,
.date-container{
  margin-bottom: 14px;
}

/* IMPORTANT: makes #suggestions anchor under the input */
.search-container{
  position: relative;
}

label{
  display:block;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 8px;
}

/* Inputs */
input[type="text"],
input[type="date"]{
  width: 100%;
  border: 1px solid rgba(0,0,0,0.08);
  background: rgba(255,255,255,0.98);
  color: var(--text);
  padding: 12px 14px;
  border-radius: 14px;
  font-size: 15px;
  outline: none;
  transition: box-shadow .18s ease, border-color .18s ease;
}

input[type="text"]::placeholder{
  color: rgba(126,134,150,0.75);
}

input[type="text"]:focus,
input[type="date"]:focus{
  border-color: rgba(255,106,0,0.55);
  box-shadow: 0 0 0 4px rgba(255,106,0,0.14);
}

/* Button */
#getSunriseBtn{
  width: 100%;
  margin-top: 4px;
  border: 0;
  border-radius: 16px;
  padding: 13px 16px;
  font-size: 15px;
  font-weight: 650;
  color: #fff;
  cursor: pointer;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  box-shadow: 0 16px 26px rgba(255,106,0,0.20);
  transition: transform .12s ease, filter .18s ease;
}

#getSunriseBtn:hover{ filter: brightness(1.02); }
#getSunriseBtn:active{ transform: translateY(1px); }

/* Suggestions dropdown (Mapbox) */
#suggestions{
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 8px);
  background: rgba(255,255,255,0.98);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 16px;
  box-shadow: var(--shadow2);
  overflow: hidden;
  z-index: 50;
}

#suggestions div{
  padding: 12px 14px;
  font-size: 14px;
  color: var(--text);
  border-bottom: 1px solid rgba(0,0,0,0.05);
  cursor: pointer;
  transition: background .12s ease;
}

#suggestions div:last-child{ border-bottom: 0; }

#suggestions div:hover{
  background: rgba(255,106,0,0.08);
}

/* Results */
#results{
  margin-top: 18px;
}

#results h2{
  font-size: 18px;
  font-weight: 650;
  margin-bottom: 4px;
}

.date{
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 12px;
}

/* Cards block from your JS */
.cards{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
  margin: 12px 0 10px;
}

.card{
  border-radius: 18px;
  padding: 18px;
  color: #fff;
  box-shadow: var(--shadow2);
}

.card h3{
  font-size: 16px;
  font-weight: 650;
  margin-bottom: 12px;
}

.card p{
  font-size: 14px;
  margin-bottom: 6px;
  opacity: 0.95;
}

.card .rating-line{
  font-size: 15px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.2);
}

.rating-desc{
  font-size: 13px;
  opacity: 0.85;
  font-weight: 400;
  margin-left: 4px;
}

.card.sunrise{
  background: linear-gradient(135deg, #ff7a1a, #ff5fa2);
}

.card.sunset{
  background: linear-gradient(135deg, #ff5fa2, #ff7a1a);
}

/* Weather context inside cards */
.weather-context{
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,0.2);
}

.context-title{
  font-size: 13px;
  font-weight: 650;
  margin-bottom: 8px;
  opacity: 1 !important;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.weather-context p{
  font-size: 13px;
  margin-bottom: 5px;
  opacity: 0.9;
  line-height: 1.4;
}

.weather-context strong{
  font-weight: 600;
  opacity: 1;
}

/* Algorithm info section */
.algorithm-info{
  margin-top: 16px;
  padding: 14px 16px;
  background: rgba(255,106,0,0.08);
  border-radius: 14px;
  border: 1px solid rgba(255,106,0,0.15);
}

.algorithm-info h4{
  font-size: 13px;
  font-weight: 650;
  margin-bottom: 6px;
  color: var(--text);
}

.algorithm-info p{
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
  margin: 0;
}

/* Ad Containers */
.ad-container{
  max-width: 970px;
  margin: 0 auto;
  text-align: center;
  padding: 10px 0;
  transition: all 0.3s ease-in-out;
}

.ad-top{
  margin-bottom: 15px;
}

.ad-bottom{
  margin-top: 20px;
  margin-bottom: 15px;
}

/* Mobile responsive ads - show smaller ad on mobile */
@media (max-width: 768px) {
  .ad-container ins.adsbygoogle {
    width: 320px !important;
    height: 50px !important;
  }
}

/* Footer */
.footer{
  max-width: 720px;
  margin: 20px auto 0;
  padding: 20px 16px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  border-top: 1px solid var(--line);
}

/* Mobile */
@media (max-width: 520px){
  body{ padding: 18px 12px; }
  .container{ padding: 18px; border-radius: 18px; }
  
  .cards{
    grid-template-columns: 1fr;
  }
  
  .card{
    padding: 16px;
  }
  
  .weather-context p{
    font-size: 12.5px;
  }
  
  .ad-container{
    padding: 12px 0;
  }
}