/* --- Hinweis zu :hover ---
   Alle :hover-Regeln in dieser Datei stehen in
   @media (hover: hover) and (pointer: fine). Ohne diese Abfrage bleibt auf
   Touch der Hover-Zustand nach dem ersten Tippen kleben – inklusive der
   Schatten und Verläufe, die dann dauerhaft neu gezeichnet werden. */

/* ============================================
   YOINK – Ergänzungen zum Converter-Design
   (converter.css wird davor geladen und liefert
   das komplette cv-* Grundgerüst)
   ============================================ */

/* Brand-Icon (Magnet) in der Topbar */
.yk-brand-icon {
    font-size: 1.05rem;
    line-height: 1;
    filter: drop-shadow(0 0 10px rgba(41, 151, 255, 0.5));
    animation: ykMagnet 3.4s ease-in-out infinite;
}
@keyframes ykMagnet {
    0%, 100% { transform: rotate(-8deg); }
    50% { transform: rotate(8deg); }
}

/* ── URL-Eingabe ─────────────────────────────── */
.yk-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
    margin-bottom: 1.75rem;
}
.yk-input-icon {
    position: absolute;
    left: 1.1rem;
    width: 20px;
    height: 20px;
    color: var(--text-muted);
    pointer-events: none;
    transition: color 0.3s ease;
}
.yk-input-wrap:focus-within .yk-input-icon { color: var(--primary); }

.yk-url {
    width: 100%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.05rem 3rem 1.05rem 3rem;
    color: var(--text);
    font-family: var(--font-body);
    font-size: 1.02rem;
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}
.yk-url::placeholder { color: var(--text-muted); opacity: 0.75; }
.yk-url:focus {
    border-color: var(--primary);
    background: rgba(41, 151, 255, 0.05);
    box-shadow: 0 0 0 3px rgba(41, 151, 255, 0.14);
}
[data-theme="light"] .yk-url { background: rgba(0, 0, 0, 0.02); }
[data-theme="light"] .yk-url:focus { background: rgba(41, 151, 255, 0.05); }

.yk-clear {
    position: absolute;
    right: 0.7rem;
    width: 30px;
    height: 30px;
    border: none;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-muted);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}
