/* =========================================
   1. GLOBALNE I UKAD (LAYOUT)
   ========================================= */

:root {
    --nav-height: 64px;
}

.page {
    background-color: #f0f0f0;
    min-height: 100vh;
    /* NavMenu (glass): --nav-height 64px; stary pasek by? 56px  wyrwnanie pod aktualny pasek */
    padding-top: var(--nav-height, 64px);
}

/* Ukrycie domylnych elementw Blazora */
.sidebar, .top-row {
    display: none;
}

.main-content-area {
    width: 100%;
}

.app-content-wrapper {
    max-width: 1440px; /* Limit dla Ultrawide */
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}

.content {
    width: 100%;
    margin-top: 1rem;
}

/* =========================================
   2. GRNY PASEK NAWIGACYJNY (NAVBAR)
   ========================================= */

.top-navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background-color: #303030;
    border-bottom: 2px solid #a0a0a0;
}

.custom-top-nav {
    height: 56px;
    padding: 0 1rem;
    position: relative;
}

/* Logo desilve */
.navbar-brand-desilve-static {
    color: #FFF;
    font-size: 1.5rem;
    font-weight: 700;
    padding-right: 1.5rem;
    cursor: default;
    text-shadow: 1px 1px 2px #FFD700, -1px -1px 2px #FFD700;
}

