/* =============================================
   Kabe'den Selam — Global Styles
   Color: Gold #C9A84C | Dark #0a0a0a | Amber #F59E0B
   ============================================= */

:root {
  --gold: #C9A84C;
  --gold-light: #E8C97A;
  --gold-dark: #A07830;
  --dark: #0a0a0a;
  --dark-800: #141414;
  --dark-700: #1c1c1c;
  --dark-600: #242424;
  --amber: #F59E0B;
}

/* ---------- Base ---------- */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--dark);
  color: #ffffff;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ---------- Custom Scrollbar ---------- */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: var(--dark-800);
}
::-webkit-scrollbar-thumb {
  background: rgba(201, 168, 76, 0.35);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(201, 168, 76, 0.6);
}
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(201, 168, 76, 0.35) var(--dark-800);
}

/* ---------- Typography ---------- */
.font-amiri {
  font-family: 'Amiri', 'Times New Roman', serif;
}

/* ---------- Gold Gradient Text ---------- */
.gold-text {
  color: var(--gold);
}

.gold-gradient-text {
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 40%, var(--gold-dark) 70%, var(--gold-light) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: textShine 5s linear infinite;
}

@keyframes textShine {
  0% { background-position: 0% center; }
  100% { background-position: 200% center; }
}

/* ---------- Arabic Geometric Border ---------- */
.arabic-border-top {
  position: relative;
}
.arabic-border-top::before {
  content: '◆ ◇ ◆ ◇ ◆ ◇ ◆ ◇ ◆ ◇ ◆ ◇ ◆ ◇ ◆ ◇ ◆ ◇ ◆';
  display: block;
  text-align: center;
  color: rgba(201, 168, 76, 0.3);
  font-size: 0.5rem;
  letter-spacing: 0.4em;
  margin-bottom: 16px;
  overflow: hidden;
}

.arabic-border-bottom {
  position: relative;
}
.arabic-border-bottom::after {
  content: '◆ ◇ ◆ ◇ ◆ ◇ ◆ ◇ ◆ ◇ ◆ ◇ ◆ ◇ ◆ ◇ ◆ ◇ ◆';
  display: block;
  text-align: center;
  color: rgba(201, 168, 76, 0.3);
  font-size: 0.5rem;
  letter-spacing: 0.4em;
  margin-top: 16px;
  overflow: hidden;
}

/* ---------- Polaroid / Photo Frame ---------- */
.polaroid {
  background: white;
  padding: 12px 12px 40px;
  box-shadow:
    0 4px 15px rgba(0,0,0,0.6),
    0 1px 3px rgba(0,0,0,0.4);
  transform: rotate(-1.5deg);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.polaroid:hover {
  transform: rotate(0deg) scale(1.02);
  box-shadow:
    0 8px 30px rgba(0,0,0,0.7),
    0 0 20px rgba(201,168,76,0.2);
}

.polaroid img {
  width: 100%;
  display: block;
}

/* ---------- Gold Button ---------- */
.btn-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 50%, var(--gold-dark) 100%);
  background-size: 200% auto;
  color: var(--dark);
  font-weight: 700;
  font-size: 1rem;
  border-radius: 14px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background-position 0.4s, transform 0.2s, box-shadow 0.2s;
  position: relative;
  overflow: hidden;
}

.btn-gold:hover {
  background-position: right center;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(201, 168, 76, 0.4);
}

.btn-gold:active {
  transform: translateY(0px) scale(0.98);
}

.btn-gold::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.15), transparent);
  pointer-events: none;
}

/* ---------- Card Container ---------- */
.glass-card {
  background: rgba(201, 168, 76, 0.04);
  border: 1px solid rgba(201, 168, 76, 0.18);
  border-radius: 20px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* ---------- Gold divider ---------- */
.gold-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  border: none;
  margin: 24px 0;
}

