/* ============================================================
   3B Yazıcı vitrini — V2 "Baskı Odası"
   Eski stil home.css içinde (.printer-showcase-*) korunur.
   ============================================================ */

.pr2-card {
    --pr2-rgb: 23, 162, 184;
    --pr2-chamber-h: 248px;
    position: relative;
    padding: 1rem 1.1rem 1.15rem;
    border-radius: 22px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    animation: pr2-enter 0.65s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes pr2-enter {
    from { opacity: 0; transform: translateY(14px) scale(0.98); }
    to   { opacity: 1; transform: none; }
}

.pr2-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
}

.pr2-kicker {
    display: block;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-bottom: 0.2rem;
}

.pr2-title {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.2;
}

.pr2-live {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    flex-shrink: 0;
    padding: 0.32rem 0.7rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    background: var(--bg-primary);
    box-shadow: var(--neu-inset-sm);
    color: rgb(var(--pr2-rgb));
    white-space: nowrap;
}

.pr2-live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgb(var(--pr2-rgb));
    box-shadow: 0 0 0 0 rgba(var(--pr2-rgb), 0.55);
    animation: pr2-ping 1.6s ease-out infinite;
}

@keyframes pr2-ping {
    0%   { box-shadow: 0 0 0 0 rgba(var(--pr2-rgb), 0.55); }
    100% { box-shadow: 0 0 0 8px transparent; }
}

/* ---------- Baskı odası ---------- */
.pr2-chamber {
    position: relative;
    height: var(--pr2-chamber-h);
    border-radius: 18px;
    overflow: hidden;
    isolation: isolate;
    background:
        radial-gradient(ellipse at 50% 18%, rgba(var(--pr2-rgb), 0.26), transparent 55%),
        var(--bg-secondary);
    box-shadow: var(--neu-inset-sm);
    perspective: 720px;
}

.pr2-glass {
    position: absolute;
    inset: 0;
    z-index: 4;
    pointer-events: none;
    background:
        linear-gradient(120deg, rgba(255, 255, 255, 0.07) 0%, transparent 28%, transparent 72%, rgba(255, 255, 255, 0.04) 100%);
}

.pr2-corners {
    position: absolute;
    inset: 10px;
    z-index: 5;
    pointer-events: none;
}

.pr2-corners span {
    position: absolute;
    width: 14px;
    height: 14px;
    border: 1.5px solid rgba(var(--pr2-rgb), 0.45);
}

.pr2-corners span:nth-child(1) { top: 0; left: 0; border-right: none; border-bottom: none; border-radius: 4px 0 0 0; }
.pr2-corners span:nth-child(2) { top: 0; right: 0; border-left: none; border-bottom: none; border-radius: 0 4px 0 0; }
.pr2-corners span:nth-child(3) { bottom: 0; left: 0; border-right: none; border-top: none; border-radius: 0 0 0 4px; }
.pr2-corners span:nth-child(4) { bottom: 0; right: 0; border-left: none; border-top: none; border-radius: 0 0 4px 0; }

.pr2-rail {
    position: absolute;
    z-index: 2;
    background: linear-gradient(90deg, transparent, rgba(var(--pr2-rgb), 0.35), transparent);
    pointer-events: none;
}

.pr2-rail-x {
    left: 12%;
    right: 12%;
    top: 18%;
    height: 2px;
    opacity: 0.7;
}

.pr2-rail-y {
    top: 16%;
    bottom: 28%;
    left: 50%;
    width: 2px;
    background: linear-gradient(180deg, rgba(var(--pr2-rgb), 0.45), transparent);
    transform: translateX(-50%);
}

.pr2-gantry {
    position: absolute;
    z-index: 3;
    left: 50%;
    top: 18%;
    width: 18px;
    height: 18px;
    transform: translateX(-50%);
    pointer-events: none;
    will-change: transform;
    transition: transform 0.16s ease-out;
    animation: pr2-gantry-idle 7.5s ease-in-out infinite;
}

.pr2-chamber.is-steering .pr2-gantry {
    animation: none;
}

@keyframes pr2-gantry-idle {
    0%   { transform: translate(calc(-50% - 38px), 4px); }
    25%  { transform: translate(calc(-50% + 42px), 18px); }
    50%  { transform: translate(calc(-50% - 12px), 36px); }
    75%  { transform: translate(calc(-50% + 28px), 10px); }
    100% { transform: translate(calc(-50% - 38px), 4px); }
}

.pr2-carriage {
    position: absolute;
    left: 50%;
    top: -7px;
    width: 28px;
    height: 10px;
    margin-left: -14px;
    border-radius: 3px;
    background: #2a3544;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 4px 10px rgba(0, 0, 0, 0.45);
}

