/*
  CBGM Newsletter Stylesheet
  =========================
  Design intent:
  - Dark, premium background with subtle gold/blue glows (AU brand feel).
  - Light, glassy cards for readable content.
  - Reusable components (cards, tags, lists, buttons) to keep HTML clean.

  File structure:
  1) CSS variables (colors, radii, shadows)
  2) Base / reset
  3) Layout helpers
  4) Global components (cards, tags, links, buttons)
  5) Page sections (topbar, hero, feature blocks, events, scholarship, photos)
  6) Gallery + carousel (for “Show more” pages)
  7) Responsive rules
*/

/* -------------------------------------------------------------------------- */
/* 1) CSS VARIABLES                                                           */
/* -------------------------------------------------------------------------- */

:root{
  /* AU palette (tweak here to rebrand the whole newsletter) */
  --au-blue: #002f55;          /* Augusta Blue */
  --au-gray: #a5acaf;          /* Augusta Grey */
  --au-athletic: #00aeef;      /* Athletic Blue */
  --au-accent-blue: #64a0c8;   /* Accent Blue */
  --au-gold: #d4af37;          /* Gold accent */
  --au-green: #44d62c;         /* Accent Green */

  /* Neutrals */
  --text: #0b1220;
  --muted: #5b6576;
  --border: rgba(20, 30, 50, 0.10);

  /* Surfaces */
  --card: rgba(255, 255, 255, 0.88);
  --card-soft: rgba(255, 255, 255, 0.70);

  /* Shadows */
  --shadow-sm: 0 6px 18px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 18px 60px rgba(0, 0, 0, 0.12);
  --shadow-xl: 0 24px 80px rgba(0, 0, 0, 0.25);

  /* Radii */
  --radius-lg: 18px;
  --radius-md: 14px;
  --radius-sm: 12px;

  /* Floating dock motion */
  --dock-motion-duration: 380ms;
  --dock-motion-duration-fast: 320ms;
  --dock-motion-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* -------------------------------------------------------------------------- */
/* 2) BASE / RESET                                                            */
/* -------------------------------------------------------------------------- */

*{ box-sizing: border-box; }

html{ scroll-behavior: smooth; }

body{
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial,
    "Apple Color Emoji", "Segoe UI Emoji";
  line-height: 1.55;
  color: var(--text);

  /* Brand background: dark base + subtle glows */
  background:
    radial-gradient(1400px 900px at 8% 12%, rgba(212, 175, 55, 0.38), rgba(212, 175, 55, 0.18) 35%, transparent 65%),
    radial-gradient(1200px 800px at 92% 18%, rgba(255, 215, 0, 0.32), rgba(255, 215, 0, 0.14) 40%, transparent 70%),
    radial-gradient(1000px 700px at 55% 110%, rgba(0, 174, 239, 0.10), transparent 65%),
    linear-gradient(180deg, #0f1114 0%, #12151b 40%, #0c0f14 100%);

  /* Keeps background “fixed” while cards scroll (nice premium feel) */
  background-attachment: fixed;
}

img{ max-width: 100%; height: auto; }

/* Make anchor jumps stop below the sticky topbar */
section[id]{ scroll-margin-top: 130px; }

/* -------------------------------------------------------------------------- */
/* 3) LAYOUT HELPERS                                                          */
/* -------------------------------------------------------------------------- */

.wrap{
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 18px;
}

.content{ padding: 8px 18px 40px; }

.grid{ display: grid; gap: 14px; }
.grid.two{ grid-template-columns: 1fr 1fr; }

.mt{ margin-top: 12px; }

.muted{ color: var(--muted); }

/* -------------------------------------------------------------------------- */
/* 4) GLOBAL COMPONENTS                                                       */
/* -------------------------------------------------------------------------- */

/* Card shell used across sections */
.card{
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 20px;
  margin: 14px 0;
}

.card-head{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.card h2{
  margin: 0;
  font-size: 20px;
  letter-spacing: -0.01em;
}

/* Small “badge” (used for section labels) */
.tag{
  font-size: 12px;
  font-weight: 800;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(0, 47, 85, 0.18);
  background: rgba(0, 47, 85, 0.06);
  color: rgba(0, 47, 85, 0.92);
  white-space: nowrap;
}

.tag-green{
  border-color: rgba(68, 214, 44, 0.35);
  background: rgba(68, 214, 44, 0.12);
  color: #0f3b10;
}

/* Primary link style used for buttons/CTA links */
.link{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: 800;
  color: var(--au-blue);
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid rgba(0, 47, 85, 0.16);
  background: rgba(255, 255, 255, 0.60);
}

.link:hover{ border-color: rgba(0, 47, 85, 0.28); }

/* Gradient “primary” button (used rarely; keeping for future CTAs) */
.button{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, var(--au-blue), rgba(0, 174, 239, 0.92));
  box-shadow: 0 14px 40px rgba(0, 47, 85, 0.18);
  transition: transform 0.15s ease, filter 0.15s ease;
}

.button:hover{ transform: translateY(-1px); filter: brightness(1.02); }

/* “Branded underline” link (faculty names, CBGM, etc.) */
.cbgm-link{
  font-weight: 800;
  color: rgb(0, 51, 89);
  text-decoration: none;
  border-bottom: 2px solid rgba(0, 51, 89, 0.30);
  padding-bottom: 1px;
}

.cbgm-link:hover{ border-bottom-color: rgba(0, 51, 89, 0.85); }

/* Smaller, less prominent share URL styling */
.share-link{ font-size: 12px; font-weight: 700; }

/* -------------------------------------------------------------------------- */
/* 5) TOPBAR                                                                  */
/* -------------------------------------------------------------------------- */

.topbar{
  position: sticky;
  top: 0;
  z-index: 40;

  /* Glassy, dark header with gold accent */
  background: linear-gradient(180deg, rgb(255, 194, 11), rgb(0, 0, 0));
  backdrop-filter: blur(10px);
  border-bottom: 5px solid rgb(255, 194, 11);
}

.topbar-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 14px;
}

.brand{
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 240px;
}

.logo{
  width: 96px;
  height: 96px;
  object-fit: contain;
}

.brand-text{ display: flex; flex-direction: column; }

.brand-org{
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: rgba(255, 255, 255, 0.92);
}

.brand-unit{
  font-size: 20px;
  color: rgba(255, 255, 255, 0.72);
}

.topbar-meta{
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
  color: rgba(255, 255, 255, 0.85);
}

.pill{
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 10px 14px;
  border-radius: 999px;

  background: linear-gradient(180deg, #0c0e12, #0a0c10);
  border: 2.5px solid rgba(212, 175, 55, 0.85);
  color: #f5f6f7;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.04),
    0 10px 26px rgba(0, 0, 0, 0.45);
}

.date{
  font-weight: 800;
  color: rgb(245, 219, 135);
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.35);
}

/* -------------------------------------------------------------------------- */
/* 6) HERO                                                                    */
/* -------------------------------------------------------------------------- */

.hero{ padding: 28px 0 18px; }

.hero-inner{
  display: grid;
  grid-template-columns: 1.6fr 0.8fr;
  gap: 16px;
  align-items: stretch;
}

.hero-card{
  background: #ececec;
  border: 3.5px solid rgba(0, 0, 0, 0.08);
  box-shadow: var(--shadow-xl);
  border-radius: var(--radius-lg);
  padding: 24px;
  position: relative;
  overflow: hidden;
}

.hero-kicker{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  letter-spacing: 0.12em;
  font-size: 22px;
  color: rgba(0, 47, 85, 0.88);
  text-transform: uppercase;
}

.hero-title{
  margin: 10px 0 6px;
  font-size: clamp(36px, 4vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.hero-subtitle{ margin: 0; color: var(--muted); max-width: 62ch; }

/* Table-of-contents “chips” */
.toc{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.chip{
  display: inline-flex;
  align-items: center;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: 13px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.chip:hover{
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
  border-color: rgba(0, 47, 85, 0.22);
}

/* Right-side hero stats */
.hero-side{ display: flex; flex-direction: column; gap: 12px; }

.stat{
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 16px;
}

.stat-label{ font-size: 12px; color: var(--muted); font-weight: 700; }
.stat-value{ font-size: 16px; font-weight: 800; margin-top: 6px; }

/* Ensure CBGM links read well on the hero’s lighter background */
.hero-card .cbgm-link,
.stat-value .cbgm-link{ color: var(--au-blue); }

/* -------------------------------------------------------------------------- */
/* 7) FEATURE BLOCKS (Spotlight / Chair’s note)                               */
/* -------------------------------------------------------------------------- */

.feature{
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.65);
}

/* Variants */
.feature.vertical{ flex-direction: column; align-items: stretch; gap: 14px; }
.feature.horizontal{ align-items: flex-start; gap: 18px; }

.spotlight-image{
  width: 100%;
  max-height: 260px;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.18);
}

/* Chair headshot uses fixed sizing on desktop */
.chair-image{
  width: 160px;
  height: 160px;
  object-fit: cover;
  border-radius: 14px;
  flex-shrink: 0;
}

.feature-text{ padding-top: 4px; }

.feature-text .muted {
  font-size: 1.05rem;   /* readable but secondary */
  line-height: 1.6;
}

.feature-title {
  font-size: 1.35rem;   /* larger, clear hierarchy */
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 6px;
}

/* Chair's Note: local refinements only */
#chairs-note{
  padding-top: 24px;
  padding-bottom: 24px;
}

#chairs-note .card-head{
  margin-bottom: 14px;
}

#chairs-note .chairs-byline{
  margin: 0 0 18px;
}

