/* donn1eh bio - alle werte kommen aus config.js (css variablen) */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --text: #ececef;
    --muted: #8f8f96;
    --accent: #ffffff;
    --font: 'Segoe UI', sans-serif;
    --mono: 'Cascadia Code', 'Consolas', monospace;
    --card-bg: rgba(8, 8, 10, 0.55);
    --card-radius: 22px;
    --card-blur: 16px;
    --card-border: rgba(255, 255, 255, 0.06);
}

html, body {
    height: 100%;
    background: #000;
    font-family: var(--font);
    color: var(--text);
    overflow: hidden;
}

.hidden {
    display: none !important;
}

/* ---------- background ---------- */
#bg {
    position: fixed;
    inset: -40px;
    background-image: var(--bg-image);
    background-size: cover;
    background-position: var(--bg-position, right center);
    filter: blur(var(--bg-blur, 10px)) brightness(var(--bg-brightness, 0.45)) grayscale(var(--bg-grayscale, 1));
    transform: scale(var(--bg-zoom, 1.15));
    z-index: 0;
}

#bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 30% 50%, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.78) 78%);
    opacity: var(--bg-overlay, 1);
}

#particles {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

/* ---------- click to enter ---------- */
#enter {
    position: fixed;
    inset: 0;
    z-index: 100;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: opacity 0.8s ease;
}

#enter.leaving {
    opacity: 0;
    pointer-events: none;
}

#enter-text {
    font-family: var(--mono);
    font-size: 15px;
    letter-spacing: 4px;
    color: var(--muted);
    animation: enterPulse 2.4s ease-in-out infinite;
}

@keyframes enterPulse {
    0%, 100% { opacity: 0.35; }
    50% { opacity: 1; }
}

/* ---------- volume ---------- */
#volume {
    position: fixed;
    top: 24px;
    left: 24px;
    z-index: 50;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border-radius: 14px;
    background: rgba(10, 10, 12, 0.5);
    border: 1px solid var(--card-border);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

#vol-btn {
    background: none;
    border: none;
    color: var(--text);
    width: 26px;
    height: 26px;
    cursor: pointer;
    opacity: 0.85;
    transition: opacity 0.15s;
}

#vol-btn:hover { opacity: 1; }
#vol-btn svg { width: 100%; height: 100%; }

#vol-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 0;
    opacity: 0;
    height: 4px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.18);
    outline: none;
    transition: width 0.25s ease, opacity 0.25s ease;
    cursor: pointer;
}

#volume:hover #vol-slider {
    width: 110px;
    opacity: 1;
}

#vol-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: var(--accent);
    cursor: pointer;
}

#vol-slider::-moz-range-thumb {
    width: 13px;
    height: 13px;
    border: none;
    border-radius: 50%;
    background: var(--accent);
    cursor: pointer;
}

/* ---------- layout ---------- */
#page {
    position: relative;
    z-index: 10;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 1.2s ease;
}

#page.visible { opacity: 1; }

#watermark {
    font-family: var(--mono);
    font-size: 44px;
    font-weight: 600;
    letter-spacing: 6px;
    color: rgba(255, 255, 255, 0.16);
    margin-bottom: 18px;
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.08);
}

/* ---------- card ---------- */
#card {
    width: min(520px, calc(100vw - 40px));
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--card-radius);
    backdrop-filter: blur(var(--card-blur));
    -webkit-backdrop-filter: blur(var(--card-blur));
    padding: 26px 28px 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transform-style: preserve-3d;
    will-change: transform;
}

#profile {
    display: flex;
    align-items: center;
    gap: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 16px;
    padding: 14px 16px;
}

#avatar-wrap {
    position: relative;
    flex-shrink: 0;
}

#avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.1);
    display: block;
}

#status-dot {
    position: absolute;
    right: 1px;
    bottom: 1px;
    width: 17px;
    height: 17px;
    border-radius: 50%;
    background: #747f8d;
    border: 3.5px solid rgba(12, 12, 14, 0.9);
}

#name-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

#name {
    font-size: 21px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

#name.mono { font-family: var(--mono); }

#badges {
    display: flex;
    gap: 6px;
    align-items: center;
}

#badges .badge {
    font-size: 13px;
    padding: 2px 8px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.07);
    color: var(--muted);
    font-weight: 600;
}

#badges .badge.emoji {
    background: none;
    border: none;
    padding: 0;
    font-size: 17px;
}

#bio {
    margin-top: 5px;
    font-size: 14px;
    color: var(--muted);
}

