/**
 * GOM Trading - Content pages: gold animations, hero, blocks
 * Professional gold-themed feel
 */

/* Page hero - intro section with gold accent */
.page-hero {
  position: relative;
  padding: 3rem 1.5rem 2.5rem;
  text-align: center;
  overflow: hidden;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.page-hero.anim-ready {
  opacity: 1;
  transform: translateY(0);
}

.page-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold), var(--gold-light), transparent);
  border-radius: 2px;
  animation: gold-shine 3s ease-in-out infinite;
}

.page-hero__title {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  margin: 0 0 0.75rem;
  line-height: 1.2;
}

.page-hero__sub {
  max-width: 640px;
  margin: 0 auto;
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.6;
}

/* Gold shimmer animation */
@keyframes gold-shine {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 1; box-shadow: 0 0 12px rgba(212, 175, 55, 0.5); }
}

@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes gold-glow {
  0%, 100% { box-shadow: 0 0 0 rgba(212, 175, 55, 0); }
  50% { box-shadow: 0 0 24px rgba(212, 175, 55, 0.2); }
}

/* Content blocks with staggered fade-in */
.content-block {
  animation: fade-in-up 0.6s ease-out forwards;
}

.content-block--delay-1 { animation-delay: 0.1s; }
.content-block--delay-2 { animation-delay: 0.2s; }
.content-block--delay-3 { animation-delay: 0.3s; }
.content-block--delay-4 { animation-delay: 0.4s; }

/* Card with gold border hover */
.content-card {
  background: var(--charcoal);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.content-card:hover {
  border-color: rgba(212, 175, 55, 0.5);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

/* Gold accent line */
.gold-accent {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  margin: 1rem 0;
  border-radius: 1px;
}

/* Image frame - gold border and subtle animation */
.page-img-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
}

.page-img-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.08) 0%, transparent 50%);
  pointer-events: none;
}

.page-img-wrap img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s ease;
}

.page-img-wrap:hover img {
  transform: scale(1.03);
}

/* Decorative gold icon/bar */
.page-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  min-height: 200px;
  background: linear-gradient(180deg, rgba(212, 175, 55, 0.06) 0%, transparent 100%);
  border-radius: var(--radius-lg);
  border: 1px dashed rgba(212, 175, 55, 0.2);
}

.page-visual__icon {
  width: 80px;
  height: 80px;
  opacity: 0.4;
  animation: gold-glow 4s ease-in-out infinite;
}

/* Section heading with gold */
.section-head {
  font-size: 1.25rem;
  color: var(--gold);
  margin: 0 0 0.5rem;
  font-weight: 600;
}

/* ========== Auth pages redesign - dark theme, gold accents, form left / image right ========== */
.auth-page {
  min-height: calc(100vh - 60px);
  background: var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem;
}

.auth-page__wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  max-width: 1000px;
  width: 100%;
}

.auth-page__form {
  display: flex;
  justify-content: center;
  align-items: center;
}

.auth-card {
  width: 100%;
  max-width: 420px;
  background: var(--charcoal);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: var(--radius-lg);
  padding: 2.25rem 2rem;
  position: relative;
  animation: fade-in-up 0.5s ease-out;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.auth-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold-light), var(--gold), var(--gold-dark));
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.auth-card__title {
  font-size: 1.75rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
  text-align: center;
  color: var(--gold);
}