#chairs-note .feature{
  gap: 22px;
  align-items: flex-start;
  padding: 18px;
  border-radius: 20px;
  border-color: rgba(20, 30, 50, 0.07);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.07);
}

#chairs-note .chair-image{
  margin-top: 2px;
  border-radius: 16px;
  border-color: rgba(0, 0, 0, 0.08);
}

#chairs-note .feature-text{
  padding-top: 2px;
}

#chairs-note .feature-title{
  margin-bottom: 10px;
}

#chairs-note .feature-text p{
  margin: 0;
  line-height: 1.72;
}

#chairs-note .feature-text p + p{
  margin-top: 14px;
}

/* -------------------------------------------------------------------------- */
/* 8) LISTS (Events, Grants, etc.)                                            */
/* -------------------------------------------------------------------------- */

.list{ display: flex; flex-direction: column; gap: 10px; }

.list-item{
  display: grid;
  grid-template-columns: 88px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.65);
}

.when{ font-weight: 900; color: rgba(0, 47, 85, 0.92); }
.title{ font-weight: 900; }

/* Event action buttons (Details + Add to calendar) */
.event-actions{
  display: inline-flex;
  gap: 10px;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: wrap;
}

/* Make <summary> look like a .link button */
.event-details summary.link{
  cursor: pointer;
  list-style: none;
}

