/* =============================================
   BALIQCI.STORE — SHARED THEME
   Deep teal palette, Inter font, shared header/
   footer/card/skeleton/empty-state primitives.
   Linked from every public/*.html page.
   ============================================= */

:root {
  --primary: #0F5563;
  --primary-dark: #0A3A45;
  --accent: #1C7A8C;
  --bg: #ECF6F8;
  --gold: #B8862B;           /* Premium/VIP badge ONLY */
  --gold-dark: #96691E;
  --text: #12242A;
  --text-muted: #5B7580;
  --border: #D7E6E9;
  --white: #ffffff;
  --card-shadow: 0 2px 12px rgba(15,85,99,0.08);
  --radius: 10px;
}

body { font-family: 'Inter', system-ui, -apple-system, sans-serif; }

/* ICONS */
.icon { width: 1em; height: 1em; stroke: currentColor; stroke-width: 1.8; fill: none; vertical-align: -0.15em; }
.icon-gold { color: var(--gold); }

/* HEADER — sticky, blurred, 60px */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 60px;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header .header-inner { height: 60px; }

/* SKELETON LOADER */
.skeleton-card {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.skeleton-block {
  background: linear-gradient(90deg, #E4F0F2 25%, #EFF7F8 37%, #E4F0F2 63%);
  background-size: 400% 100%;
  animation: skeleton-shimmer 1.4s ease infinite;
}
@keyframes skeleton-shimmer {
  0% { background-position: 100% 50%; }
  100% { background-position: 0 50%; }
}
.skeleton-card .skeleton-img { width: 100%; aspect-ratio: 4/3; }
.skeleton-card .skeleton-line { height: 12px; border-radius: 6px; margin: 10px 14px; }
.skeleton-card .skeleton-line.w60 { width: 60%; }
.skeleton-card .skeleton-line.w40 { width: 40%; }
.skeleton-card .skeleton-line.w90 { width: 90%; }
.skeleton-row {
  display: flex; align-items: center; gap: 14px; padding: 14px 22px;
  border-bottom: 1px solid var(--border);
}
.skeleton-row .skeleton-thumb { width: 64px; height: 64px; border-radius: 8px; flex-shrink: 0; }
.skeleton-row .skeleton-lines { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.skeleton-row .skeleton-line { height: 11px; border-radius: 6px; }

/* EMPTY STATE (shared shape; pages keep their own grid-column/padding rules) */
.empty-state .empty-icon svg { width: 52px; height: 52px; stroke-width: 1.5; color: var(--text-muted); opacity: .6; }

/* ELAN CARD — 4:3 image, bold price, 2-line title, city+date, heart btn */
.elan-card { background: var(--white); border-radius: 12px; overflow: hidden; box-shadow: var(--card-shadow); transition: transform .25s ease, box-shadow .25s ease; cursor: pointer; border: 1px solid var(--border); }
.elan-card:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(15,85,99,0.14); border-color: #BFDEE3; }
.elan-img-wrap { position: relative; overflow: hidden; aspect-ratio: 4/3; background: #E4F0F2; }
.elan-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.elan-img-placeholder { width: 100%; height: 100%; background: linear-gradient(135deg, #E4F0F2 0%, #D7E6E9 100%); display: flex; align-items: center; justify-content: center; }
.elan-img-placeholder svg { width: 40px; height: 40px; color: var(--text-muted); opacity: .55; }
.elan-body { padding: 14px; }
.elan-body .elan-price { font-size: 19px; font-weight: 800; color: var(--primary); margin-bottom: 6px; letter-spacing: -.3px; }
.elan-body .elan-title { font-size: 14px; font-weight: 500; color: var(--text); margin-bottom: 10px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.45; }
.elan-body .elan-meta { display: flex; justify-content: space-between; align-items: center; }
.elan-body .elan-city, .elan-body .elan-views { font-size: 12px; color: var(--text-muted); display: flex; align-items: center; gap: 4px; }
.elan-body .elan-city svg, .elan-body .elan-views svg { width: 13px; height: 13px; }
.elan-body .elan-date { font-size: 11px; color: #8AA3AB; margin-top: 6px; }

.fav-btn { position: absolute; top: 10px; right: 10px; background: rgba(255,255,255,0.9); border: none; border-radius: 50%; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; cursor: pointer; z-index: 2; transition: all .2s; box-shadow: 0 2px 6px rgba(0,0,0,0.12); color: #96AAB0; }
.fav-btn svg { width: 16px; height: 16px; }
.fav-btn:hover { background: white; transform: scale(1.1); }
.fav-btn.active { color: #D2434B; }
.fav-btn.active svg { fill: currentColor; }

/* VIP/Premium — gold accent only */
.vip-badge, .premium-badge { position: absolute; top: 10px; left: 10px; background: linear-gradient(135deg, var(--gold), var(--gold-dark)); color: white; font-size: 10px; font-weight: 800; padding: 3px 10px; border-radius: 20px; z-index: 2; letter-spacing: .4px; text-transform: uppercase; display: flex; align-items: center; gap: 4px; box-shadow: 0 2px 6px rgba(184,134,43,0.4); }
.vip-badge svg, .premium-badge svg { width: 11px; height: 11px; }
.elan-card.vip-card, .elan-card.premium { border: 1.5px solid #B8862B44 !important; box-shadow: 0 4px 14px rgba(184,134,43,0.18), 0 2px 8px rgba(0,0,0,0.06) !important; }
.elan-card.vip-card:hover, .elan-card.premium:hover { box-shadow: 0 12px 28px rgba(184,134,43,0.24), 0 4px 12px rgba(0,0,0,0.08) !important; }

/* ELAN GRID — mobile: OLX/Instagram tərzi 2 sütun (bütün elan grid konteynerlərinə tətbiq olunur) */
@media (max-width: 768px) {
  .elans-grid, .elan-list, #premiumGrid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }
  .elan-body, .elan-card2-body { padding: 9px !important; }
  .elan-body .elan-price, .elan-card2-price { font-size: 15px !important; }
  .elan-body .elan-title, .elan-card2-title { font-size: 12px !important; margin-bottom: 6px !important; }
}

/* FOOTER — 4 columns: platform / support / legal / brand */
.site-footer { background: var(--primary-dark); color: rgba(255,255,255,0.82); margin-top: 40px; }
.footer-inner { max-width: 1280px; margin: 0 auto; padding: 40px 24px 20px; display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 28px; }
.footer-col-title { font-size: 13px; font-weight: 700; color: white; margin-bottom: 14px; letter-spacing: .3px; text-transform: uppercase; }
.footer-brand { font-size: 20px; font-weight: 800; color: white; margin-bottom: 8px; }
.footer-brand span { color: #6FB8C6; }
.footer-desc { font-size: 13px; line-height: 1.7; color: rgba(255,255,255,0.65); max-width: 260px; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.footer-links a { font-size: 13px; color: rgba(255,255,255,0.72); transition: color .15s; }
.footer-links a:hover { color: white; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); padding: 16px 24px; text-align: center; font-size: 12px; color: rgba(255,255,255,0.55); }
@media (max-width: 768px) {
  .footer-inner { grid-template-columns: 1fr 1fr; padding: 32px 20px 12px; gap: 24px; }
}
@media (max-width: 480px) {
  .footer-inner { grid-template-columns: 1fr; }
}

/* Toast "coming soon" for nav items with no destination yet */
.soon-toast { position: fixed; bottom: 84px; left: 50%; transform: translateX(-50%) translateY(10px); background: var(--primary-dark); color: white; font-size: 13px; font-weight: 500; padding: 10px 18px; border-radius: 24px; box-shadow: 0 4px 18px rgba(0,0,0,0.25); z-index: 10000; opacity: 0; pointer-events: none; transition: all .25s; white-space: nowrap; }
.soon-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
@media (min-width: 769px) {
  .soon-toast { bottom: 24px; }
}
