/* ==========================================================================
   1. CORE STYLES & VARIABLES
   ========================================================================== */
:root {
    --win-bg: #181818;
    --win-bg-secondary: #242424;
    --win-border: rgba(255, 255, 255, 0.08);
    --win-accent: #DFB135;
    --win-accent-hover: #F2C44D;
    --win-accent-active: #B88E20;
    --text-main: #EAEAEA;
    --text-muted: #8E8E8E;
    --text-dark: #121212;
    --success: #6CCB5F;
    --danger: #FF4D4D;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', system-ui, sans-serif;
    user-select: none;
    -webkit-user-select: none;
    -webkit-user-drag: none;
    cursor: default;
}

body {
    background: var(--win-bg);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow-x: hidden;
    padding: 20px;
}

.ambient-glow {
    position: absolute;
    width: 40vw;
    height: 40vw;
    background: var(--win-accent);
    filter: blur(150px);
    opacity: .04;
    pointer-events: none;
    z-index: 0;
}

.container {
    position: relative;
    z-index: 10;
    max-width: 1050px;
    width: 100%;
}

/* ==========================================================================
   2. HEADER SEKTION
   ========================================================================== */
.header-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 25px;
    margin-bottom: 40px;
}

.logo {
    width: 120px;
    height: 120px;
    border-radius: 32px;
    border: 2px solid var(--win-accent);
    box-shadow: 0 0 30px rgb(223 177 53 / .15);
    flex-shrink: 0;
}

.header-text {
    text-align: left;
}

h1 {
    font-size: 3rem;
    color: var(--win-accent);
    font-weight: 800;
    margin-bottom: 5px;
    letter-spacing: -1px;
    line-height: 1;
}

.subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* ==========================================================================
   3. GRID & CARDS
   ========================================================================== */
.main-grid {
    display: flex;
    gap: 30px;
    align-items: stretch;
}

.main-column {
    flex: 1.6;
}

.notes-column {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.glass-card {
    background: rgb(36 36 36 / .6);
    backdrop-filter: blur(20px);
    border: 1px solid var(--win-border);
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 20px 50px rgb(0 0 0 / .5);
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

/* ==========================================================================
   4. FEATURES & BUTTONS
   ========================================================================== */
.secure-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--success);
    font-size: .8rem;
    background: rgb(108 203 95 / .1);
    padding: 6px 12px;
    border-radius: 20px;
    margin-bottom: 25px;
    border: 1px solid rgb(108 203 95 / .2);
    animation: pulse-success 2.5s infinite;
}

@keyframes pulse-success {
    0% {
        box-shadow: 0 0 0 0 rgb(108 203 95 / .3)
    }

    70% {
        box-shadow: 0 0 0 8px #fff0
    }

    100% {
        box-shadow: 0 0 0 0 #fff0
    }
}

.features {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 40px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 12px;
    border-radius: 10px;
    border: 1px solid transparent;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.feature-item:hover {
    background: rgb(255 255 255 / .03);
    border-color: var(--win-border);
    transform: translateX(8px);
}

.feature-icon {
    color: var(--win-accent);
    font-weight: 700;
    font-size: 1.2rem;
}

.feature-text h3 {
    font-size: 1.05rem;
    color: var(--text-main);
    margin-bottom: 4px;
}

.feature-text p {
    font-size: .9rem;
    color: var(--text-muted);
}

.btn-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 18px;
    background: var(--win-accent);
    border: none;
    border-radius: 10px;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-dark);
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
}