@media (hover: hover) and (pointer: fine) {
    .yk-clear:hover { background: rgba(255, 59, 48, 0.15); color: #ff453a; transform: rotate(90deg); }
}
[data-theme="light"] .yk-clear { background: rgba(0, 0, 0, 0.05); }

/* ── Format-Umschalter (Video | Audio) ───────── */
.yk-mode-label { margin-bottom: 0.6rem; }
.yk-mode {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 1.6rem;
    flex-wrap: wrap;
}
.yk-mode-btn {
    appearance: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-muted);
    font-family: var(--font-body);
    font-size: 0.92rem;
    font-weight: 600;
    padding: 0.6rem 1.3rem;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.yk-mode-btn svg { width: 17px; height: 17px; }
@media (hover: hover) and (pointer: fine) {
    .yk-mode-btn:hover { color: var(--text); transform: translateY(-1px); }
}
.yk-mode-btn.active {
    color: #fff;
    background: linear-gradient(135deg, #2997ff, #bf5af2);
    border-color: transparent;
    box-shadow: 0 4px 18px rgba(41, 151, 255, 0.35);
}
[data-theme="light"] .yk-mode-btn { background: rgba(0, 0, 0, 0.04); }

/* ── Rechtlicher Hinweis (Warn-Box) ──────────── */
.yk-disclaimer {
    background: rgba(255, 159, 10, 0.08);
    border: 1px solid rgba(255, 159, 10, 0.28);
    border-radius: 14px;
    padding: 1rem 1.15rem;
    margin-bottom: 1rem;
}
.yk-disclaimer-head {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #ff9f0a;
    margin-bottom: 0.5rem;
}
.yk-disclaimer-head svg { width: 20px; height: 20px; flex-shrink: 0; }
.yk-disclaimer-head strong {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}
.yk-disclaimer p {
    color: var(--text-secondary, #a1a1a6);
    font-size: 0.86rem;
    line-height: 1.55;
}
[data-theme="light"] .yk-disclaimer { background: rgba(255, 149, 0, 0.09); }

/* ── Pflicht-Bestätigung (Checkbox) ──────────── */
.yk-ack {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    padding: 0.85rem 0.25rem 1.4rem;
    cursor: pointer;
    user-select: none;
}
.yk-ack input { position: absolute; opacity: 0; width: 0; height: 0; }
.yk-ack-box {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    margin-top: 1px;
    border: 1.5px solid var(--border);
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.04);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.yk-ack-box svg {
    width: 15px;
    height: 15px;
    opacity: 0;
    transform: scale(0.4);
    transition: opacity 0.2s ease, transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.yk-ack input:checked + .yk-ack-box {
    background: linear-gradient(135deg, #2997ff, #bf5af2);
    border-color: transparent;
    box-shadow: 0 4px 14px rgba(41, 151, 255, 0.35);
}
.yk-ack input:checked + .yk-ack-box svg { opacity: 1; transform: scale(1); }
.yk-ack input:focus-visible + .yk-ack-box {
    box-shadow: 0 0 0 3px rgba(41, 151, 255, 0.28);
}
.yk-ack-text {
    color: var(--text-secondary, #a1a1a6);
    font-size: 0.85rem;
    line-height: 1.5;
}
[data-theme="light"] .yk-ack-box { background: rgba(0, 0, 0, 0.03); }

/* ── DRM-Hinweis unter dem Button ────────────── */
.yk-drm-note {
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 1.1rem;
    opacity: 0.85;
}

/* ── Ergebnis-Meta (Format · Größe) ──────────── */
.yk-meta {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.55rem 1.1rem;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}
[data-theme="light"] .yk-meta { background: rgba(0, 0, 0, 0.025); }
.yk-meta-item { color: var(--text); font-weight: 700; }
.yk-meta-item:first-child { color: var(--primary); text-transform: uppercase; letter-spacing: 0.5px; }
.yk-meta-dot { color: var(--text-muted); }

/* ── Einmal-Link-Hinweis ─────────────────────── */
.yk-once-note {
    font-size: 0.83rem;
    color: var(--text-secondary, #a1a1a6);
    background: rgba(255, 214, 10, 0.07);
    border: 1px solid rgba(255, 214, 10, 0.2);
    border-radius: 10px;
    padding: 0.55rem 0.9rem;
    margin: 1.25rem auto 0;
    max-width: 440px;
    line-height: 1.45;
}
.yk-once-note.spent {
    background: rgba(255, 69, 58, 0.08);
    border-color: rgba(255, 69, 58, 0.24);
    color: #ff6b60;
}

/* ── Plattform-Chips ─────────────────────────── */
.yk-supported { margin-top: 4rem; }
.yk-supported h2 {
    text-align: center;
    font-family: var(--font-heading);
    font-size: clamp(1.7rem, 4vw, 2.4rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text);
    margin-bottom: 0.5rem;
}
.yk-supported .cv-sub { margin-bottom: 2.2rem; }
.yk-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    justify-content: center;
    max-width: 720px;
    margin: 0 auto;
}
/* Plattform-Chips kommen als Welle herein (Motion.reveal staffelt nach
   Position). Die Feder gibt der Welle den Schwung. */
.yk-chip.reveal {
    transform: translateY(26px) scale(0.94);
    transition: opacity 0.5s cubic-bezier(0.34, 1.56, 0.64, 1),
                transform 0.55s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.yk-chip.reveal.visible { transform: none; }

.yk-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.6rem 1.1rem;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    color: var(--text);
    font-size: 0.9rem;
    font-weight: 600;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                border-color 0.35s ease, background 0.35s ease, box-shadow 0.35s ease,
                opacity 1s cubic-bezier(0.16, 1, 0.3, 1);
    transition-delay: calc(var(--i, 0) * 45ms);
}
[data-theme="light"] .yk-chip { background: rgba(0, 0, 0, 0.03); }
@media (hover: hover) and (pointer: fine) {
    .yk-chip:hover {
        transform: translateY(-3px);
        border-color: rgba(41, 151, 255, 0.4);
        background: rgba(41, 151, 255, 0.08);
        box-shadow: 0 10px 26px rgba(41, 151, 255, 0.14);
    }
}
.yk-chip-more {
    color: var(--text-muted);
    font-style: italic;
    font-weight: 500;
}

/* ── Responsive ──────────────────────────────── */
@media (max-width: 640px) {
    .yk-mode { flex-direction: column; }
    .yk-mode-btn { justify-content: center; }
    .yk-url { font-size: 0.95rem; padding-left: 2.8rem; padding-right: 2.8rem; }
}

/* ── Reduced motion ──────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    .yk-brand-icon { animation: none !important; }
    .yk-mode-btn,
    .yk-chip,
    .yk-ack-box,
    .yk-ack-box svg,
    .yk-clear,
    .yk-input-icon { transition: none !important; }
    .yk-chip:hover,
    .yk-mode-btn:hover { transform: none; }
}
