/* ==========================================================================
   GREENWOOD GOLF CLUB — Green Fee Page Styles  (greenfee.html)
   ========================================================================== */


/* --------------------------------------------------------------------------
   PAGE HEADER — animated gradient variant
   -------------------------------------------------------------------------- */

.page-hd-bg--greenfee {
  /* Background image set by imgloader.js */
  background-color : #040a05;  /* fallback while loading */
}

@keyframes hShiftGf {
  0%   { filter: hue-rotate(0deg); }
  100% { filter: hue-rotate(8deg) brightness(1.05); }
}

.page-hd-orb {
  position        : absolute;
  width           : 400px;
  height          : 400px;
  border-radius   : 50%;
  background      : radial-gradient(circle, rgba(35, 90, 48, 0.30), transparent 70%);
  filter          : blur(70px);
  top             : 50%;
  left            : 10%;
  transform       : translateY(-50%);
  pointer-events  : none;
}

.page-hd-fade {
  position  : absolute;
  inset     : 0;
  background: linear-gradient(to bottom, rgba(8, 12, 9, 0.30) 0%, rgba(8, 12, 9, 0.80) 100%);
}


/* --------------------------------------------------------------------------
   MAIN WRAPPER
   -------------------------------------------------------------------------- */

.main {
  max-width: 1100px;
  margin   : 0 auto;
  padding  : 5rem 2rem 7rem;
}


/* --------------------------------------------------------------------------
   INFO STRIP
   -------------------------------------------------------------------------- */

.info-strip {
  display              : grid;
  grid-template-columns: repeat(3, 1fr);
  gap                  : 1.5px;
  background           : rgba(184, 149, 58, 0.08);
  border               : 1px solid rgba(184, 149, 58, 0.08);
  margin-bottom        : 4rem;
}

.info-card {
  background: var(--pine);
  padding   : 2rem 2rem 2.2rem;
  display   : flex;
  gap       : 1.2rem;
  align-items: flex-start;
  transition: background 0.3s;
}

.info-card:hover {
  background: rgba(28, 61, 36, 0.85);
}

.info-icon {
  width           : 42px;
  height          : 42px;
  border          : 1px solid rgba(184, 149, 58, 0.28);
  display         : flex;
  align-items     : center;
  justify-content : center;
  color           : var(--gold);
  font-size       : 0.95rem;
  flex-shrink     : 0;
}

.info-card h4 {
  font-size     : 0.62rem;
  letter-spacing: 0.28em;
  font-weight   : 600;
  color         : var(--gilt);
  margin-bottom : 0.5rem;
}

.info-card p {
  font-size  : 0.78rem;
  color      : rgba(240, 233, 214, 0.50);
  line-height: 1.7;
}


/* --------------------------------------------------------------------------
   UPLOAD PANEL
   -------------------------------------------------------------------------- */

.panel {
  background   : rgba(255, 255, 255, 0.018);
  border       : 1px solid rgba(184, 149, 58, 0.18);
  padding      : 2.8rem;
  margin-bottom: 3rem;
  position     : relative;
  overflow     : hidden;
}

.panel::before {
  content   : '';
  position  : absolute;
  top       : 0;
  left      : 0;
  width     : 3px;
  height    : 100%;
  background: linear-gradient(to bottom, var(--gold), transparent);
}

.panel-hd {
  display         : flex;
  align-items     : center;
  justify-content : space-between;
  flex-wrap       : wrap;
  gap             : 1.2rem;
  margin-bottom   : 2.5rem;
}

.panel-hd-title {
  font-family: 'Playfair Display', serif;
  font-size  : 1.7rem;
  font-weight: 700;
  color      : var(--linen);
}

.panel-hd-title em {
  font-style: italic;
  color     : var(--gilt);
}


/* --------------------------------------------------------------------------
   UPLOAD BUTTON
   -------------------------------------------------------------------------- */

.up-btn {
  position       : relative;
  display        : inline-flex;
  align-items    : center;
  gap            : 10px;
  font-family    : 'Josefin Sans', sans-serif;
  font-size      : 0.68rem;
  font-weight    : 600;
  letter-spacing : 0.20em;
  padding        : 14px 32px;
  background     : var(--gold);
  color          : var(--ink);
  border         : none;
  cursor         : pointer;
  clip-path      : polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
  transition     : background 0.3s, transform 0.3s;
  overflow       : hidden;
}