/* Kontener i Napis Event Horizon */
.event-horizon-container {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.event-horizon-title {
    color: #FFF;
    font-size: 1.8rem;
    font-weight: 900;
    text-transform: uppercase;
    text-decoration: none !important;
    cursor: pointer;
    text-shadow: 0 0 5px #FFD700, 0 0 10px #FFD700, 0 0 15px #FFD700, 0 0 20px #000;
}

/* Elementy menu po prawej */
.navbar-nav {
    display: flex;
    align-items: center;
    height: 100%;
    list-style: none;
    margin-bottom: 0 !important;
}

.custom-top-nav .nav-link,
.custom-top-nav .logout-button {
    color: #c0c0c0 !important;
    font-weight: 600;
    padding: 0.5rem 0.8rem !important;
    transition: all 0.3s;
    background: none;
    border: none;
    height: 100%;
    display: flex;
    align-items: center;
}

    .custom-top-nav .nav-link:hover,
    .custom-top-nav .logout-button:hover {
        color: #FFD700 !important;
        text-shadow: 0 0 5px #FFD700;
    }

/* =========================================
   3. STRONA GWNA (HOME PAGE)
   ========================================= */

.home-wrapper {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    padding-bottom: 5rem;
}

.main-message-container {
    height: 40vh; /* Zmniejszone, by reszta treci bya widoczna */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    width: 80%;
    margin: 0 auto;
}

.event-horizon-title-main {
    font-size: 3rem;
    font-weight: 900;
    color: #303030 !important;
    text-shadow: 0 0 2px #FFD700, 0 0 5px #FFD700;
}

.sub-message {
    font-size: 1.5rem;
    color: #505050 !important;
}

.status-badge {
    display: inline-block;
    padding: 5px 15px;
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid #FFD700;
    color: #FFD700;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
}

/* Karty informacyjne i o czasu */
.info-card {
    background: #252525;
    border: 1px solid #a0a0a0;
    padding: 2rem;
    border-radius: 12px;
    color: #f0f0f0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

    .info-card h3, .gold-text {
        color: #FFD700;
    }

.section-title {
    text-align: center;
    color: #303030;
    font-weight: 800;
    margin-bottom: 2rem;
}

.timeline {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.timeline-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.5);
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid #a0a0a0;
}

.version-tag {
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 900;
    min-width: 70px;
    text-align: center;
}

.gold-bg {
    background: #FFD700;
    color: #000;
}

.silver-bg {
    background: #a0a0a0;
    color: #000;
}

/* =========================================
   4. LOGOWANIE I REJESTRACJA (IDENTITY)
   ========================================= */

.main-content-area .content .row {
    display: flex;
    justify-content: center;
}

.col-md-6.col-lg-5 {
    max-width: 450px;
    padding: 2rem;
    background-color: #252525;
    border: 1px solid #505050;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

    .col-md-6.col-lg-5 h1 {
        color: #f0f0f0 !important;
        text-align: center;
        font-size: 2rem;
    }

.form-control, .form-floating input {
    background-color: #353535;
    color: #f0f0f0 !important;
    border: 1px solid #505050;
}

    .form-control:focus {
        border-color: #FFD700;
        box-shadow: 0 0 0 0.25rem rgba(255, 215, 0, 0.25);
    }

.btn-primary {
    background-color: #FFD700;
    border-color: #CCAA00;
    color: #000;
    font-weight: 700;
    width: 100%;
}

    .btn-primary:hover {
        background-color: #FFE54C;
        color: #000;
    }

.text-danger {
    color: #E66767 !important;
}

/* =========================================
   5. RESPONSYWNO (MEDIA QUERIES)
   ========================================= */

@media (max-width: 767.98px) {
    .event-horizon-container {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        top: 50%;
        z-index: 5;
    }

    .event-horizon-title {
        font-size: 0.85rem !important;
    }

    .navbar-brand-desilve-static {
        font-size: 1rem !important;
    }

    .event-horizon-title-main {
        font-size: 1.6rem !important;
    }

    .sub-message {
        font-size: 1rem !important;
    }

    .main-message-container {
        height: auto;
        margin-top: 2rem;
    }

    .home-wrapper {
        gap: 1.5rem;
    }

    .timeline-item {
        flex-direction: column;
    }

    .col-md-6.col-lg-5 {
        width: 95% !important;
    }
}
/* Stylizacja Nagwkw Er */
.era-title {
    font-size: 1.2rem;
    font-weight: 800;
    text-transform: uppercase;
    margin: 2rem 0 1rem 0;
    letter-spacing: 2px;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    padding-bottom: 5px;
}

.silver-text {
    color: #808080;
}

/* Stylizacja Sekcji Resetu */
.timeline-reset {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: #000;
    color: #FFD700;
    padding: 1.5rem;
    border-radius: 12px;
    margin: 2rem 0;
    border: 2px dashed #FFD700;
}

.reset-icon {
    font-size: 2rem;
    animation: spin 4s linear infinite;
}

@keyframes spin {
    100% {
        transform: rotate(-360deg);
    }
}

.reset-text strong {
    font-size: 1.1rem;
    display: block;
}

.reset-text p {
    margin: 5px 0 0 0;
    font-size: 0.9rem;
    color: #f0f0f0;
}

/* Przyciemnienie starych wersji */
.timeline-item.legacy {
    opacity: 0.7;
    background: rgba(200, 200, 200, 0.3);
}
/* --- POPRAWKA KONTRASTU DLA PROFILU I FORMULARZY --- */

/* To dla samej karty profilu, eby pasowaa do logowania */
.manage-card {
    background-color: #252525;
    padding: 2rem;
    border: 1px solid #505050;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
    color: #f0f0f0;
}

/* Styl dla nagwka na stronie profilu */
h3 {
    color: #303030; /* Ciemny napis na jasnym tle strony */
    font-weight: 800;
    margin-bottom: 1.5rem;
}

/* Gwny tekst wewntrz pl wpisywania (Input) */
.manage-card .form-control {
    background-color: #353535 !important;
    color: #ffffff !important; /* Czysta biel dla maksymalnego kontrastu */
    border: 1px solid #606060;
}

/* Kolor etykiety (Label), gdy pole jest puste */
.manage-card .form-floating > label {
    color: #a0a0a0 !important;
}

/* Kolor etykiety, gdy klikniemy w pole (pomniejszona etykieta u gry) */
.manage-card .form-floating > .form-control:focus ~ label,
.manage-card .form-floating > .form-control:not(:placeholder-shown) ~ label {
    color: #FFD700 !important; /* Zoty kolor etykiety po klikniciu */
    opacity: 1;
}

/* Styl dla pola zablokowanego (Username) */
.manage-card .form-control:disabled {
    background-color: #1a1a1a !important;
    color: #888888 !important;
    border-color: #333333;
}

/* Blask przy aktywnym polu */
.manage-card .form-control:focus {
    border-color: #FFD700 !important;
    box-shadow: 0 0 8px rgba(255, 215, 0, 0.4) !important;
}

/* =========================================
   DeSilve  panel konta (ManageLayout)
   Wizualnie spjne z Login (bloby, szum, szk?o)
   ========================================= */

.ds-account-shell {
    position: relative;
    min-height: calc(100vh - 120px);
    margin: -1rem -1.5rem;
    padding: 1.25rem 1rem 2.5rem;
}

@media (min-width: 992px) {
    .ds-account-shell {
        margin: -1rem -2rem;
        padding: 1.5rem 1.5rem 3rem;
    }
}

.ds-account-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #0a0a0a 100%);
    overflow: hidden;
    pointer-events: none;
}

    .ds-account-bg::before {
        content: '';
        position: absolute;
        inset: 0;
        background: rgba(0, 0, 0, 0.35);
        z-index: 1;
    }

.ds-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.32;
    will-change: transform;
}