.event-details summary.link::-webkit-details-marker{ display: none; }

/* Details dropdown panel */
.event-details{ position: relative; }

.event-body{
  margin-top: 12px;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid rgba(0, 0, 0, 0.10);
  background: rgba(255, 255, 255, 0.90);

  /* Pop over the card nicely on desktop */
  position: absolute;
  right: 0;
  top: 42px;
  z-index: 10;
  min-width: min(520px, 80vw);
  box-shadow: 0 26px 90px rgba(0, 0, 0, 0.30);
}

.event-title{ font-weight: 700; margin-top: 6px; }
.event-meta,
.event-talk,
.event-links,
.speaker{ margin-top: 10px; }

.speaker-name{ font-weight: 800; margin-bottom: 4px; }
.event-url{ word-break: break-word; }

/* Publication DOI link */
.pub-link{
  margin-left: 6px;
  font-weight: 700;
  font-size: 13px;
  text-decoration: none;
  color: var(--au-blue);
}

.pub-link:hover{ text-decoration: underline; }

/* -------------------------------------------------------------------------- */
/* 9) SCHOLARSHIP & ACHIEVEMENTS                                              */
/* -------------------------------------------------------------------------- */

.scholarship-list{ display: flex; flex-direction: column; gap: 14px; }

.scholarship-item{
  display: flex;
  gap: 16px;
  align-items: flex-start;
  justify-content: space-between;
  padding: 16px;
  border-radius: 14px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: var(--card-soft);
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.08);
}

.scholarship-text{ flex: 1; line-height: 1.55; }

.scholarship-item.has-action{ align-items: center; }

/* Right-side action button used in scholarship + photos tiles */
.achievement-btn,
.photo-btn{
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 12px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 800;
  font-size: 13px;

  background: #0b0d10;
  color: rgba(255, 255, 255, 0.92);
  border: 2px solid rgba(212, 175, 55, 0.85);
}

.achievement-btn:hover,
.photo-btn:hover{ filter: brightness(1.06); }

/* Personal achievements “boxed” style */
.achievement-box{
  display: flex;
  align-items: center;
  padding: 16px 18px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.75);
  box-shadow: var(--shadow-sm);
}

