/* ============================================
   PATCH NOTES - BLOOD STREET RP
   Design cohérent avec le site principal
   ============================================ */

/* Container principal */
.patchnotes-container {
    display: flex;
    min-height: calc(100vh - 7vh - 60px); /* 100vh - header - footer */
    background-color: #0a0a0a;
    gap: 0;
}

/* ============================================
   SIDEBAR - Liste des versions
   ============================================ */
.versions-sidebar {
    width: 320px;
    min-width: 320px;
    background: linear-gradient(180deg, #101010 0%, #0a0a0a 100%);
    border-right: 2px solid #4E009B;
    overflow-y: auto;
    overflow-x: hidden;
    position: sticky;
    top: 0;
    height: calc(100vh - 7vh);
}

.sidebar-header {
    background: linear-gradient(135deg, #4E009B 0%, #6B00CC 100%);
    padding: 20px;
    text-align: center;
    border-bottom: 2px solid #6B00CC;
    position: sticky;
    top: 0;
    z-index: 10;
}

.sidebar-header h2 {
    margin: 0;
    color: #fff;
    font-family: 'Poppins', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.sidebar-header i {
    font-size: 1.2rem;
}

/* Liste des versions */
.versions-list {
    padding: 10px;
}

.version-item {
    background: #121212;
    border: 1px solid #2a2a2a;
    border-left: 3px solid #4E009B;
    border-radius: 8px;
    margin-bottom: 10px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.version-item::before {
    content: '';
    position: absolute;
    left: -100%;
    top: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(78, 0, 155, 0.1), transparent);
    transition: left 0.5s ease;
}

.version-item:hover::before {
    left: 100%;
}

.version-item:hover {
    border-color: #4E009B;
    background: #1a1a1a;
    transform: translateX(5px);
    box-shadow: 0 0 15px rgba(78, 0, 155, 0.3);
}

.version-item.active {
    background: linear-gradient(135deg, #1a0a2e 0%, #1a1a1a 100%);
    border-color: #6B00CC;
    border-left-width: 4px;
    box-shadow: 0 0 20px rgba(78, 0, 155, 0.5);
}

.version-number {
    font-family: 'Poppins', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.version-number .badge-new {
    background: linear-gradient(135deg, #B10000 0%, #ff0000 100%);
    color: #fff;
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 12px;
    font-weight: 600;
    text-transform: uppercase;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

.version-date {
    font-family: 'Roboto', sans-serif;
    font-size: 0.85rem;
    color: #888;
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 8px;
}

.version-author {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
}

.version-author img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid #4E009B;
}

.version-author-name {
    font-family: 'Roboto', sans-serif;
    font-size: 0.85rem;
    color: #bbb;
}

.version-author-role {
    font-size: 0.75rem;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: auto;
    font-weight: 600;
}

/* ============================================
   CONTENT - Affichage du patch note
   ============================================ */
.patchnote-content {
    flex: 1;
    padding: 40px;
    overflow-y: auto;
    background-color: #0a0a0a;
}

/* Header du patch note */
.patchnote-header {
    background: linear-gradient(135deg, #1a0a2e 0%, #121212 100%);
    border: 2px solid #4E009B;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
}

.patchnote-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(78, 0, 155, 0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.patchnote-version {
    font-family: 'Poppins', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    color: #fff;
    margin: 0 0 15px 0;
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 15px;
}

.patchnote-version .version-icon {
    background: linear-gradient(135deg, #4E009B 0%, #6B00CC 100%);
    width: 50px;
    height: 50px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.patchnote-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
    margin-bottom: 15px;
}

.patchnote-date,
.patchnote-author-info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Roboto', sans-serif;
    color: #bbb;
    font-size: 0.95rem;
}

.patchnote-date i {
    color: #4E009B;
}

.patchnote-author-display {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(18, 18, 18, 0.8);
    padding: 8px 15px;
    border-radius: 25px;
    border: 1px solid #2a2a2a;
}

.patchnote-author-display img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid #4E009B;
}

.patchnote-author-display .author-name {
    font-weight: 600;
    color: #fff;
}

.patchnote-author-display .author-role {
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-left: 5px;
}

/* Sections du patch note */
.patchnote-sections {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.patchnote-section {
    background: #121212;
    border: 1px solid #2a2a2a;
    border-left: 4px solid #4E009B;
    border-radius: 10px;
    padding: 25px;
    transition: all 0.3s ease;
}

.patchnote-section:hover {
    border-color: #6B00CC;
    box-shadow: 0 5px 20px rgba(78, 0, 155, 0.2);
    transform: translateY(-2px);
}

.section-title {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 20px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-items {
    list-style: none;
    padding: 0;
    margin: 0;
}

.section-items li {
    font-family: 'Roboto', sans-serif;
    font-size: 1rem;
    color: #ddd;
    line-height: 1.8;
    padding: 10px 0 10px 35px;
    position: relative;
    border-bottom: 1px solid #1a1a1a;
    transition: all 0.2s ease;
}

.section-items li:last-child {
    border-bottom: none;
}

.section-items li::before {
    content: '▸';
    position: absolute;
    left: 10px;
    color: #4E009B;
    font-weight: bold;
    font-size: 1.2rem;
}

.section-items li:hover {
    background: rgba(78, 0, 155, 0.05);
    padding-left: 40px;
}

/* ============================================
   LOADING & EMPTY STATES
   ============================================ */
.loading-state,
.empty-state,
.error-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
    color: #888;
    font-family: 'Roboto', sans-serif;
}

.loading-state i,
.empty-state i,
.error-state i {
    font-size: 3rem;
    margin-bottom: 15px;
    color: #4E009B;
}

.loading-state p,
.empty-state p,
.error-state p {
    font-size: 1.1rem;
    margin: 0;
}

.error-state {
    color: #ff4444;
}

.error-state i {
    color: #ff4444;
}

/* ============================================
   SCROLLBAR CUSTOM
   ============================================ */
.versions-sidebar::-webkit-scrollbar,
.patchnote-content::-webkit-scrollbar {
    width: 8px;
}

.versions-sidebar::-webkit-scrollbar-track,
.patchnote-content::-webkit-scrollbar-track {
    background: #0a0a0a;
}

.versions-sidebar::-webkit-scrollbar-thumb,
.patchnote-content::-webkit-scrollbar-thumb {
    background: #4E009B;
    border-radius: 10px;
}

.versions-sidebar::-webkit-scrollbar-thumb:hover,
.patchnote-content::-webkit-scrollbar-thumb:hover {
    background: #6B00CC;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media screen and (max-width: 1100px) {
    .patchnotes-container {
        flex-direction: column;
    }

    .versions-sidebar {
        width: 100%;
        min-width: 100%;
        height: auto;
        max-height: 300px;
        border-right: none;
        border-bottom: 2px solid #4E009B;
        position: relative;
    }

    .sidebar-header h2 {
        font-size: 1.1rem;
    }

    .versions-list {
        display: flex;
        overflow-x: auto;
        overflow-y: hidden;
        padding: 15px;
        gap: 10px;
    }

    .version-item {
        min-width: 250px;
        margin-bottom: 0;
    }

    .version-item:hover {
        transform: translateY(-5px);
    }

    .patchnote-content {
        padding: 20px;
    }

    .patchnote-version {
        font-size: 2rem;
    }

    .patchnote-header {
        padding: 20px;
    }
}

@media screen and (max-width: 768px) {
    .patchnote-version {
        font-size: 1.5rem;
        flex-direction: column;
        align-items: flex-start;
    }

    .patchnote-version .version-icon {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .section-title {
        font-size: 1.2rem;
    }

    .section-items li {
        font-size: 0.9rem;
        padding-left: 30px;
    }

    .version-item {
        min-width: 200px;
    }

    .patchnote-content {
        padding: 15px;
    }
}

/* ============================================
   PHONE MENU (depuis styleHeaderPatchN.css)
   ============================================ */
.phoneMenu {
    transition: 0.5s;
    height: 100vh;
    width: 270px;
    display: flex;
    flex-direction: column;
    position: fixed;
    background-color: #000000f1;
    overflow: auto;
    z-index: 1000;
    top: 0;
}

.phoneMenuContent {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    padding: 2%;
    padding-left: 5%;
}

.phoneMenuContent a {
    transition: 0.5s;
    margin-bottom: 10px;
    text-decoration: none;
    color: #ffffff;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1rem;
}

.phoneMenuContent a:hover {
    transition: 0.5s;
    color: #4E009B;
}