.btn-primary:hover {
    background: var(--win-accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgb(223 177 53 / .2);
}

/* ==========================================================================
   5. RELEASE NOTES
   ========================================================================== */
.release-notes-title {
    color: var(--text-main);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.release-notes-container {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--win-border);
    border-radius: 8px;
    padding: 18px;
    flex-grow: 1;
    max-height: 400px;
    overflow-y: auto;
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.6;
    transition: border-color 0.3s ease;
}

.release-notes-container:hover {
    border-color: rgba(223, 177, 53, 0.2);
}

.version-highlight {
    color: var(--win-accent);
    display: block;
    margin-top: 15px;
    margin-bottom: 2px;
    font-size: 0.95rem;
}

.version-highlight:first-child {
    margin-top: 0;
}

/* ==========================================================================
   6. HASH & CODE BLOCKS (COPY-CONTAINER)
   ========================================================================== */
.hash-container,
.code-block-wrapper {
    margin-top: 20px;
    padding: 12px 15px;
    background: rgb(0 0 0 / .2);
    border: 1px solid var(--win-border);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.code-block-wrapper {
    margin-top: 10px;
    background: rgb(0 0 0 / .3);
}

.hash-container:hover,
.code-block-wrapper:hover {
    background: rgb(0 0 0 / .4);
    border-color: rgba(223, 177, 53, 0.3);
    box-shadow: 0 0 15px rgba(223, 177, 53, 0.05);
}

.hash-content,
.code-block {
    text-align: left;
    font-family: monospace;
    font-size: .8rem;
    color: var(--text-muted);
    overflow-x: auto;
}

.code-block {
    color: var(--win-accent);
    white-space: nowrap;
    flex-grow: 1;
}

.copy-btn {
    background: transparent;
    border: none;
    color: var(--win-accent);
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    transition: all 0.2s;
    flex-shrink: 0;
}

.copy-btn:hover {
    color: var(--win-accent-hover);
    transform: scale(1.1);
}

.copy-btn.success {
    color: var(--success) !important;
}

/* ==========================================================================
   7. FAQ SEKTION
   ========================================================================== */
.faq-section {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background: rgb(36 36 36 / .4);
    border: 1px solid var(--win-border);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.4s ease;
}

.faq-item:hover {
    background: rgb(36 36 36 / .6);
    border-color: rgba(223, 177, 53, 0.2);
}

.faq-question {
    width: 100%;
    padding: 18px 25px;
    background: transparent;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-main);
    font-weight: 600;
    cursor: pointer;
}

.faq-icon {
    transition: transform 0.3s ease;
    color: var(--win-accent);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0 25px;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding-bottom: 20px;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-sub-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-main);
    margin: 15px 0 5px 0;
}

.faq-hint {
    margin-top: 10px;
    font-size: 0.8rem;
    font-style: italic;
}

/* ==========================================================================
   SCROLLBAR OPTIMIERUNG (FINALE VERSION)
   ========================================================================== */

/* 1. Grundmaße */
.release-notes-container::-webkit-scrollbar,
.code-block::-webkit-scrollbar {
    width: 6px;
    /* Etwas breiter für bessere Bedienbarkeit */
    height: 5px;
    /* Für horizontale Scrollbars */
}

/* 2. Track (Hintergrund der Scrollbar) - Immer unsichtbar */
.release-notes-container::-webkit-scrollbar-track,
.code-block::-webkit-scrollbar-track {
    background: transparent;
}

/* 3. Der Daumen (Scroll-Griff) - Grundzustand */
.release-notes-container::-webkit-scrollbar-thumb,
.code-block::-webkit-scrollbar-thumb {
    /* Wir nutzen eine halbtransparente Farbe, die auf dem Hintergrund "schmilzt" */
    background-color: rgba(255, 255, 255, 0.03);
    border-radius: 20px;
    /* Ein unsichtbarer Rand verkleinert den Daumen optisch und macht ihn "eleganter" */
    border: 2px solid transparent;
    background-clip: content-box;
}

/* 4. Hover über die gesamte Box: Die Scrollbar wird dezent sichtbar */
.release-notes-container:hover::-webkit-scrollbar-thumb,
.code-block-wrapper:hover .code-block::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.12);
}

/* 5. Hover direkt auf die Scrollbar: Sie wird zum Teil des Designs (Gold) */
.release-notes-container::-webkit-scrollbar-thumb:hover,
.code-block::-webkit-scrollbar-thumb:hover {
    background-color: var(--win-accent) !important;
    /* Ein leichter Glow-Effekt beim Anfassen */
    box-shadow: 0 0 8px rgba(223, 177, 53, 0.2);
}

/* 6. Fix für Firefox (da dieser Webkit-Regeln ignoriert) */
.release-notes-container,
.code-block {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.1) transparent;
}

/* ==========================================================================
   9. TOOLTIPS & FOOTER
   ========================================================================== */
[data-tooltip] {
    position: relative;
}

[data-tooltip]::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    opacity: 0;
    pointer-events: none;
    transition: all 0.2s ease;
    background: #333;
    color: #fff;
    padding: 6px 12px;
    font-size: 0.75rem;
    border-radius: 4px;
    white-space: nowrap;
    margin-bottom: 10px;
    z-index: 100;
}

[data-tooltip]:hover::before {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.footer {
    margin-top: 40px;
    color: var(--text-muted);
    font-size: .8rem;
    display: flex;
    justify-content: space-between;
    width: 100%;
    border-top: 1px solid var(--win-border);
    padding-top: 20px
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .main-grid {
        flex-direction: column;
    }

    .header-row {
        flex-direction: column;
        text-align: center;
    }

    .header-text {
        text-align: center;
    }

    .footer {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}