/* Space between achievement boxes */
.achievement-box + .achievement-box{
  margin-top: 14px;
}

.achievement-text{ font-size: 14.5px; line-height: 1.55; }

/* -------------------------------------------------------------------------- */
/* 10) PHOTOS SECTION                                                         */
/* -------------------------------------------------------------------------- */

.photo-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.photo-tile{
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: var(--au-blue);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.25);
}

.photo-thumb{ height: 170px; background: rgba(255, 255, 255, 0.05); }

.photo-thumb img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.placeholder-thumb{ display: flex; align-items: center; justify-content: center; }
.placeholder-text{ color: rgba(255, 255, 255, 0.70); font-weight: 700; }

.photo-info{ padding: 14px; color: rgba(255, 255, 255, 0.92); }
.photo-title{ font-weight: 800; font-size: 16px; }
.photo-subtitle{ margin-top: 4px; color: rgba(255, 255, 255, 0.70); font-size: 13px; }

.photo-info-featured .photo-title{
  font-size: 17px;
  line-height: 1.25;
}

.photo-info-featured .photo-subtitle{
  margin-top: 5px;
  display: grid;
  gap: 2px;
}

.photo-info-featured .photo-subtitle-main{
  font-size: 13.5px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.25;
}

.photo-info-featured .photo-subtitle-byline{
  font-size: 12.5px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.25;
}

/* -------------------------------------------------------------------------- */
/* 11) GALLERY PAGES + CAROUSEL (Show more pages)                             */
/* -------------------------------------------------------------------------- */

/* Improve text contrast on dark background for gallery pages */
.gallery-page h1,
.gallery-page p,
.gallery-page .muted{ color: rgba(255, 255, 255, 0.92); }

.gallery-page .muted{ color: rgba(255, 255, 255, 0.70); }

/* Fancy carousel gallery (hero + arrows + thumbnails) */
.carousel{
  margin-top: 16px;
  display: grid;
  grid-template-columns: 56px 1fr 56px;
  gap: 14px;
  align-items: center;
}

.carousel-hero{
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.10);
  box-shadow: 0 26px 90px rgba(0, 0, 0, 0.45);
  background: rgba(255, 255, 255, 0.03);
}

.carousel-hero img{
  width: 100%;
  height: min(560px, 62vh);
  object-fit: contain;
  background: #0b0d10;
  display: block;
}

.nav{
  height: 56px;
  width: 56px;
  border-radius: 16px;
  cursor: pointer;
  border: 2px solid rgba(212, 175, 55, 0.75);
  background: rgba(10, 12, 16, 0.85);
  color: rgba(255, 255, 255, 0.92);
  font-size: 34px;
  line-height: 0;
  display: grid;
  place-items: center;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.40);
  transition: transform 0.15s ease, filter 0.15s ease;
}

.nav:hover{ transform: translateY(-1px); filter: brightness(1.06); }
.nav:active{ transform: translateY(0); }

.carousel-thumbs{
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 10px;
}

.thumb{
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.03);
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.15s ease, filter 0.15s ease, border-color 0.15s ease;
}

.thumb img{ width: 100%; height: 92px; object-fit: cover; display: block; }

.thumb:hover{ transform: translateY(-1px); filter: brightness(1.06); }

.thumb.is-active{
  border-color: rgba(212, 175, 55, 0.85);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.20);
}

.thumb:focus{ outline: 2px solid rgba(212, 175, 55, 0.85); outline-offset: 3px; }

/* ===== Committee Directory Layout ===== */

.committee-directory{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-top: 14px;
  align-items: start; 
}

.committee-card{
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 10px;
  align-items: start; /* prevents row stretching to align bottom */
  padding: 18px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.85);
  box-shadow: var(--shadow-sm);

  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.committee-card:hover{
  transform: scale(1.03);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
  z-index: 2;
}

.committee-card img{
  width: 140px;
  height: 160px;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,0.12);
}