.pr2-nozzle {
    position: absolute;
    left: 50%;
    top: 2px;
    width: 8px;
    height: 16px;
    margin-left: -4px;
    background: linear-gradient(180deg, #8b95a3, #3a4452);
    clip-path: polygon(20% 0, 80% 0, 100% 70%, 50% 100%, 0 70%);
}

.pr2-bead {
    position: absolute;
    left: 50%;
    top: 18px;
    width: 5px;
    height: 5px;
    margin-left: -2.5px;
    border-radius: 50%;
    background: rgb(var(--pr2-rgb));
    box-shadow: 0 0 8px rgba(var(--pr2-rgb), 0.9);
    opacity: 0.85;
}

.pr2-bed {
    position: absolute;
    left: 50%;
    bottom: 18%;
    width: min(58%, 240px);
    aspect-ratio: 1.35 / 1;
    transform: translateX(-50%) rotateX(62deg) rotateZ(-18deg);
    transform-style: preserve-3d;
    z-index: 1;
}

.pr2-grid {
    position: absolute;
    inset: 0;
    border-radius: 6px;
    background:
        linear-gradient(rgba(var(--pr2-rgb), 0.22) 1px, transparent 1px) 0 0 / 16px 16px,
        linear-gradient(90deg, rgba(var(--pr2-rgb), 0.22) 1px, transparent 1px) 0 0 / 16px 16px,
        var(--bg-primary);
    box-shadow:
        0 0 0 1px rgba(var(--pr2-rgb), 0.28),
        0 18px 28px rgba(0, 0, 0, 0.18),
        0 0 40px rgba(var(--pr2-rgb), 0.12);
}

.pr2-print {
    position: absolute;
    left: 50%;
    bottom: 20%;
    width: min(92%, 220px);
    height: 68%;
    transform: translateX(-50%) rotateX(-6deg);
    transform-origin: bottom center;
}

.pr2-layer {
    --w: 70%;
    position: absolute;
    left: 50%;
    bottom: calc(var(--i) * 5.2%);
    width: var(--w);
    height: 7%;
    margin-left: calc(var(--w) / -2);
    border-radius: 3px;
    background: linear-gradient(180deg, rgba(var(--pr2-rgb), 0.95), rgba(var(--pr2-rgb), 0.55));
    box-shadow: 0 0 8px rgba(var(--pr2-rgb), 0.35);
    opacity: 0;
    transform: scaleX(0.35);
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.pr2-layer.is-on {
    opacity: 1;
    transform: scaleX(1);
}

/* Vazo silueti — katmanlar biriktikçe şekil belirir */
.pr2-layer:nth-child(1)  { --w: 92%; }
.pr2-layer:nth-child(2)  { --w: 88%; }
.pr2-layer:nth-child(3)  { --w: 80%; }
.pr2-layer:nth-child(4)  { --w: 70%; }
.pr2-layer:nth-child(5)  { --w: 62%; }
.pr2-layer:nth-child(6)  { --w: 58%; }
.pr2-layer:nth-child(7)  { --w: 64%; }
.pr2-layer:nth-child(8)  { --w: 74%; }
.pr2-layer:nth-child(9)  { --w: 82%; }
.pr2-layer:nth-child(10) { --w: 86%; }
.pr2-layer:nth-child(11) { --w: 80%; }
.pr2-layer:nth-child(12) { --w: 68%; }
.pr2-layer:nth-child(13) { --w: 52%; }
.pr2-layer:nth-child(14) { --w: 40%; }
.pr2-layer:nth-child(15) { --w: 36%; }
.pr2-layer:nth-child(16) { --w: 42%; }
.pr2-layer:nth-child(17) { --w: 56%; }
.pr2-layer:nth-child(18) { --w: 64%; }

.pr2-stage-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}

@media (min-width: 640px) {
    .pr2-stage-row {
        grid-template-columns: minmax(0, 1fr) minmax(9.5rem, 12rem);
        align-items: stretch;
    }

    .pr2-chamber {
        min-height: 100%;
    }
}

@media (min-width: 1200px) {
    .pr2-stage-row {
        grid-template-columns: minmax(0, 1fr) 12.5rem;
    }

    .pr2-chamber {
        --pr2-chamber-h: 260px;
    }
}

.pr2-hud {
    position: absolute;
    z-index: 6;
    left: 12px;
    right: 12px;
    bottom: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    pointer-events: none;
}

.pr2-hud-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.32rem;
    padding: 0.22rem 0.5rem;
    border-radius: 999px;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: var(--text-secondary);
    background: var(--bg-primary);
    border: 1px solid rgba(var(--pr2-rgb), 0.22);
}

.pr2-hud-chip i {
    color: rgb(var(--pr2-rgb));
    font-size: 0.64rem;
}

.pr2-hud-chip strong {
    color: #fff;
    font-variant-numeric: tabular-nums;
}

.pr2-lead {
    margin: 0;
    font-size: 0.88rem;
    line-height: 1.5;
}

