﻿/* ===== Profit pe Locație – modern, clean, marketing-ish ===== */
:root {
    --bg: #f8fafc;
    --card: #ffffff;
    --text: #0b1220;
    --muted: #6b7280;
    --primary: #2563eb;
    --success: #16a34a;
    --danger: #dc2626;
    --border: rgba(203,213,225,.6);
    --ring: #93c5fd;
    --shadow: 0 12px 28px rgba(2,6,23,.08);
}

.theme-dark {
    --bg: #0b1220;
    --card: #0f172a;
    --text: #e5e7eb;
    --muted: #9ca3af;
    --primary: #60a5fa;
    --success: #22c55e;
    --danger: #ef4444;
    --border: rgba(148,163,184,.22);
    --ring: #3b82f6;
    --shadow: 0 14px 36px rgba(0,0,0,.45);
}

html, body {
    height: 100%
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial
}

/* Shell */
.profit-shell {
    max-width: 1200px;
    margin: 0 auto;
    padding: 34px 16px 64px
}

/* Header */
.pl-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px
}

.pl-title {
    font-weight: 800;
    font-size: clamp(26px,3.4vw,36px);
    letter-spacing: -.3px;
    margin: 0
}

.pl-sub {
    color: var(--muted);
    margin: 4px 0 0 0
}

.pl-controls {
    display: flex;
    align-items: center;
    gap: 12px
}

.pl-range {
    display: flex;
    align-items: center;
    gap: .5rem;
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: .4rem .75rem;
    background: var(--card);
    box-shadow: var(--shadow);
    color: var(--text)
}

/* Theme switch */
.pl-switch {
    display: none
}

.pl-switch-label {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    border: 1px solid var(--border);
    background: var(--card);
    padding: .35rem .6rem;
    border-radius: 999px;
    cursor: pointer;
    box-shadow: var(--shadow)
}

.pl-switch:checked + .pl-switch-label {
    box-shadow: 0 0 0 2px var(--ring)
}

/* Filters */
.pl-filters {
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--card);
    padding: 14px;
    box-shadow: var(--shadow);
    margin-bottom: 22px
}

.btn-apply {
    background: linear-gradient(180deg, var(--primary), #1d4ed8);
    color: #fff;
    border: none;
    border-radius: 12px;
    box-shadow: 0 10px 22px rgba(37,99,235,.22)
}

    .btn-apply:hover {
        filter: brightness(1.03)
    }

/* Card */
.pl-card {
    position: relative;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: var(--shadow);
    overflow: hidden
}

.pl-card-border {
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: 18px;
    background: linear-gradient(90deg, rgba(37,99,235,.25), rgba(16,185,129,.2));
    opacity: .2
}

.pl-card-body {
    position: relative;
    padding: 18px
}

.pl-card-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px
}

.pl-card-title {
    font-weight: 800;
    letter-spacing: -.2px
}

.pl-card-date {
    color: var(--muted);
    font-size: .95rem
}

/* Top row */
.pl-top {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 12px
}

.pl-stats {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 12px;
    flex: 1
}

.pl-stat {
    padding: 12px;
    border: 1px dashed var(--border);
    border-radius: 12px;
    background: rgba(255,255,255,.5)
}

.theme-dark .pl-stat {
    background: rgba(15,23,42,.6)
}

.pl-stat-label {
    color: var(--muted);
    font-size: .9rem
}

.pl-stat-value {
    font-weight: 800;
    font-size: 1.1rem
}

.text-success {
    color: var(--success) !important
}

.text-danger {
    color: var(--danger) !important
}

/* Ring (conic) */
.pl-ring {
    --val: 0;
    position: relative;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: conic-gradient(var(--primary) calc(var(--val)*1%), rgba(148,163,184,.25) 0);
    display: grid;
    place-items: center
}

.pl-ring-hole {
    position: absolute;
    inset: 10px;
    background: var(--card);
    border-radius: 50%
}

.pl-ring-content {
    position: relative;
    text-align: center
}

.pl-ring-value {
    font-weight: 800;
    font-size: 1.2rem
}

.pl-ring-label {
    font-size: .85rem;
    color: var(--muted)
}

/* Sections */
.pl-section {
    margin-top: 18px
}

.pl-section-title {
    font-weight: 800;
    margin-bottom: 10px
}

/* Chips */
.pl-chips {
    display: grid;
    gap: 10px
}

.pl-chip {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 10px 12px;
    background: var(--card)
}

.pl-chip-badge {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    color: #1f2937;
    background: #eef2ff
}

.bg-indigo {
    background: #e0e7ff !important;
    color: #3730a3 !important
}

.bg-emerald {
    background: #dcfce7 !important;
    color: #065f46 !important
}

.bg-rose {
    background: #ffe4e6 !important;
    color: #9f1239 !important
}

.bg-slate {
    background: #e2e8f0 !important;
    color: #0f172a !important
}

.chip-danger {
    border-color: rgba(239,68,68,.35)
}

.pl-chip-title {
    font-weight: 700
}

.pl-chip-main {
    font-weight: 700
}

.pl-chip-sub {
    color: var(--muted);
    font-size: .92rem
}

/* Top3 */
.pl-top3 {
    display: grid;
    gap: 10px
}

.pl-top3-item {
    display: flex;
    gap: 10px;
    align-items: flex-start
}

.pl-top3-rank {
    flex: 0 0 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: #e5edff;
    color: #1e40af;
    font-weight: 800
}

.pl-top3-body {
    flex: 1
}

.pl-top3-title {
    font-weight: 700
}

.pl-top3-meta {
    color: var(--muted);
    font-size: .92rem
}

/* Sales panels */
.pl-sales {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 12px
}

@media (max-width: 992px) {
    .pl-sales {
        grid-template-columns: 1fr
    }
}

.pl-panel {
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--card);
    padding: 12px
}

.pl-panel-title {
    font-weight: 700;
    margin-bottom: 8px
}

/* Progress bar (Bootstrap-like) */
.progress {
    height: 8px;
    background: rgba(148,163,184,.25);
    border-radius: 999px;
    overflow: hidden;
    margin-top: 6px
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), #10b981)
}

/* Variants (subtle corner tint) */
.variant-a .pl-card-border {
    background: linear-gradient(90deg, rgba(37,99,235,.25), rgba(16,185,129,.2))
}

.variant-b .pl-card-border {
    background: linear-gradient(90deg, rgba(99,102,241,.25), rgba(59,130,246,.2))
}

.variant-c .pl-card-border {
    background: linear-gradient(90deg, rgba(236,72,153,.25), rgba(96,165,250,.2))
}

.variant-d .pl-card-border {
    background: linear-gradient(90deg, rgba(20,184,166,.25), rgba(59,130,246,.2))
}