.up-btn::before {
  content    : '';
  position   : absolute;
  top        : 0;
  left       : -120%;
  width      : 100%;
  height     : 100%;
  background : linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition : left 0.5s;
}

.up-btn:hover {
  background: var(--gilt);
  transform : translateY(-2px);
}

.up-btn:hover::before {
  left: 120%;
}

.up-btn input {
  position: absolute;
  inset   : 0;
  opacity : 0;
  cursor  : pointer;
  width   : 100%;
  height  : 100%;
}


/* --------------------------------------------------------------------------
   DROP ZONE
   -------------------------------------------------------------------------- */

.drop {
  border    : 2px dashed rgba(184, 149, 58, 0.22);
  padding   : 3.5rem 2rem;
  text-align: center;
  transition: all 0.3s;
  position  : relative;
  cursor    : pointer;
}

.drop.over {
  border-color: var(--gilt);
  background  : rgba(184, 149, 58, 0.04);
}

.drop-icon {
  font-size    : 2.8rem;
  color        : rgba(184, 149, 58, 0.25);
  margin-bottom: 1.2rem;
  transition   : color 0.3s;
}

.drop.over .drop-icon {
  color: rgba(184, 149, 58, 0.55);
}

.drop h3 {
  font-family  : 'Playfair Display', serif;
  font-size    : 1.25rem;
  font-weight  : 400;
  color        : rgba(240, 233, 214, 0.65);
  margin-bottom: 0.5rem;
}

.drop p {
  font-size     : 0.72rem;
  color         : rgba(240, 233, 214, 0.35);
  letter-spacing: 0.08em;
}

.drop-hint {
  margin-top    : 1.5rem;
  display       : inline-flex;
  align-items   : center;
  gap           : 8px;
  border        : 1px solid rgba(184, 149, 58, 0.25);
  padding       : 10px 22px;
  font-size     : 0.68rem;
  letter-spacing: 0.18em;
  color         : rgba(240, 233, 214, 0.50);
  transition    : all 0.3s;
  cursor        : pointer;
  position      : relative;
}

.drop-hint:hover {
  border-color: var(--gilt);
  color       : var(--gilt);
}

.drop-hint input,
.drop-input {
  position: absolute;
  inset   : 0;
  opacity : 0;
  cursor  : pointer;
}


/* --------------------------------------------------------------------------
   PROGRESS BAR
   -------------------------------------------------------------------------- */

.prog {
  margin-top: 1.2rem;
  display   : none;
}

.prog-bar {
  height    : 2px;
  background: rgba(184, 149, 58, 0.10);
  overflow  : hidden;
}

.prog-fill {
  height    : 100%;
  background: var(--gold);
  width     : 0%;
  transition: width 0.35s;
}

.prog-txt {
  font-size     : 0.68rem;
  color         : rgba(240, 233, 214, 0.40);
  margin-top    : 0.5rem;
  letter-spacing: 0.08em;
}


/* --------------------------------------------------------------------------
   GALLERY
   -------------------------------------------------------------------------- */

.gal-hd {
  display         : flex;
  align-items     : center;
  justify-content : space-between;
  margin-bottom   : 1.5rem;
  padding-bottom  : 1rem;
  border-bottom   : 1px solid rgba(184, 149, 58, 0.10);
}

.gal-hd-left {
  display    : flex;
  align-items: center;
  gap        : 0.8rem;
}

.gal-hd-left::before {
  content   : '';
  width     : 18px;
  height    : 1px;
  background: var(--gold);
}

.gal-hd-label {
  font-size     : 0.62rem;
  letter-spacing: 0.30em;
  font-weight   : 600;
  color         : var(--gilt);
}

.gal-count {
  font-size     : 0.70rem;
  color         : rgba(240, 233, 214, 0.30);
  letter-spacing: 0.10em;
}

/* Clear-all button */
.clear-btn {
  display       : none;
  align-items   : center;
  gap           : 8px;
  background    : transparent;
  border        : 1px solid rgba(192, 57, 43, 0.30);
  color         : rgba(192, 57, 43, 0.65);
  font-family   : 'Josefin Sans', sans-serif;
  font-size     : 0.65rem;
  letter-spacing: 0.18em;
  padding       : 8px 18px;
  cursor        : pointer;
  transition    : all 0.3s;
}

.clear-btn:hover {
  border-color: var(--red);
  color       : var(--red);
}

.clear-btn.show {
  display: inline-flex;
}