.pr2-mat {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.38rem 0.72rem;
    border: none;
    border-radius: 999px;
    background: var(--bg-primary);
    box-shadow: var(--neu-shadow-sm);
    color: var(--text-secondary);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.pr2-mat:hover {
    color: var(--text-primary);
    transform: translateY(-1px);
}

.pr2-mat:focus-visible {
    outline: none;
    box-shadow: var(--neu-shadow-sm), 0 0 0 3px rgba(var(--pr2-rgb), 0.4);
}

.pr2-mat.is-active {
    color: rgb(var(--pr2-rgb));
    box-shadow: var(--neu-inset-sm);
    outline: 1.5px dashed rgb(var(--pr2-rgb));
    outline-offset: 3px;
}

.pr2-specs {
    display: grid;
    width: 100%;
    align-self: stretch;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
}

.pr2-spec {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    padding: 0.55rem 0.6rem;
    border-radius: 12px;
    background: var(--bg-primary);
    box-shadow: var(--neu-inset-sm);
    min-width: 0;
}

.pr2-spec--accent {
    box-shadow: var(--neu-inset-sm);
    background: linear-gradient(145deg, rgba(var(--pr2-rgb), 0.12), var(--bg-primary));
}

.pr2-spec span {
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.pr2-spec strong {
    font-size: 0.82rem;
    color: var(--text-primary);
    line-height: 1.3;
    word-break: break-word;
}

.pr2-spec small {
    font-size: 0.7rem;
    font-weight: 600;
    opacity: 0.8;
}

.pr2-queue {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.pr2-queue li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin: 0;
    padding: 0.65rem 0.7rem;
    border-radius: 14px;
    font-family: inherit;
    font-size: 0.8rem;
    font-weight: 600;
    font-style: normal;
    line-height: 1.4;
    color: var(--text-secondary);
    background: var(--bg-primary);
    box-shadow: var(--neu-shadow-sm);
    cursor: pointer;
}

.pr2-queue i {
    flex-shrink: 0;
    margin-top: 0.12rem;
    width: 1em;
    color: rgb(var(--pr2-rgb));
}

.pr2-queue li.is-on {
    color: var(--text-primary);
    box-shadow: var(--neu-inset-sm);
    outline: 1.5px dashed rgb(var(--pr2-rgb));
    outline-offset: 3px;
}

.pr2-fan {
    animation: pr2-spin 0.7s linear infinite;
}

.pr2-card[data-fan="low"] .pr2-fan { animation-duration: 2.2s; }
.pr2-card[data-fan="mid"] .pr2-fan { animation-duration: 1.15s; }
.pr2-card[data-fan="high"] .pr2-fan { animation-duration: 0.55s; }

@keyframes pr2-spin {
    to { transform: rotate(360deg); }
}

html[data-theme="light"] .pr2-chamber {
    background:
        radial-gradient(ellipse at 50% 18%, rgba(var(--pr2-rgb), 0.2), transparent 55%),
        var(--bg-secondary);
    box-shadow: var(--neu-inset-sm);
}

html[data-theme="light"] .pr2-glass {
    background:
        linear-gradient(120deg, rgba(255, 255, 255, 0.45) 0%, transparent 28%, transparent 72%, rgba(255, 255, 255, 0.28) 100%);
}

html[data-theme="light"] .pr2-grid {
    background:
        linear-gradient(rgba(var(--pr2-rgb), 0.22) 1px, transparent 1px) 0 0 / 16px 16px,
        linear-gradient(90deg, rgba(var(--pr2-rgb), 0.22) 1px, transparent 1px) 0 0 / 16px 16px,
        var(--bg-primary);
}

html[data-theme="light"] .pr2-carriage {
    background: #c5ced8;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.55), 0 4px 10px rgba(163, 177, 198, 0.4);
}

html[data-theme="light"] .pr2-nozzle {
    background: linear-gradient(180deg, #9aa6b2, #6b7682);
}

.pr2-hud-chip {
    color: var(--text-secondary);
    background: var(--bg-primary);
    border: 1px solid rgba(var(--pr2-rgb), 0.22);
}

.pr2-hud-chip strong {
    color: var(--text-primary);
}

html[data-theme="light"] .pr2-hud-chip {
    color: var(--text-secondary);
    background: var(--bg-primary);
    border-color: rgba(var(--pr2-rgb), 0.22);
}

html[data-theme="light"] .pr2-hud-chip strong {
    color: var(--text-primary);
}

@media (max-width: 768px) {
    .pr2-card {
        padding: 0.75rem 0.7rem 0.85rem;
    }

    .pr2-card,
    .pr2-card *,
    .pr2-card *::before,
    .pr2-card *::after {
        animation: none !important;
    }
}

@media (max-width: 576px) {
    .pr2-card {
        --pr2-chamber-h: 210px;
        padding: 0.75rem 0.7rem 0.85rem;
    }

    .pr2-specs {
        grid-template-columns: 1fr;
    }

    .pr2-title {
        font-size: 1.08rem;
    }

    .pr2-live {
        padding: 0.3rem 0.5rem;
        font-size: 0.64rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .pr2-card,
    .pr2-card *,
    .pr2-card *::before,
    .pr2-card *::after {
        animation: none !important;
        transition-duration: 0.01ms !important;
    }

    .pr2-layer {
        opacity: 1;
        transform: none;
    }

    .pr2-layer.is-on {
        opacity: 1;
    }
}