.auth-card__sub {
  color: var(--text-muted);
  font-size: 0.95rem;
  text-align: center;
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.auth-form .form-group {
  margin-bottom: 1.25rem;
}

.auth-form label {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
}

.auth-form input {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  color: var(--text);
  background: var(--black);
  border: 1px solid var(--gold);
  border-radius: var(--radius);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.auth-form input::placeholder {
  color: var(--text-muted);
  opacity: 0.8;
}

.auth-form input:focus {
  outline: none;
  border-color: var(--gold-light);
  box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.2);
}

.auth-btn {
  width: 100%;
  padding: 0.85rem 1.5rem;
  margin-top: 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(90deg, var(--gold-light) 0%, var(--gold) 50%, var(--gold-dark) 100%);
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.15s ease;
}

.auth-btn:hover {
  opacity: 0.95;
  transform: translateY(-1px);
}

.auth-card__footer {
  text-align: center;
  margin: 1.25rem 0 0;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.auth-card__footer a {
  color: var(--gold);
  font-weight: 500;
}

.auth-card__footer a:hover {
  color: var(--gold-light);
}

.auth-page__visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.auth-visual__img {
  width: 100%;
  max-width: 420px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(212, 175, 55, 0.25);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.auth-visual__img img {
  width: 100%;
  height: auto;
  display: block;
  vertical-align: top;
}

@media (max-width: 768px) {
  .auth-page__wrap {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .auth-page__visual {
    order: -1;
    max-width: 320px;
    margin: 0 auto;
  }
  .auth-card {
    max-width: 100%;
  }
}

/* List with gold bullets */
.content-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.content-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.75rem;
  line-height: 1.6;
}

.content-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5rem;
  width: 6px;
  height: 6px;
  background: var(--gold);
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(212, 175, 55, 0.5);
}

/* Grid for gallery / features */
.page-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}

.page-grid__item {
  animation: fade-in-up 0.5s ease-out forwards;
}

.page-grid__item:nth-child(1) { animation-delay: 0.1s; }
.page-grid__item:nth-child(2) { animation-delay: 0.2s; }
.page-grid__item:nth-child(3) { animation-delay: 0.3s; }
.page-grid__item:nth-child(4) { animation-delay: 0.4s; }
.page-grid__item:nth-child(5) { animation-delay: 0.5s; }
.page-grid__item:nth-child(6) { animation-delay: 0.6s; }

/* Initial state for staggered reveal */
.content-block,
.page-grid__item {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.content-block.anim-ready,
.page-grid__item.anim-ready {
  opacity: 1;
  transform: translateY(0);
}

/* ========== Extra animations for all public pages ========== */

/* Subtle float for hero/decorative images */
@keyframes img-float {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-8px) scale(1.02); }
}

/* Shimmer sweep over images */
@keyframes shimmer-sweep {
  0% { transform: translateX(-100%); opacity: 0; }
  50% { opacity: 0.3; }
  100% { transform: translateX(100%); opacity: 0; }
}

/* Slide in from sides */
@keyframes slide-in-left {
  from { opacity: 0; transform: translateX(-40px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes slide-in-right {
  from { opacity: 0; transform: translateX(40px); }
  to { opacity: 1; transform: translateX(0); }
}

/* Scale in */
@keyframes scale-in {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}

/* Soft pulse for CTAs / icons */
@keyframes pulse-soft {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.85; transform: scale(1.03); }
}

/* Animated image wrapper - float on hover */
.page-img-wrap.anim-float:hover img {
  animation: img-float 3s ease-in-out infinite;
}

/* Shimmer overlay on image hover */
.page-img-wrap.has-shimmer {
  position: relative;
  overflow: hidden;
}

.page-img-wrap.has-shimmer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.12), transparent);
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.page-img-wrap.has-shimmer:hover::before {
  opacity: 1;
  animation: shimmer-sweep 1.2s ease-in-out forwards;
}

/* Reveal from left/right - use with anim-ready */
.reveal-left { animation: slide-in-left 0.6s ease-out forwards; }
.reveal-right { animation: slide-in-right 0.6s ease-out forwards; }
.reveal-scale { animation: scale-in 0.5s ease-out forwards; }

/* Section stagger - for sections that scroll into view */
.section-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.section-reveal.anim-ready {
  opacity: 1;
  transform: translateY(0);
}

/* Card hover lift */
.content-card.anim-lift {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.content-card.anim-lift:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(212, 175, 55, 0.1);
}

/* Gold bar decorative line animation */
.gold-line-animate {
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), var(--gold-light), transparent);
  background-size: 200% 100%;
  animation: gold-line-move 3s ease-in-out infinite;
}

@keyframes gold-line-move {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* Auth page decorative strip with image */
.auth-banner {
  width: 100%;
  max-width: 440px;
  margin: 0 auto 1.5rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  animation: fade-in-up 0.5s ease-out;
}

.auth-banner img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}