.ds-blob-1 {
    width: 500px;
    height: 500px;
    top: -10%;
    left: -10%;
    background: radial-gradient(circle, #6c63ff, transparent 70%);
    animation: dsBlob1 18s ease-in-out infinite alternate;
}

.ds-blob-2 {
    width: 400px;
    height: 400px;
    top: 60%;
    right: -5%;
    background: radial-gradient(circle, #00d4ff, transparent 70%);
    animation: dsBlob2 22s ease-in-out infinite alternate;
}

.ds-blob-3 {
    width: 350px;
    height: 350px;
    bottom: -10%;
    left: 30%;
    background: radial-gradient(circle, #ff6bb5, transparent 70%);
    animation: dsBlob3 20s ease-in-out infinite alternate;
}

.ds-blob-4 {
    width: 300px;
    height: 300px;
    top: 20%;
    right: 25%;
    background: radial-gradient(circle, #00ffaa, transparent 70%);
    animation: dsBlob4 24s ease-in-out infinite alternate;
}

@keyframes dsBlob1 {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(60px, 40px) scale(1.15); }
}

@keyframes dsBlob2 {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(-50px, -60px) scale(1.1); }
}

@keyframes dsBlob3 {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(40px, -30px) scale(1.2); }
}

@keyframes dsBlob4 {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(-30px, 50px) scale(1.05); }
}

.ds-account-noise {
    position: fixed;
    inset: 0;
    z-index: 0;
    opacity: 0.04;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='256' height='256'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.ds-account-wrap {
    position: relative;
    z-index: 1;
    max-width: 1180px;
    margin: 0 auto;
}

.ds-account-shell .author-container {
    color: rgba(255, 255, 255, 0.92);
}

.ds-account-shell h1.dl-name-animate {
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    font-weight: 800;
    letter-spacing: 0.04em;
    margin: 0;
    background: linear-gradient(135deg, #6c63ff, #00d4ff, #ff6bb5, #6c63ff);
    background-size: 280% 280%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: dsAccountTitleShift 8s ease-in-out infinite;
}

@keyframes dsAccountTitleShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.ds-account-shell .dl-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.45rem 1rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.88);
    background: rgba(10, 10, 30, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.ds-account-shell .info-card {
    backdrop-filter: blur(16px) saturate(160%);
    -webkit-backdrop-filter: blur(16px) saturate(160%);
    background: rgba(10, 10, 30, 0.72) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 20px !important;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35) !important;
    color: rgba(245, 245, 255, 0.95) !important;
}

.ds-account-shell .info-card h3,
.ds-account-shell .gold-text {
    color: #ffcc00 !important;
}

.ds-account-shell h3 {
    color: rgba(255, 255, 255, 0.95) !important;
}

.ds-sync-widget {
    border-radius: 16px !important;
    padding: 1rem 1.25rem !important;
    background: rgba(108, 99, 255, 0.12) !important;
    border: 1px solid rgba(108, 99, 255, 0.35) !important;
    color: rgba(255, 255, 255, 0.92) !important;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.25);
}

    .ds-sync-widget small {
        color: rgba(255, 255, 255, 0.65) !important;
        letter-spacing: 0.1em;
    }

    .ds-sync-widget .text-dark {
        color: rgba(255, 255, 255, 0.95) !important;
    }

