/*####################################################
//       _  _ ___ ___ ___ _  ____   _____ ___       //
//      | \| |_ _/ __| __| |/ /\ \ / / _ \ __|      //
//      | .` || | (__| _|| ' <  \ V /|  _/ _|       //
//      |_|\_|___\___|___|_|\_\  |_| |_| |___|      //
//                                                  //
//  File: style.css                                 //
//  Author: NiceKype                                //
//  Copyright (c) 2026 NiceKype                     //
####################################################*/

@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@500;700;900&family=Rajdhani:wght@500;600;700&display=swap');

:root {
    --bg-color: #0c0d12;
    --bg-color-2: #101218;
    --card-bg: #14161f;
    --card-bg-soft: rgba(20, 22, 31, 0.78);

    --primary-color: #aa1010;
    --secondary-color: #ff0000;

    --text-color: #e0e6ed;
    --text-soft: rgba(224, 230, 237, 0.76);
    --text-muted: rgba(224, 230, 237, 0.52);
    --text-dim: #8899a6;

    --border-color: rgba(170, 16, 16, 0.18);
    --border-soft: rgba(255, 255, 255, 0.07);

    --scrollbar-bg: #08090d;
    --scrollbar-thumb: #aa1010;
    --scrollbar-hover: #d01414;

    --shadow-main: 0 20px 55px rgba(0, 0, 0, 0.38);
    --shadow-soft: 0 10px 32px rgba(0, 0, 0, 0.26);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    min-height: 100%;
    background: var(--bg-color);
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    color: var(--text-color);
    background:
        radial-gradient(circle at 8% 14%, rgba(170, 16, 16, 0.09) 0%, transparent 36%),
        radial-gradient(circle at 92% 82%, rgba(255, 0, 0, 0.045) 0%, transparent 34%),
        linear-gradient(180deg, #0c0d12 0%, #0a0c10 100%);
    font-family: 'Rajdhani', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

body.lightbox-open {
    overflow: hidden;
}

button,
a,
input {
    font: inherit;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--scrollbar-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--scrollbar-thumb);
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(170, 16, 16, 0.4);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--scrollbar-hover);
}

.page-shell {
    flex: 1 0 auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    padding: 24px 20px 54px;
}

/* Header */
.media-header {
    width: 100%;
    text-align: center;
    padding: 12px 0 18px;
}

.media-logo-link {
    display: inline-block;
    text-decoration: none;
}

.media-logo-link img {
    display: block;
    width: min(240px, 72vw);
    height: auto;
    margin: 0 auto;
    transition: 0.3s all;
}

.media-logo-link img:hover {
    transition: 0.3s all;
    transform: rotate(-6deg) scale(1.1);
    cursor: url('../img/cursor-pointer.png'), pointer;
}

.subtitle {
    margin-top: 5px;
    color: var(--primary-color);
    font-family: 'Orbitron', sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.subtitle i {
    margin-right: 5px;
}

/* Viewer */
.viewer-main {
    width: 100%;
    flex: 1;
    display: flex;
    align-items: center;
}

.viewer-container {
    width: min(1180px, 100%);
    margin: 18px auto;
}

.viewer-section {
    width: 100%;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.012)),
        var(--card-bg-soft);
    box-shadow: var(--shadow-main);
    backdrop-filter: blur(10px);
    transition: border-color 0.25s ease, transform 0.25s ease;
}

.viewer-section::before {
    content: '';
    position: absolute;
    width: 320px;
    height: 320px;
    top: -190px;
    right: -150px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(170, 16, 16, 0.16), transparent 70%);
    pointer-events: none;
}

.viewer-section:hover {
    border-color: rgba(170, 16, 16, 0.38);
}

.image-box {
    width: auto;
    max-width: 100%;
    max-height: 70vh;
    padding: 0;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    border: 1px solid rgba(170, 16, 16, 0.2);
    border-radius: 12px;
    background: #08090d;
    box-shadow: inset 0 0 18px rgba(0, 0, 0, 0.8);
    cursor: zoom-in;
    appearance: none;
}

.image-box img {
    display: block;
    max-width: 100%;
    max-height: 70vh;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform 0.22s ease, filter 0.22s ease;
}

.image-box:hover img {
    transform: scale(1.008);
    filter: brightness(1.02);
}

.meta-bar {
    width: 100%;
    margin-top: 16px;
    padding-top: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    border-top: 1px solid var(--border-soft);
    color: var(--text-dim);
}

.meta-details {
    min-width: 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 18px;
}

.meta-item {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.96rem;
}

.meta-item i {
    flex: 0 0 auto;
    color: var(--primary-color);
}

.meta-item span {
    min-width: 0;
}

.meta-item strong {
    color: var(--text-color);
    font-weight: 700;
    overflow-wrap: anywhere;
}

.meta-secondary {
    color: var(--text-muted);
}

.download-btn,
.primary-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 9px 16px;
    border: 1px solid rgba(170, 16, 16, 0.48);
    border-radius: 11px;
    background: linear-gradient(135deg, rgba(170, 16, 16, 0.22), rgba(100, 9, 9, 0.18));
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    white-space: nowrap;
    box-shadow: 0 10px 24px rgba(170, 16, 16, 0.12);
    transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.download-btn:hover,
