/*
 * Copyright (c) 2026 Doğugün Özkaya. All rights reserved.
 * Unauthorized copying, distribution or use of this file, via any medium,
 * is strictly prohibited. Proprietary and confidential.
 * See the LICENSE file in the project root for full terms.
 */

/* EXPERIMENT (2026-11-03) — brand gradients on top of the Liquid Glass theme.
 * Loaded after glass.css; remove its <link> in base.html to roll back.
 *   navbar  : exact brand colours  #330596 → #fa1980
 *   footer, event header, event info cards : nearby purple / pink ranges      */

/* ---------- Navbar: exact brand gradient ---------- */
.lg-theme .lg-navbar > .container {
  background: linear-gradient(120deg, #330596 0%, #fa1980 100%);
  border-color: rgba(255,255,255,.35);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 10px 30px rgba(51,5,150,.22), 0 2px 6px rgba(30,32,40,.08);
}
.lg-theme .lg-navbar .nav-link { color: rgba(255,255,255,.88); }
.lg-theme .lg-navbar .nav-link:hover,
.lg-theme .lg-navbar .nav-link.show { background: rgba(255,255,255,.16); color: #fff; }
.lg-theme .lg-navbar .navbar-toggler-icon { filter: invert(1) brightness(2); }
/* "Kayıt Ol" would vanish on the same gradient → white pill, brand text */
.lg-theme .lg-navbar .nav-reg,
.lg-theme .lg-navbar .nav-reg:hover {
  background: #fff !important; color: #330596 !important; text-shadow: none;
  box-shadow: 0 4px 14px rgba(51,5,150,.25) !important;
}

/* ---------- Footer panel: deep violet → magenta ---------- */
.lg-theme .lg-footer .lg-footer-panel {
  background: linear-gradient(135deg, #2a0a7d 0%, #5d17ad 48%, #d92f8a 100%) !important;
  border-color: rgba(255,255,255,.25) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 14px 38px rgba(42,10,125,.25) !important;
}
.lg-theme .lg-footer .lg-footer-panel::before { opacity: .35; }
.lg-theme .lg-footer .lg-footer-panel,
.lg-theme .lg-footer h6 { color: rgba(255,255,255,.75) !important; }
.lg-theme .lg-footer .footer-links a,
.lg-theme .lg-footer .footer-links .text-muted,
.lg-theme .lg-footer .text-muted { color: rgba(255,255,255,.82) !important; }
.lg-theme .lg-footer .footer-links a:hover { color: #fff !important; }
.lg-theme .lg-footer hr { border-color: rgba(255,255,255,.25) !important; }

/* ---------- Event page header (lg-head), with "Etkinlik Hakkında" / "Detaylar" inside ----------
 * COLD, opaque panel gradient (indigo → violet, no pink); white text and
 * thin separators. "Etkinlik Konumu" keeps a soft wash. */
.lg-theme { --cold-panel: linear-gradient(125deg, #2b1896 0%, #5a2ec8 55%, #7f45d3 100%); }
.lg-theme .lg-head {
  background: var(--cold-panel) !important;
  border: 1px solid rgba(255,255,255,.22) !important; color: #fff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.22), 0 12px 30px rgba(47,29,158,.2) !important;
}
.lg-theme .lg-head::before { opacity: .18; }
.lg-theme .lg-head h1,
.lg-theme .lg-head .event-section h5 { color: #fff !important; }
.lg-theme .lg-head .event-section .event-desc,
.lg-theme .lg-head .event-section .event-details { color: rgba(255,255,255,.9) !important; }
.lg-theme .lg-head .event-section a { color: #fff; text-decoration: underline; }
.lg-theme .lg-head .lg-head-sep { border-top-color: rgba(255,255,255,.28); }
.lg-theme .lg-head .badge.bg-primary { background: rgba(255,255,255,.2) !important; color: #fff; }
.lg-theme .lg-head .save-btn { color: #fff; border-color: rgba(255,255,255,.7); background: rgba(255,255,255,.12); }
.lg-theme .lg-head .save-btn:hover { color: #33209f; background: #fff; }

/* ---------- "Etkinlik Konumu" card: soft, opaque, cold wash ---------- */
.lg-theme .lg-head ~ .card.bg-light:not(.event-info) {
  background: linear-gradient(90deg, #eeebfa 0%, #efebfb 50%, #f1ecfb 100%) !important;
  border: 1px solid rgba(91,47,201,.12) !important;
}
.lg-theme .lg-head ~ .card.bg-light:not(.event-info) h5 { color: #2f1d9e; }

/* ---------- Purchase flow step headers: COLD + slightly see-through ----------
 * Indigo → violet → cool orchid (bluer than the brand pink). The open step is a
 * ~90% opaque gradient with white text; the other steps are a pale wash of the
 * same range with indigo text (white wouldn't be readable on it). Text contrast
 * kept ≥ 4.5. Buttons, inputs and the seat map are untouched. */
.lg-theme {
  --cold-1: 47, 29, 158;     /* #2f1d9e indigo        */
  --cold-2: 91, 47, 201;     /* #5b2fc9 violet        */
  --cold-3: 128, 70, 206;    /* #8046ce cool orchid   */
  /* "slow" ramps: horizontal, run the full length, neighbouring tones only */
  --cold-open: linear-gradient(90deg, rgba(58,33,172,.91) 0%, rgba(74,40,186,.9) 50%, rgba(92,48,198,.9) 100%);
  --cold-wash: linear-gradient(90deg, rgba(var(--cold-1),.24) 0%, rgba(var(--cold-2),.22) 50%, rgba(var(--cold-2),.2) 100%);
  --cold-wash-hover: linear-gradient(90deg, rgba(var(--cold-1),.34) 0%, rgba(var(--cold-2),.32) 50%, rgba(var(--cold-2),.3) 100%);
  --cold-faint: linear-gradient(90deg, rgba(var(--cold-1),.13) 0%, rgba(var(--cold-2),.12) 50%, rgba(var(--cold-2),.11) 100%);
}

/* Funnel (Bilet Seç → Koltuk Seçimi → Ödeme → Özet) — the open step's header pill */
.lg-theme .funnel-item.current > .funnel-head {
  background: var(--cold-open); border-color: rgba(255,255,255,.35); color: #fff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 8px 24px rgba(var(--cold-1),.18);
}
.lg-theme .funnel-item.current > .funnel-head .funnel-label,
.lg-theme .funnel-item.current > .funnel-head .funnel-caret { color: #fff; }
.lg-theme .funnel-item.current .funnel-badge { background: #fff; color: rgb(var(--cold-1)); }

/* The other steps (done / upcoming links): pale cold wash, indigo text */
.lg-theme .funnel-item.collapsed { background: var(--cold-wash) !important; border-color: rgba(255,255,255,.55) !important; }
.lg-theme .funnel-link:hover { background: var(--cold-wash-hover) !important; }
.lg-theme .funnel-item.collapsed .funnel-head,
.lg-theme .funnel-item.collapsed .funnel-label,
.lg-theme .funnel-item.collapsed .funnel-caret { color: rgb(var(--cold-1)); }
.lg-theme .funnel-item.collapsed .funnel-badge { background: rgb(var(--cold-2)); color: #fff; }
.lg-theme .funnel-item.done .funnel-badge { background: #16a34a; }
/* Not-yet-reachable steps: fainter still, softer indigo */
.lg-theme .funnel-item.disabled { opacity: 1; }
.lg-theme .funnel-item.collapsed.disabled { background: var(--cold-faint) !important; }
.lg-theme .funnel-item.collapsed.disabled .funnel-head,
.lg-theme .funnel-item.collapsed.disabled .funnel-label,
.lg-theme .funnel-item.collapsed.disabled .funnel-caret { color: rgba(var(--cold-1),.8); }
.lg-theme .funnel-item.collapsed.disabled .funnel-badge { background: rgba(var(--cold-1),.16); color: rgb(var(--cold-1)); }

/* Checkout steps (1 Sipariş Özeti / 2 Kupon / 3 Ödeme): open = gradient, closed = wash */
.lg-theme .checkout-steps .accordion-button { background: var(--cold-wash); color: rgb(var(--cold-1)); box-shadow: none; }
.lg-theme .checkout-steps .accordion-button:not(.collapsed) { background: var(--cold-open); color: #fff; }
.lg-theme .checkout-steps .accordion-button:not(.collapsed)::after { filter: brightness(0) invert(1); }
.lg-theme .checkout-steps .accordion-button .step-num { background: rgb(var(--cold-2)); color: #fff; }
.lg-theme .checkout-steps .accordion-button:not(.collapsed) .step-num { background: #fff; color: rgb(var(--cold-1)); }

/* Section-title icons (ico glass) */
.lg-theme .lg-sec-title .ico.glass {
  background: var(--cold-open) !important;
  border-color: rgba(255,255,255,.35) !important; color: #fff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 6px 16px rgba(var(--cold-1),.2) !important;
}
.lg-theme .lg-sec-title .ico.glass::before { opacity: .25; }

/* ---------- Page background: current grey → rgb(252, 231, 230), top-left → bottom-right ----------
 * A wash over the living background (blobs included), fully transparent at the
 * top-left and exactly rgb(252,231,230) at the bottom-right. Eased stops keep the
 * blend very gradual; fixed to the viewport like the background itself. */
.lg-theme .lg-bg::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(135deg,
    rgba(252, 231, 230, 0)    0%,
    rgba(252, 231, 230, .03)  20%,
    rgba(252, 231, 230, .12)  38%,
    rgba(252, 231, 230, .28)  54%,
    rgba(252, 231, 230, .50)  68%,
    rgba(252, 231, 230, .74)  82%,
    rgba(252, 231, 230, .92)  93%,
    rgba(252, 231, 230, 1)    100%);
}

/* ---------- Homepage slider caption: no glass box ----------
 * The caption's glass panel is made transparent so the banner shows fully.
 * Desktop: text sits on the image → white with a soft shadow for legibility.
 * Phones (≤640px): the caption sits below the image → dark text, no box. */
.lg-theme .lg-slide .cap.glass {
  background: transparent !important; border: 0 !important; box-shadow: none !important;
  -webkit-backdrop-filter: none; backdrop-filter: none; padding: 0 4px;
}
.lg-theme .lg-slide .cap.glass::before { display: none; }
@media (min-width: 641px) {
  .lg-theme .lg-slide .cap.glass { left: 26px; right: 26px; bottom: 22px; }
  .lg-theme .lg-slide .cap h2,
  .lg-theme .lg-slide .cap .meta { color: #fff !important; text-shadow: 0 1px 3px rgba(0,0,0,.55), 0 0 14px rgba(0,0,0,.35); }
  .lg-theme .lg-slide .cap .meta .bi { color: #fff; }
}
@media (max-width: 640px) {
  .lg-theme .lg-slide .cap.glass { padding: 0 2px; }
}
