/* Changelog / Patch Notes - Design Moderno */

/* Garantir que o changelog screen seja clicável */
#changelogScreen {
    pointer-events: auto !important;
}

.changelog-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0;
    pointer-events: auto;
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Header */
.changelog-header {
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, rgba(255, 70, 85, 0.2), rgba(0, 240, 255, 0.2));
    border-bottom: 2px solid rgba(255, 70, 85, 0.4);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    flex-shrink: 0;
    overflow: hidden;
}

.changelog-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 70, 85, 0.1), transparent);
    animation: rotate 10s linear infinite;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.changelog-header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    background: linear-gradient(90deg, #ff4655, #00f0ff, #ff4655);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    z-index: 1;
    text-shadow: 0 0 30px rgba(255, 70, 85, 0.5);
}

.changelog-header p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    position: relative;
    z-index: 1;
}

.changelog-current-version {
    display: inline-block;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #000;
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 900;
    font-size: 1.1rem;
    margin-top: 10px;
    box-shadow: 0 4px 20px rgba(255, 215, 0, 0.5);
    position: relative;
    z-index: 1;
}

/* Timeline */
.changelog-timeline {
    position: relative;
    padding: 20px;
    overflow-y: auto;
    flex: 1;
}

.changelog-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, #ff4655, #00f0ff, #ff4655);
    transform: translateX(-50%);
}

/* Version Entry */
.version-entry {
    position: relative;
    margin-bottom: 40px;
    animation: fadeInUp 0.6s ease-out;
}

.version-entry:last-child {
    margin-bottom: 100px;
}

.version-entry:nth-child(odd) {
    padding-right: calc(50% + 40px);
}

.version-entry:nth-child(even) {
    padding-left: calc(50% + 40px);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Version Badge */
.version-badge {
    position: absolute;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #ff4655, #ff2a6d);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 0.95rem;
    color: #fff;
    border: 3px solid #0f1923;
    box-shadow: 0 0 30px rgba(255, 70, 85, 0.8);
    z-index: 10;
}

.version-badge.latest {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #000;
    box-shadow: 0 0 40px rgba(255, 215, 0, 0.9);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: translateX(-50%) scale(1);
        box-shadow: 0 0 40px rgba(255, 215, 0, 0.9);
    }
    50% {
        transform: translateX(-50%) scale(1.1);
        box-shadow: 0 0 60px rgba(255, 215, 0, 1);
    }
}