#activity {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-top: 7px;
    font-size: 12.5px;
    color: var(--muted);
}

#activity-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #43b581;
    flex-shrink: 0;
    animation: actPulse 2s ease-in-out infinite;
}

@keyframes actPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.35; }
}

/* ---------- links ---------- */
#links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
    padding: 22px 0 10px;
}

#links a {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: var(--text);
    text-decoration: none;
    transition: transform 0.18s ease, background 0.18s ease;
    position: relative;
}

#links a:hover {
    transform: translateY(-4px) scale(1.06);
    background: rgba(255, 255, 255, 0.1);
}

#links a svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

#links a .letter-icon {
    font-family: var(--mono);
    font-size: 20px;
    font-weight: 700;
    line-height: 1;
}

/* eigenes bild-icon (server-logo) fuellt die kachel */
#links a .img-icon {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 13px;
    display: block;
}

#links a .tooltip {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: rgba(10, 10, 12, 0.92);
    border: 1px solid var(--card-border);
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s;
}

#links a:hover .tooltip { opacity: 1; }

/* ---------- footer ---------- */
#card-footer {
    display: flex;
    align-items: center;
    min-height: 22px;
}

#views {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--muted);
}

#views svg {
    width: 16px;
    height: 16px;
}

/* ---------- contact button ---------- */
#contact-btn {
    position: fixed;
    bottom: 24px;
    left: 24px;
    z-index: 50;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: rgba(10, 10, 12, 0.5);
    border: 1px solid var(--card-border);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--text);
    cursor: pointer;
    opacity: 0.65;
    transition: opacity 0.18s ease, transform 0.18s ease;
}

#contact-btn:hover {
    opacity: 1;
    transform: translateY(-3px);
}

#contact-btn svg {
    width: 20px;
    height: 20px;
}

/* ---------- status key (unten rechts) ---------- */
#status-key {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 50;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: rgba(10, 10, 12, 0.5);
    border: 1px solid var(--card-border);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--text);
    text-decoration: none;
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.18s ease, transform 0.18s ease;
}

#status-key:hover {
    opacity: 1;
    transform: translateY(-3px);
}

#status-key svg {
    width: 20px;
    height: 20px;
}

#status-key .tooltip {
    position: absolute;
    bottom: calc(100% + 8px);
    right: 0;
    background: rgba(10, 10, 12, 0.92);
    border: 1px solid var(--card-border);
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s;
}

#status-key:hover .tooltip { opacity: 1; }

/* ---------- contact modal ---------- */
#contact-modal {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

#contact-modal.open {
    opacity: 1;
    pointer-events: auto;
}

#contact-box {
    width: min(380px, 100%);
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--card-radius);
    backdrop-filter: blur(var(--card-blur));
    -webkit-backdrop-filter: blur(var(--card-blur));
    padding: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transform: translateY(10px) scale(0.98);
    transition: transform 0.25s ease;
}

#contact-modal.open #contact-box {
    transform: none;
}

#contact-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

#contact-title {
    font-family: var(--mono);
    font-size: 15px;
    letter-spacing: 1px;
}

#contact-close {
    background: none;
    border: none;
    color: var(--muted);
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    padding: 0 2px;
    transition: color 0.15s;
}

#contact-close:hover { color: var(--text); }

#contact-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

#contact-form input,
#contact-form textarea {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 10px 12px;
    color: var(--text);
    font-family: var(--font);
    font-size: 14px;
    outline: none;
    resize: none;
    transition: border-color 0.15s;
}

#contact-form input:focus,
#contact-form textarea:focus {
    border-color: rgba(255, 255, 255, 0.25);
}

#contact-form input::placeholder,
#contact-form textarea::placeholder {
    color: var(--muted);
}

/* honeypot komplett aus dem blickfeld */
#contact-hp {
    position: absolute !important;
    left: -9999px !important;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

#contact-send {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 11px;
    color: var(--text);
    font-family: var(--font);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
}

#contact-send:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.16);
}

#contact-send:disabled {
    opacity: 0.5;
    cursor: default;
}

#contact-status {
    font-size: 12.5px;
    color: var(--muted);
    min-height: 16px;
    text-align: center;
}

#contact-status.ok { color: #43b581; }
#contact-status.err { color: #f04747; }

/* ---------- mobile ---------- */
@media (max-width: 520px) {
    #watermark { font-size: 30px; }
    #avatar { width: 60px; height: 60px; }
    #name { font-size: 18px; }
    #contact-btn { bottom: 16px; left: 16px; }
    #status-key { bottom: 16px; right: 16px; }
}