/* ---------- Mosaic pan animation ---------- */
@keyframes mosaicPanSlow {
  0% { transform: scale(1.08) translate(0%, 0%); }
  25% { transform: scale(1.1) translate(-1.5%, -1%); }
  50% { transform: scale(1.08) translate(-2%, 0.5%); }
  75% { transform: scale(1.1) translate(-0.5%, -1.5%); }
  100% { transform: scale(1.08) translate(0%, 0%); }
}

.mosaic-pan {
  animation: mosaicPanSlow 90s ease-in-out infinite;
}

/* ---------- Floating animation ---------- */
@keyframes floatGently {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  33% { transform: translateY(-8px) rotate(0.5deg); }
  66% { transform: translateY(-4px) rotate(-0.5deg); }
}

.float-gentle {
  animation: floatGently 6s ease-in-out infinite;
}

/* ---------- Pulsing glow ---------- */
@keyframes glowPulse {
  0%, 100% {
    box-shadow: 0 0 20px rgba(201,168,76,0.2), 0 0 40px rgba(201,168,76,0.1);
  }
  50% {
    box-shadow: 0 0 40px rgba(201,168,76,0.4), 0 0 80px rgba(201,168,76,0.2);
  }
}

.glow-pulse {
  animation: glowPulse 3s ease-in-out infinite;
}

/* ---------- CTA Pulse ---------- */
@keyframes ctaPulse {
  0%, 100% {
    box-shadow:
      0 0 0 0 rgba(201,168,76,0.7),
      0 4px 20px rgba(201,168,76,0.3);
  }
  50% {
    box-shadow:
      0 0 0 14px rgba(201,168,76,0),
      0 4px 30px rgba(201,168,76,0.5);
  }
}

.cta-pulse {
  animation: ctaPulse 2.2s ease-in-out infinite;
}

/* ---------- Shimmer on cards ---------- */
@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.shimmer-effect {
  position: relative;
  overflow: hidden;
}

.shimmer-effect::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(201, 168, 76, 0.06) 50%,
    transparent 100%
  );
  animation: shimmer 3s ease-in-out infinite;
}

/* ---------- Input focus styles ---------- */
input:focus,
textarea:focus,
select:focus {
  outline: none;
}

/* ---------- Responsive utilities ---------- */
@media (max-width: 640px) {
  .hide-mobile {
    display: none !important;
  }
}

@media (min-width: 641px) {
  .show-mobile-only {
    display: none !important;
  }
}

/* ---------- Photo delivery frame ---------- */
.delivery-photo-wrapper {
  position: relative;
  display: inline-block;
}

.delivery-photo-wrapper::before {
  content: '';
  position: absolute;
  inset: -3px;
  background: linear-gradient(135deg, #E8C97A, #C9A84C, #A07830, #E8C97A);
  background-size: 200% 200%;
  border-radius: 8px;
  z-index: -1;
  animation: borderRotate 4s linear infinite;
}

@keyframes borderRotate {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ---------- Geometric pattern overlay ---------- */
.geo-pattern {
  background-image:
    repeating-linear-gradient(
      45deg,
      rgba(201,168,76,0.03) 0px,
      rgba(201,168,76,0.03) 1px,
      transparent 1px,
      transparent 10px
    ),
    repeating-linear-gradient(
      -45deg,
      rgba(201,168,76,0.03) 0px,
      rgba(201,168,76,0.03) 1px,
      transparent 1px,
      transparent 10px
    );
}

/* ---------- Notification / toast ---------- */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--dark-700);
  border: 1px solid rgba(201,168,76,0.3);
  border-radius: 12px;
  padding: 14px 20px;
  font-size: 0.9rem;
  color: white;
  z-index: 9999;
  box-shadow: 0 8px 30px rgba(0,0,0,0.5);
  transform: translateY(100px);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.34,1.56,0.64,1), opacity 0.3s;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

/* ---------- Selection color ---------- */
::selection {
  background: rgba(201,168,76,0.3);
  color: white;
}

::-moz-selection {
  background: rgba(201,168,76,0.3);
  color: white;
}