/* Version Card */
.version-card {
    background: linear-gradient(135deg, rgba(15, 25, 35, 0.95), rgba(20, 30, 40, 0.9));
    border-radius: 12px;
    padding: 20px;
    border: 2px solid rgba(0, 240, 255, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.version-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, #00f0ff, transparent);
}

.version-card:hover {
    transform: translateY(-5px);
    border-color: #00f0ff;
    box-shadow: 0 12px 40px rgba(0, 240, 255, 0.4);
}

.version-card.latest {
    border-color: rgba(255, 215, 0, 0.5);
}

.version-card.latest::before {
    background: linear-gradient(90deg, transparent, #FFD700, transparent);
}

/* Version Header */
.version-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(0, 240, 255, 0.2);
}

.version-number {
    font-size: 1.5rem;
    font-weight: 900;
    color: #00f0ff;
    text-shadow: 0 0 20px rgba(0, 240, 255, 0.6);
}

.version-date {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
    font-weight: 600;
}

.version-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.version-tag {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.version-tag.major {
    background: linear-gradient(135deg, #ff4655, #ff2a6d);
    color: #fff;
    box-shadow: 0 0 15px rgba(255, 70, 85, 0.5);
}

.version-tag.feature {
    background: linear-gradient(135deg, #00f0ff, #0080ff);
    color: #000;
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.5);
}

.version-tag.bugfix {
    background: linear-gradient(135deg, #4CAF50, #66BB6A);
    color: #fff;
    box-shadow: 0 0 15px rgba(76, 175, 80, 0.5);
}

.version-tag.balance {
    background: linear-gradient(135deg, #FFA500, #FFD700);
    color: #000;
    box-shadow: 0 0 15px rgba(255, 165, 0, 0.5);
}

.version-tag.performance {
    background: linear-gradient(135deg, #9C27B0, #BA68C8);
    color: #fff;
    box-shadow: 0 0 15px rgba(156, 39, 176, 0.5);
}

/* Changes Section */
.changes-section {
    margin-bottom: 20px;
}

.changes-section h3 {
    color: #00f0ff;
    font-size: 1.1rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.changes-section h3::before {
    content: '';
    width: 4px;
    height: 20px;
    background: linear-gradient(180deg, #00f0ff, #0080ff);
    border-radius: 2px;
}

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

.change-item {
    padding: 10px 12px;
    margin: 6px 0;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 6px;
    border-left: 3px solid #00f0ff;
    transition: all 0.3s ease;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.95rem;
}

.change-item:hover {
    background: rgba(0, 240, 255, 0.1);
    transform: translateX(5px);
}

.change-icon {
    font-size: 1.3rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.change-text {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    flex: 1;
}

.change-text strong {
    color: #FFD700;
    font-weight: 700;
}

/* Change Types */
.change-item.new {
    border-left-color: #4CAF50;
}

.change-item.improved {
    border-left-color: #00f0ff;
}

.change-item.fixed {
    border-left-color: #FFA500;
}

.change-item.removed {
    border-left-color: #f44336;
}

.change-item.balanced {
    border-left-color: #FFD700;
}

/* Stats Grid */
.version-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 240, 255, 0.2);
}

.stat-item {
    text-align: center;
    padding: 15px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    border: 1px solid rgba(0, 240, 255, 0.2);
}

.stat-value {
    font-size: 2rem;
    font-weight: 900;
    color: #00f0ff;
    display: block;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Footer */
.changelog-footer {
    text-align: center;
    margin-top: 60px;
    padding: 40px;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.4));
    border-radius: 20px;
    border: 2px solid rgba(0, 240, 255, 0.2);
}

.changelog-footer p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 20px;
    font-size: 1.1rem;
}

/* Responsive */
@media (max-width: 1024px) {
    .changelog-header h1 {
        font-size: 2rem;
    }
    
    .version-card {
        padding: 15px;
    }
}

@media (max-width: 768px) {
    .changelog-container {
        padding: 0;
    }
    
    .changelog-timeline {
        padding: 10px;
    }
    
    .changelog-timeline::before {
        left: 20px;
    }
    
    .version-entry:nth-child(odd),
    .version-entry:nth-child(even) {
        padding-left: 60px;
        padding-right: 0;
    }
    
    .version-badge {
        left: 20px;
        transform: translateX(0);
        width: 40px;
        height: 40px;
        font-size: 0.75rem;
        border: 2px solid #0f1923;
    }
    
    .version-badge.latest {
        animation: none;
    }
    
    .changelog-header {
        padding: 20px 15px;
        margin-bottom: 20px;
    }
    
    .changelog-header h1 {
        font-size: 1.8rem;
    }
    
    .changelog-header p {
        font-size: 0.9rem;
    }
    
    .changelog-current-version {
        font-size: 0.95rem;
        padding: 6px 15px;
    }
    
    .version-card {
        padding: 15px;
    }
    
    .version-number {
        font-size: 1.3rem;
    }
    
    .version-date {
        font-size: 0.85rem;
    }
    
    .version-tag {
        font-size: 0.75rem;
        padding: 4px 10px;
    }
    
    .changes-section h3 {
        font-size: 1rem;
    }
    
    .change-item {
        padding: 8px 10px;
        font-size: 0.9rem;
        gap: 8px;
    }
    
    .change-icon {
        font-size: 1.1rem;
    }
    
    .version-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .stat-value {
        font-size: 1.5rem;
    }
    
    .stat-label {
        font-size: 0.75rem;
    }
}

/* Scrollbar */
.changelog-container::-webkit-scrollbar {
    width: 12px;
}

.changelog-container::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 6px;
}

.changelog-container::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #ff4655, #00f0ff);
    border-radius: 6px;
}

.changelog-container::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #00f0ff, #ff4655);
}