/*  Lewe menu (ManageNavMenu)  */

.ds-manage-nav {
    border-radius: 20px;
    overflow: hidden;
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    background: rgba(10, 10, 30, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow: 0 10px 36px rgba(0, 0, 0, 0.35);
}

.ds-manage-nav-head {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 1.1rem 1.15rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: linear-gradient(135deg, rgba(108, 99, 255, 0.2), rgba(0, 212, 255, 0.12));
}

.ds-manage-nav-head-icon {
    font-size: 1.5rem;
    color: #8b84ff;
}

.ds-manage-nav-head-title {
    font-weight: 800;
    font-size: 0.95rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #fff;
}

.ds-manage-nav-head-sub {
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
    margin-top: 0.15rem;
}

.ds-manage-nav-list {
    padding: 0.35rem 0 0.5rem;
}

.ds-manage-nav-cat {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-weight: 800;
    color: rgba(255, 204, 0, 0.55);
    padding: 1rem 1.15rem 0.35rem;
}

.ds-manage-nav-cat-arch {
    color: rgba(255, 204, 0, 0.75);
}

.ds-manage-nav-cat-mech {
    color: rgba(0, 212, 255, 0.75);
}

.ds-manage-nav-sep {
    height: 1px;
    margin: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.08);
}

.ds-manage-nav-link {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.65rem 1.15rem;
    margin: 0 0.35rem;
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.78) !important;
    text-decoration: none !important;
    font-size: 0.92rem;
    font-weight: 500;
    border: none;
    width: calc(100% - 0.7rem);
    background: transparent;
    text-align: left;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

    .ds-manage-nav-link i {
        font-size: 1.1rem;
        opacity: 0.9;
        min-width: 1.35rem;
    }

    .ds-manage-nav-link:hover {
        background: rgba(255, 255, 255, 0.06);
        color: #fff !important;
        transform: translateX(2px);
    }

    .ds-manage-nav-link.active {
        background: rgba(255, 204, 0, 0.14) !important;
        color: #ffcc00 !important;
        font-weight: 600;
        box-shadow: inset 0 0 0 1px rgba(255, 204, 0, 0.25);
    }

.ds-manage-nav-link-admin:hover {
    background: rgba(255, 204, 0, 0.08) !important;
    color: #ffcc00 !important;
}

.ds-manage-nav-link-admin.active {
    background: rgba(255, 204, 0, 0.18) !important;
    box-shadow: inset 3px 0 0 #ffcc00;
}

.ds-manage-nav-logout-form {
    margin: 0;
    padding: 0 0.35rem 0.5rem;
    width: 100%;
}

.ds-manage-nav-logout {
    color: #f06666 !important;
    margin-top: 0.25rem;
}

    .ds-manage-nav-logout:hover {
        background: rgba(255, 68, 68, 0.12) !important;
        color: #ff9999 !important;
    }

/* Statystyki  karty w panelu */
.ds-stats-card {
    background: rgba(12, 12, 28, 0.85) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 16px !important;
    color: rgba(255, 255, 255, 0.92) !important;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

    .ds-stats-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 14px 36px rgba(0, 0, 0, 0.4);
    }

.ds-stats-card .ds-stats-label {
    color: rgba(255, 255, 255, 0.5) !important;
    font-size: 0.72rem;
    letter-spacing: 0.12em;
}

.ds-stats-card .ds-stats-count {
    color: #fff !important;
    font-size: 2.25rem;
    font-weight: 800;
}

.ds-stats-card .ds-stats-meta {
    color: rgba(255, 255, 255, 0.45) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
}

.ds-stats-icon {
    background: rgba(255, 255, 255, 0.08) !important;
    color: #ffcc00 !important;
}