/* Right side */
.committee-info{
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.committee-name{
  font-size: 20px;
  font-weight: 800;
  color: var(--au-blue);
}

.committee-role{
  font-weight: 600;
  color: #222;
}

/* Email */
.committee-email{
  display: inline-block;
  width: fit-content;          /* prevents stretching */
  font-weight: 700;
  text-decoration: none;
  color: var(--au-blue);
  border-bottom: 2px solid rgba(0, 51, 89, 0.35);
  padding-bottom: 2px;
}

.committee-email:hover{
  border-bottom-color: rgba(0, 51, 89, 0.85);
}

/* Quote spans full width */
.committee-quote{
  grid-column: 1 / -1;
  margin-top: 12px;
  padding-top: 12px;

  font-size: 13px;
  font-style: italic;
  color: rgba(0, 47, 85, 0.75);
  line-height: 1.4;

  border-top: 3px solid rgba(212, 175, 55, 0.7);
  padding-left: 4px;
}


/* -------------------------------------------------------------------------- */
/* 12) FOOTER                                                                 */
/* -------------------------------------------------------------------------- */

.footer{ padding: 26px 0 18px; text-align: center; }

/* -------------------------------------------------------------------------- */
/* 13) RESPONSIVE RULES                                                       */
/* -------------------------------------------------------------------------- */

@media (max-width: 900px){
  .photo-grid{ grid-template-columns: 1fr; }
  .photo-thumb{ height: 200px; }

  .carousel{ grid-template-columns: 44px 1fr 44px; gap: 10px; }
  .nav{ width: 44px; height: 44px; border-radius: 14px; font-size: 28px; }
  .carousel-hero img{ height: 44vh; }
  .carousel-thumbs{ grid-template-columns: repeat(4, 1fr); }
  .thumb img{ height: 86px; }
}

@media (max-width: 700px){
  .grid.two{ grid-template-columns: 1fr; }

  .feature.horizontal{ flex-direction: column; }
  .chair-image{ width: 100%; max-height: 240px; height: auto; }

  .scholarship-item{ flex-direction: column; align-items: flex-start; }

  /* On small screens, show the event details panel inline instead of floating */
  .event-body{
    position: static;
    min-width: auto;
    box-shadow: none;
  }
}


/* ========================================================================== */
/*  WEATHER & FEEDBACK FLOATERS (Floating, bottom-right)                      */
/* ========================================================================== */

.weather-card,
.rating-card{
  border-radius: 18px;
  padding: 16px 16px 14px;
  color: rgba(255,255,255,0.92);
  border: 2px solid rgba(212, 175, 55, 0.80);
  box-shadow: 0 26px 90px rgba(0,0,0,0.45);
}

.weather-card{
  position: relative;
  background:
    radial-gradient(120px 90px at 18% 22%, rgba(212,175,55,0.28), transparent 70%),
    radial-gradient(180px 140px at 88% 18%, rgba(0,174,239,0.18), transparent 70%),
    linear-gradient(180deg, rgba(10,12,16,0.92), rgba(10,12,16,0.72));
}

.weather-top,
.rating-top{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.weather-kicker,
.rating-kicker{
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 900;
  color: rgba(245, 219, 135, 0.95);
}

.weather-city{
  font-weight: 900;
  font-size: 16px;
  letter-spacing: -0.01em;
}

.weather-badge,
.rating-badge{
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(0,0,0,0.35);
}

.weather-badge{
  color: rgba(255,255,255,0.92);
}

.weather-main{
  display:flex;
  align-items:center;
  gap: 12px;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
  margin-bottom: 12px;
}

.weather-icon{
  width: 56px;
  height: 56px;
  display:grid;
  place-items:center;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(0,0,0,0.25);
  font-size: 30px;
}

.weather-tempValue{
  font-size: 30px;
  font-weight: 950;
  line-height: 1;
}

.weather-desc{
  margin-top: 3px;
  font-size: 13px;
  color: rgba(255,255,255,0.72);
  font-weight: 700;
}

.weather-meta{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.05);
}

.wxRow{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
  font-size: 12px;
  color: rgba(255,255,255,0.72);
}

.wxRow strong{
  color: rgba(255,255,255,0.92);
  font-weight: 900;
}

.weather-foot{
  margin-top: 12px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
}

.wxUpdated{
  font-size: 11px;
  color: rgba(255,255,255,0.65);
  font-weight: 700;
}

.wxRefresh,
.rating-send{
  cursor: pointer;
  font-weight: 900;
  font-size: 12px;
  padding: 8px 10px;
  border-radius: 12px;
  color: rgba(255,255,255,0.92);
  border: 1px solid rgba(212,175,55,0.70);
  background: rgba(0,0,0,0.35);
}

.wxRefresh:hover,
.rating-send:hover{ filter: brightness(1.06); }

/* ========================================================================== */
/*  RATING WIDGET (Floating, bottom-right)                                    */
/* ========================================================================== */

.rating-card{
  background:
    radial-gradient(120px 90px at 18% 22%, rgba(212,175,55,0.22), transparent 70%),
    radial-gradient(180px 140px at 88% 18%, rgba(0,174,239,0.14), transparent 70%),
    linear-gradient(180deg, rgba(10,12,16,0.92), rgba(10,12,16,0.72));
}

.rating-title{
  font-weight: 900;
  font-size: 16px;
  letter-spacing: -0.01em;
}

.rating-badge{
  color: rgba(255,255,255,0.70);
  visibility: hidden; /* becomes visible when saved */
}

.stars{
  display:flex;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
  margin-bottom: 8px;
}

.star{
  appearance: none;
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
  color: rgba(255,255,255,0.28); /* grey */
  transform: scale(1);
  transition: transform 140ms ease, color 140ms ease, filter 140ms ease;
}

.star.is-on{
  color: rgba(212, 175, 55, 0.98); /* gold */
  filter: drop-shadow(0 6px 10px rgba(212,175,55,0.25));
}

.star.is-hover{
  transform: scale(1.18);
}

.rating-label{
  display:block;
  font-size: 12px;
  font-weight: 800;
  color: rgba(255,255,255,0.80);
  margin: 0 2px 6px;
}

.rating-comment{
  width: 100%;
  resize: vertical;
  min-height: 70px;
  border-radius: 14px;
  padding: 10px 10px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(0,0,0,0.25);
  color: rgba(255,255,255,0.92);
  outline: none;
}

.rating-comment::placeholder{
  color: rgba(255,255,255,0.45);
}

.rating-actions{
  margin-top: 10px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
}

.rating-updated{
  font-size: 11px;
  color: rgba(255,255,255,0.65);
  font-weight: 700;
}

/* ========================================================================== */
/*  BACK TO TOP BUTTON                                                        */
/* ========================================================================== */

.back-to-top{
  position: fixed;
  left: 22px;

  /* Place it above the bottom-right rating widget.
     If you change widget size, adjust this value. */
  bottom: 360px;

  z-index: 36; /* slightly above widgets (35) */
  width: 44px;
  height: 44px;
  border-radius: 14px;

  display: grid;
  place-items: center;

  border: 1px solid rgba(212,175,55,0.70);
  background: rgba(0,0,0,0.38);
  color: rgba(255,255,255,0.92);

  box-shadow: 0 18px 60px rgba(0,0,0,0.35);
  backdrop-filter: blur(10px);

  cursor: pointer;

  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 160ms ease, transform 160ms ease, filter 160ms ease;
}

.back-to-top.is-visible{
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top:hover{
  filter: brightness(1.07);
  transform: translateY(-1px);
}

.back-to-top:active{
  transform: translateY(0);
}

/* ========================================================================== */
/*  MICRO-INTERACTIONS (subtle polish, low distraction)                        */
/* ========================================================================== */

/* Smooth transitions on common interactive elements */
.card,
.link,
.chip,
.button{
  transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease, border-color 160ms ease;
}

/* Card hover: very subtle lift */
.card:hover{
  transform: translateY(-2px);
  box-shadow: 0 18px 60px rgba(0,0,0,0.18);
}

/* Links/CTAs: subtle lift + clarity */
.link:hover{
  transform: translateY(-1px);
  filter: brightness(1.02);
}

/* Make chips feel “clickable” without being loud */
.chip:hover{
  transform: translateY(-1px);
}

/* Soft press-down interaction */
.link:active,
.button:active,
.chip:active{
  transform: translateY(0px);
}

/* Better keyboard focus (accessibility) */
.link:focus-visible,
.button:focus-visible,
.chip:focus-visible,
.back-to-top:focus-visible{
  outline: 2px solid rgba(212,175,55,0.85);
  outline-offset: 3px;
}

/* Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce){
  .card, .link, .chip, .button, .back-to-top{
    transition: none !important;
  }
  .card:hover, .link:hover, .chip:hover, .button:hover, .back-to-top:hover{
    transform: none !important;
  }
}

/* -------------------------------------------------------------------------- */
/*  Condensed floating dock override                                          */
/* -------------------------------------------------------------------------- */

.float-widget{
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 35;
  width: 300px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transform-origin: bottom right;
  will-change: transform, opacity, width;
  transition:
    width var(--dock-motion-duration) var(--dock-motion-ease),
    transform var(--dock-motion-duration) var(--dock-motion-ease),
    opacity var(--dock-motion-duration-fast) var(--dock-motion-ease);
}

.weather-float,
.rating-float{
  position: relative;
  top: auto;
  right: auto;
  bottom: auto;
  left: auto;
  width: 100%;
  display: block;
  will-change: transform, opacity, width;
  transition:
    width var(--dock-motion-duration) var(--dock-motion-ease),
    transform var(--dock-motion-duration) var(--dock-motion-ease),
    opacity var(--dock-motion-duration-fast) var(--dock-motion-ease);
}

.weather-card,
.rating-card{
  overflow: hidden;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  will-change: transform, opacity, padding, box-shadow;
  transition:
    transform var(--dock-motion-duration) var(--dock-motion-ease),
    opacity var(--dock-motion-duration-fast) var(--dock-motion-ease),
    padding var(--dock-motion-duration) var(--dock-motion-ease),
    box-shadow var(--dock-motion-duration) var(--dock-motion-ease),
    border-color var(--dock-motion-duration) var(--dock-motion-ease),
    background var(--dock-motion-duration) var(--dock-motion-ease),
    backdrop-filter var(--dock-motion-duration) var(--dock-motion-ease),
    -webkit-backdrop-filter var(--dock-motion-duration) var(--dock-motion-ease);
}

.weather-details,
.rating-body{
  overflow: hidden;
  will-change: transform, opacity, max-height;
  transition:
    opacity var(--dock-motion-duration-fast) var(--dock-motion-ease),
    transform var(--dock-motion-duration) var(--dock-motion-ease),
    max-height var(--dock-motion-duration) var(--dock-motion-ease),
    margin var(--dock-motion-duration-fast) var(--dock-motion-ease),
    padding var(--dock-motion-duration-fast) var(--dock-motion-ease),
    visibility 0s linear var(--dock-motion-duration);
}

.rating-topActions{
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.rating-compact-toggle{
  display: inline-flex;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.92);
  min-width: 104px;
  min-height: 38px;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.03em;
  line-height: 1;
  text-align: center;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
  transition:
    opacity var(--dock-motion-duration-fast) var(--dock-motion-ease),
    transform var(--dock-motion-duration-fast) var(--dock-motion-ease),
    visibility 0s linear var(--dock-motion-duration-fast),
    background-color var(--dock-motion-duration-fast) var(--dock-motion-ease),
    border-color var(--dock-motion-duration-fast) var(--dock-motion-ease);
}

.float-widget.is-condensed .rating-kicker,
.float-widget.is-condensed .rating-title,
.float-widget.is-condensed .rating-badge,
.float-widget.is-condensed .weather-kicker,
.float-widget.is-condensed .weather-badge,
.float-widget.is-condensed .weather-desc{
  transition:
    opacity var(--dock-motion-duration-fast) var(--dock-motion-ease),
    transform var(--dock-motion-duration-fast) var(--dock-motion-ease),
    max-height var(--dock-motion-duration-fast) var(--dock-motion-ease),
    margin var(--dock-motion-duration-fast) var(--dock-motion-ease),
    padding var(--dock-motion-duration-fast) var(--dock-motion-ease),
    visibility 0s linear var(--dock-motion-duration-fast);
  opacity: 0;
  transform: translateY(-6px) scale(0.98);
  max-height: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
  visibility: hidden;
  pointer-events: none;
}

.float-widget.is-condensed .weather-card,
.float-widget.is-condensed .rating-card{
  padding: 12px;
  background:
    radial-gradient(120px 90px at 18% 22%, rgba(212,175,55,0.10), transparent 72%),
    radial-gradient(180px 140px at 88% 18%, rgba(0,174,239,0.06), transparent 72%),
    linear-gradient(180deg, rgba(10,12,16,0.38), rgba(10,12,16,0.20));
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.12);
  transform: scale(0.985);
  opacity: 0.88;
  backdrop-filter: blur(9px);
  -webkit-backdrop-filter: blur(9px);
}

.float-widget.is-condensed .weather-top,
.float-widget.is-condensed .rating-top{
  margin-bottom: 0;
  align-items: center;
}

.float-widget.is-condensed .weather-main{
  margin-bottom: 0;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.02);
  border-color: rgba(255, 255, 255, 0.05);
  transform: scale(0.985);
}