.primary-btn:hover {
    color: #fff;
    transform: translateY(-2px);
    border-color: rgba(255, 0, 0, 0.56);
    background: linear-gradient(135deg, var(--primary-color), #640909);
    box-shadow: 0 13px 30px rgba(170, 16, 16, 0.24);
}

/* Lightbox */
.lightbox-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(5, 6, 9, 0.94);
    backdrop-filter: blur(12px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.22s ease, visibility 0.22s ease;
}

.lightbox-modal.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.lightbox-modal img {
    display: block;
    max-width: 95vw;
    max-height: 92vh;
    object-fit: contain;
    border: 1px solid rgba(170, 16, 16, 0.42);
    border-radius: 12px;
    background: #08090d;
    box-shadow: 0 0 45px rgba(170, 16, 16, 0.22);
}

.lightbox-close {
    position: absolute;
    top: 22px;
    right: 26px;
    z-index: 2;
    width: 46px;
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 13px;
    background: rgba(15, 17, 22, 0.82);
    color: #fff;
    font-size: 1.35rem;
    cursor: pointer;
    transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.lightbox-close:hover {
    transform: scale(1.04);
    background: rgba(170, 16, 16, 0.32);
    border-color: rgba(170, 16, 16, 0.46);
}

/* Landing Page */
.landing-main,
.error-main {
    width: 100%;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.landing-card,
.error-card {
    width: min(900px, 100%);
    margin: 20px auto;
    padding: 46px;
    position: relative;
    overflow: hidden;
    text-align: center;
    border: 1px solid var(--border-soft);
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.014));
    box-shadow: var(--shadow-main);
}

.landing-glow {
    position: absolute;
    width: 420px;
    height: 420px;
    top: -240px;
    right: -170px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(170, 16, 16, 0.25), transparent 68%);
    pointer-events: none;
}

.landing-icon {
    width: 74px;
    height: 74px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 21px;
    background: linear-gradient(135deg, var(--primary-color), #570707);
    color: #fff;
    font-size: 1.75rem;
    box-shadow: 0 14px 32px rgba(170, 16, 16, 0.22);
}

.landing-kicker {
    display: block;
    margin-bottom: 7px;
    color: var(--secondary-color);
    font-family: 'Orbitron', sans-serif;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.17em;
}

.landing-card h1,
.error-card h1 {
    margin: 0 0 13px;
    color: #fff;
    font-size: clamp(2.2rem, 6vw, 3.7rem);
    line-height: 1;
    font-weight: 700;
}

.landing-intro,
.error-card p {
    max-width: 700px;
    margin: 0 auto;
    color: var(--text-soft);
    font-size: 1.06rem;
    line-height: 1.7;
}

.landing-feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 30px;
    text-align: left;
}

.landing-feature {
    padding: 20px;
    display: flex;
    align-items: flex-start;
    gap: 13px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 17px;
    background: rgba(255, 255, 255, 0.025);
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.landing-feature:hover {
    transform: translateY(-3px);
    border-color: rgba(170, 16, 16, 0.24);
    background: rgba(255, 255, 255, 0.038);
}

.landing-feature > i {
    margin-top: 3px;
    color: var(--secondary-color);
    font-size: 1.15rem;
}

.landing-feature strong,
.landing-feature span {
    display: block;
}

.landing-feature strong {
    margin-bottom: 4px;
    color: #fff;
    font-size: 1.05rem;
}

.landing-feature span {
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.48;
}

.landing-card .primary-btn,
.error-card .primary-btn {
    margin-top: 28px;
}

/* Error */
.error-code {
    display: block;
    margin-bottom: 2px;
    color: var(--secondary-color);
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(4.5rem, 15vw, 8rem);
    font-weight: 900;
    line-height: 0.95;
    text-shadow: 0 0 32px rgba(170, 16, 16, 0.22);
}

/* Footer: nur der untere Bereich wie auf nicekype.de */
.nk-footer {
    flex: 0 0 auto;
    width: 100%;
    padding: 0 20px 26px;
    background: rgba(9, 11, 15, 0.82);
}

.nk-container {
    width: min(1316px, 100%);
    margin: 0 auto;
}

.nk-footer-bottom {
    min-height: 76px;
    padding-top: 22px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    flex-wrap: wrap;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    color: rgba(224, 230, 237, 0.56);
    font-size: 0.92rem;
}

.nk-footer-bottom a {
    color: inherit;
    text-decoration: none;
    transition: color 0.18s ease;
}

.nk-footer-bottom a:hover {
    color: #fff;
}

.nk-footer-bottom i {
    font-size: 0.9rem;
}

.nk-footer-bottom .fa-heart {
    transition: color 0.2s ease, transform 0.2s ease;
}

.nk-footer-bottom .fa-heart:hover {
    color: var(--primary-color);
    transform: scale(1.08);
}

@media (max-width: 800px) {
    .page-shell {
        padding: 18px 14px 38px;
    }

    .viewer-section {
        padding: 14px;
        border-radius: 16px;
    }

    .meta-bar {
        align-items: stretch;
        flex-direction: column;
    }

    .meta-details {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .download-btn {
        width: 100%;
    }

    .landing-card,
    .error-card {
        padding: 30px 20px;
        border-radius: 22px;
    }

    .landing-feature-grid {
        grid-template-columns: 1fr;
    }

    .nk-footer {
        padding-inline: 14px;
    }

    .nk-footer-bottom {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .media-header img {
        width: min(210px, 74vw);
        transition: 0.3s all;
    }

    .subtitle {
        font-size: 0.68rem;
    }

    .lightbox-modal {
        padding: 12px;
    }

    .lightbox-close {
        top: 12px;
        right: 12px;
        width: 42px;
        height: 42px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
