/* ================================================================
 * Papuci.ro — modern dark premium CSS
 * ================================================================ */

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-feature-settings: "ss01", "cv11";
    text-rendering: optimizeLegibility;
    background: #0a0a0a;
}

/* Selection cu accent coral */
::selection {
    background: #ff6b4a;
    color: #0a0a0a;
}

/* ============================================================
   SCROLLBAR custom pe dark
============================================================ */
@media (min-width: 1024px) {
    ::-webkit-scrollbar        { width: 10px; height: 10px; }
    ::-webkit-scrollbar-track  { background: #0a0a0a; }
    ::-webkit-scrollbar-thumb  { background: #262626; border-radius: 10px; border: 2px solid #0a0a0a; }
    ::-webkit-scrollbar-thumb:hover { background: #ff6b4a; }
}

/* iOS fix — evita zoom la focus pe input */
@media screen and (max-width: 767px) {
    input[type="search"], input[type="text"],
    input[type="email"], input[type="number"] {
        font-size: 16px !important;
    }
}

/* Tranzitii globale */
a, button, svg {
    transition-property: color, background-color, border-color, box-shadow, transform, opacity;
    transition-duration: 250ms;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Focus ring elegant */
:focus-visible {
    outline: 2px solid #ff6b4a;
    outline-offset: 3px;
    border-radius: 4px;
}

/* Line clamp utils */
.line-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.line-clamp-3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* ============================================================
   MARQUEE
============================================================ */
@keyframes marquee {
    from { transform: translateX(0); }
    to   { transform: translateX(-33.3333%); }
}
.animate-marquee {
    animation: marquee 40s linear infinite;
    will-change: transform;
}
.animate-marquee:hover {
    animation-play-state: paused;
}

/* ============================================================
   AMBIENT GLOW — float & pulse
============================================================ */
@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33%      { transform: translate(30px, -50px) scale(1.1); }
    66%      { transform: translate(-20px, 30px) scale(0.95); }
}
.animate-float {
    animation: float 20s ease-in-out infinite;
    will-change: transform;
}

@keyframes glow {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50%      { opacity: 1; transform: scale(1.15); }
}
.animate-glow {
    animation: glow 12s ease-in-out infinite;
    will-change: opacity, transform;
}

/* ============================================================
   REVEAL ON SCROLL
============================================================ */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 900ms cubic-bezier(0.16, 1, 0.3, 1),
                transform 900ms cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.in-view {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================================
   TILT — subtle 3D on hover
============================================================ */
.tilt {
    transform-style: preserve-3d;
    transition: transform 500ms cubic-bezier(0.16, 1, 0.3, 1);
}
.tilt:hover {
    transform: translateY(-4px);
}

/* ============================================================
   PROSE DARK MODE refinements
============================================================ */
.prose-invert {
    --tw-prose-body: #d4d4d4;
    --tw-prose-headings: #fafafa;
    --tw-prose-links: #ff6b4a;
    --tw-prose-bold: #fafafa;
    --tw-prose-counters: #a3a3a3;
    --tw-prose-bullets: #525252;
    --tw-prose-hr: rgba(255,255,255,0.1);
    --tw-prose-quotes: #fafafa;
    --tw-prose-quote-borders: #ff6b4a;
    --tw-prose-captions: #a3a3a3;
    --tw-prose-code: #ff6b4a;
    --tw-prose-pre-code: #fafafa;
    --tw-prose-pre-bg: #141414;
    --tw-prose-th-borders: rgba(255,255,255,0.2);
    --tw-prose-td-borders: rgba(255,255,255,0.1);
}

/* Instrument Serif — font display subtil refinat */
.font-serif {
    font-variation-settings: "wdth" 100;
    letter-spacing: -0.01em;
}

/* Respecta prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .reveal {
        opacity: 1;
        transform: none;
    }
}