.float-widget.is-condensed .weather-city{
  font-size: 14px;
}

.float-widget.is-condensed .weather-icon{
  width: 42px;
  height: 42px;
  border-radius: 14px;
  font-size: 22px;
}

.float-widget.is-condensed .weather-tempValue{
  font-size: 1.1rem;
}

.float-widget.is-condensed .weather-temp{
  flex-direction: column;
}

.float-widget.is-condensed .weather-details{
  opacity: 0;
  transform: translateY(-8px) scale(0.985);
  max-height: 0;
  margin: 0;
  padding-top: 0;
  padding-bottom: 0;
  visibility: hidden;
  pointer-events: none;
}

.float-widget.is-condensed .weather-float:hover .weather-details,
.float-widget.is-condensed .weather-float:focus-within .weather-details{
  opacity: 1;
  transform: translateY(0) scale(1);
  max-height: 280px;
  margin-top: 12px;
  padding-top: 0;
  padding-bottom: 0;
  visibility: visible;
  pointer-events: auto;
}

.float-widget.is-condensed .rating-body{
  opacity: 0;
  transform: translateY(-8px) scale(0.985);
  max-height: 0;
  margin: 0;
  padding-top: 0;
  padding-bottom: 0;
  visibility: hidden;
  pointer-events: none;
}