/* Gallery grid */
.gal-grid {
  display              : grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap                  : 1.5px;
  background           : rgba(184, 149, 58, 0.06);
  border               : 1px solid rgba(184, 149, 58, 0.06);
}

.gal-item {
  position     : relative;
  overflow     : hidden;
  aspect-ratio : 4 / 3;
  background   : var(--pine);
  cursor       : pointer;
  animation    : galIn 0.45s ease both;
}

@keyframes galIn {
  from { opacity: 0; transform: scale(0.96); }
  to   { opacity: 1; transform: scale(1); }
}

.gal-img {
  width     : 100%;
  height    : 100%;
  object-fit: cover;
  transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
}

.gal-item:hover .gal-img {
  transform: scale(1.06);
}

.gal-overlay {
  position  : absolute;
  inset     : 0;
  background: linear-gradient(to top, rgba(6, 10, 7, 0.95) 0%, rgba(6, 10, 7, 0.10) 55%, transparent 100%);
  opacity   : 0;
  transition: opacity 0.35s;
}

.gal-item:hover .gal-overlay {
  opacity: 1;
}

.gal-meta {
  position  : absolute;
  bottom    : 0;
  left      : 0;
  right     : 0;
  padding   : 1.5rem 1.2rem;
  transform : translateY(8px);
  transition: transform 0.35s;
}

.gal-item:hover .gal-meta {
  transform: translateY(0);
}

.gal-name {
  font-size     : 0.72rem;
  color         : rgba(240, 233, 214, 0.80);
  margin-bottom : 0.75rem;
  white-space   : nowrap;
  overflow      : hidden;
  text-overflow : ellipsis;
  letter-spacing: 0.04em;
}

.gal-actions {
  display: flex;
  gap    : 0.45rem;
}

.gal-btn {
  width           : 32px;
  height          : 32px;
  border          : 1px solid rgba(255, 255, 255, 0.20);
  display         : flex;
  align-items     : center;
  justify-content : center;
  color           : rgba(240, 233, 214, 0.70);
  cursor          : pointer;
  background      : rgba(0, 0, 0, 0.25);
  transition      : all 0.25s;
  font-size       : 0.75rem;
}

.gal-btn:hover {
  border-color: var(--gilt);
  color       : var(--gilt);
}

.gal-btn.del:hover {
  border-color: var(--red);
  color       : var(--red);
}


/* --------------------------------------------------------------------------
   NEW BADGE  (most-recently uploaded image)
   -------------------------------------------------------------------------- */

.new-badge {
  position  : absolute;
  top       : 0.85rem;
  left      : 0.85rem;
  z-index   : 10;
  background: var(--gilt);
  color     : var(--ink);
  font-size : 0.55rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  padding   : 5px 12px;
  clip-path : polygon(5px 0, 100% 0, calc(100% - 5px) 100%, 0 100%);
  animation : badgePop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes badgePop {
  from { opacity: 0; transform: scale(0.6) translateY(-6px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

/* Glowing border on the newest item */
.is-new {
  box-shadow: 0 0 0 2px var(--gilt), 0 0 18px rgba(212, 175, 90, 0.35);
  animation : galIn 0.45s ease both, glowPulse 1.8s 0.45s ease-in-out 3;
}

@keyframes glowPulse {
  0%, 100% { box-shadow: 0 0 0 2px var(--gilt), 0 0 18px rgba(212, 175, 90, 0.35); }
  50%       { box-shadow: 0 0 0 2px var(--gilt), 0 0 32px rgba(212, 175, 90, 0.60); }
}


/* --------------------------------------------------------------------------
   EMPTY STATE
   -------------------------------------------------------------------------- */

.empty {
  text-align : center;
  padding    : 5rem 2rem;
  grid-column: 1 / -1;
}

.empty-icon {
  font-size    : 3rem;
  color        : rgba(184, 149, 58, 0.15);
  margin-bottom: 1.2rem;
}

.empty p {
  font-size     : 0.78rem;
  color         : rgba(240, 233, 214, 0.28);
  letter-spacing: 0.10em;
}


/* --------------------------------------------------------------------------
   RESPONSIVE — GREEN FEE
   -------------------------------------------------------------------------- */

@media (max-width: 900px) {
  .info-strip { grid-template-columns: 1fr; }
  .gal-grid   { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .gal-grid { grid-template-columns: 1fr; }
  .panel    { padding: 1.5rem; }
}
