/* UpdateLog Page Styles */

/* Page Background - using wrapper class */
.updatelog-wrapper {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    min-height: 100vh;
    color: #fff;
    padding: 40px 0;
    margin: -20px -15px;
    padding: 40px 15px;
}

/* Container */
.updatelog-wrapper .main-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.updatelog-wrapper .page-header {
    text-align: center;
    margin-bottom: 60px;
    padding: 40px 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

.updatelog-wrapper .page-header h1 {
    font-size: 2.5em;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 15px;
}

.updatelog-wrapper .page-header .subtitle {
    font-size: 1.1em;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

/* Timeline */
.timeline {
    position: relative;
    padding: 20px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 30px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, #667eea 0%, #764ba2 100%);
}

.timeline-item {
    position: relative;
    padding-left: 80px;
    margin-bottom: 50px;
    animation: fadeInUp 0.6s ease-out;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

/* Timeline Date Circle */
.timeline-date {
    position: absolute;
    left: 0;
    top: 0;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    z-index: 1;
}

.timeline-date .day {
    font-size: 1.2em;
    line-height: 1;
}

.timeline-date .month {
    font-size: 0.7em;
    opacity: 0.9;
}

/* Type-specific date colors */
.timeline-item.type-new .timeline-date {
    background: linear-gradient(135deg, #f59e0b 0%, #f97316 100%);
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
}

.timeline-item.type-improve .timeline-date {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
}

.timeline-item.type-fix .timeline-date {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
}

/* Timeline Content Card */
.timeline-content {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 15px;
    padding: 25px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
    border-color: rgba(102, 126, 234, 0.5);
}

/* Type-specific content hover colors */
.timeline-item.type-new .timeline-content:hover {
    box-shadow: 0 10px 30px rgba(245, 158, 11, 0.3);
    border-color: rgba(245, 158, 11, 0.5);
}

.timeline-item.type-improve .timeline-content:hover {
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.3);
    border-color: rgba(16, 185, 129, 0.5);
}

.timeline-item.type-fix .timeline-content:hover {
    box-shadow: 0 10px 30px rgba(239, 68, 68, 0.3);
    border-color: rgba(239, 68, 68, 0.5);
}

/* Timeline Content Title */
.timeline-content h3 {
    color: #e0e7ff;
    font-size: 1.3em;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.timeline-content h3 i {
    font-size: 0.9em;
}

/* Type-specific title icon colors */
.timeline-item.type-new .timeline-content h3 i {
    color: #f59e0b;
}

.timeline-item.type-improve .timeline-content h3 i {
    color: #10b981;
}

.timeline-item.type-fix .timeline-content h3 i {
    color: #ef4444;
}

/* Timeline Content List */
.timeline-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.timeline-content ul li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
}

.timeline-content ul li::before {
    content: '\2713';
    position: absolute;
    left: 0;
    color: #48bb78;
    font-weight: bold;
}

/* Link Styles */
.timeline-content a,
.timeline-content a.calc-link {
    color: #fbbf24;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
}

.timeline-content a:hover,
.timeline-content a.calc-link:hover {
    color: #fcd34d;
    text-decoration: underline;
}

/* Badges */
.badge-new {
    display: inline-block;
    background: linear-gradient(135deg, #f59e0b 0%, #f97316 100%);
    color: #fff;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.7em;
    font-weight: 600;
    margin-left: 10px;
    animation: pulse 2s ease-in-out infinite;
}

.badge-fix {
    display: inline-block;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #fff;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.7em;
    font-weight: 600;
    margin-left: 10px;
}

.badge-improve {
    display: inline-block;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #fff;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.7em;
    font-weight: 600;
    margin-left: 10px;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .timeline::before {
        left: 20px;
    }

    .timeline-item {
        padding-left: 60px;
    }

    .timeline-date {
        width: 40px;
        height: 40px;
    }

    .timeline-date .day {
        font-size: 1em;
    }

    .timeline-date .month {
        font-size: 0.6em;
    }

    .updatelog-page .page-header h1 {
        font-size: 2em;
    }

    .timeline-content h3 {
        font-size: 1.1em;
    }

    .timeline-content {
        padding: 20px;
    }
}

@media (max-width: 576px) {
    .updatelog-page .page-header {
        padding: 30px 15px;
        margin-bottom: 40px;
    }

    .updatelog-page .page-header h1 {
        font-size: 1.7em;
    }

    .timeline-item {
        margin-bottom: 35px;
    }

    .timeline-content ul li {
        padding-left: 20px;
        font-size: 0.95em;
    }
}