.float-widget.is-condensed .rating-float:hover .rating-body,
.float-widget.is-condensed .rating-float:focus-within .rating-body{
  opacity: 1;
  transform: translateY(0) scale(1);
  max-height: 480px;
  margin-top: 10px;
  padding-top: 0;
  padding-bottom: 0;
  visibility: visible;
  pointer-events: auto;
}

.float-widget.is-condensed .rating-float{
  width: 152px;
  align-self: end;
}

.float-widget.is-condensed .rating-float:hover,
.float-widget.is-condensed .rating-float:focus-within{
  width: 300px;
}

.float-widget.is-condensed .weather-float:hover .weather-card,
.float-widget.is-condensed .weather-float:focus-within .weather-card,
.float-widget.is-condensed .rating-float:hover .rating-card,
.float-widget.is-condensed .rating-float:focus-within .rating-card{
  transform: scale(1);
  opacity: 0.99;
  background:
    radial-gradient(120px 90px at 18% 22%, rgba(212,175,55,0.18), transparent 72%),
    radial-gradient(180px 140px at 88% 18%, rgba(0,174,239,0.12), transparent 72%),
    linear-gradient(180deg, rgba(10,12,16,0.84), rgba(10,12,16,0.68));
  box-shadow: 0 24px 52px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.float-widget.is-condensed .weather-float:hover .weather-main,
.float-widget.is-condensed .weather-float:focus-within .weather-main{
  transform: scale(1);
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.10);
}

.float-widget.is-condensed .weather-float:hover .weather-details,
.float-widget.is-condensed .weather-float:focus-within .weather-details,
.float-widget.is-condensed .rating-float:hover .rating-body,
.float-widget.is-condensed .rating-float:focus-within .rating-body{
  color: rgba(255,255,255,0.94);
}

.float-widget.is-condensed .rating-card{
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 66px;
}

.float-widget.is-condensed .rating-top{
  margin-bottom: 0;
  align-items: center;
  justify-content: center;
  gap: 0;
  min-height: 42px;
  width: 100%;
}

.float-widget.is-condensed .rating-top > :first-child{
  display: none;
}

.float-widget.is-condensed .rating-topActions{
  width: 100%;
  min-width: 0;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
  flex: 0 0 auto;
}

.float-widget.is-condensed .rating-compact-toggle{
  width: auto;
  min-width: 104px;
  max-width: 100%;
  padding: 10px 18px;
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.10);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  margin: 0 auto;
}

.float-widget.is-condensed .rating-float:hover .rating-compact-toggle,
.float-widget.is-condensed .rating-float:focus-within .rating-compact-toggle{
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-2px);
}

@media (max-width: 1200px){
  .float-widget{
    bottom: 12px;
    right: 12px;
    left: auto;
    width: min(300px, calc(100vw - 24px));
    max-width: calc(100vw - 24px);
    margin: 0;
  }

  .float-widget.is-condensed{
    width: min(176px, calc(100vw - 24px));
  }

  .weather-float,
  .rating-float{
    display: block;
  }
}

@media (prefers-reduced-motion: reduce){
  .float-widget,
  .weather-card,
  .weather-main,
  .weather-details,
  .rating-card,
  .rating-body,
  .rating-compact-toggle,
  .wxRefresh,
  .rating-send{
    transition: none !important;
  }
}
