/* Simple Changelog - Frontend Styles */
/* Scoped styles to avoid conflicts with theme */

.scl-changelog-wrapper {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    max-width: 900px;
    margin: 0 auto;
    padding: 20px 0;
    position: relative;
}

.scl-changelog-wrapper *,
.scl-changelog-wrapper *::before,
.scl-changelog-wrapper *::after {
    box-sizing: border-box;
}

/* Timeline line */
.scl-changelog-wrapper::before {
    content: '';
    position: absolute;
    left: 280px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #e5e7eb;
}

.scl-release {
    display: flex;
    align-items: flex-start;
    margin-bottom: 50px;
    position: relative;
}

.scl-release:last-child {
    margin-bottom: 0;
}

/* Left side - Date and Version Name */
.scl-release-meta {
    width: 240px;
    flex-shrink: 0;
    text-align: right;
    padding-right: 30px;
}

.scl-release-date {
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 4px;
}

.scl-release-version-name {
    font-size: 14px;
    color: #6b7280;
}

/* Center - Version Badge */
.scl-release-version-badge {
    width: 80px;
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.scl-release-version-badge span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 50px;
    height: 50px;
    padding: 0 15px;
    background: #3772a3;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
}

/* Right side - Items */
.scl-release-items {
    flex: 1;
    padding-left: 30px;
}

.scl-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 12px;
    gap: 15px;
}

.scl-item:last-child {
    margin-bottom: 0;
}

.scl-item-type {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 110px;
    padding: 6px 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 4px;
    flex-shrink: 0;
}

.scl-item-text {
    font-size: 15px;
    color: #374151;
    line-height: 1.5;
    padding-top: 4px;
}

/* Type colors */
.scl-type-new {
    background: #10b981;
    color: #fff;
}

.scl-type-tweaked {
    background: #3b82f6;
    color: #fff;
}

.scl-type-updated {
    background: #1f2937;
    color: #fff;
}

.scl-type-fixed {
    background: #ef4444;
    color: #fff;
}

.scl-type-improvement {
    background: #06b6d4;
    color: #fff;
}

.scl-type-security {
    background: #f59e0b;
    color: #fff;
}

.scl-type-deprecated {
    background: #6b7280;
    color: #fff;
}

.scl-type-removed {
    background: #dc2626;
    color: #fff;
}

/* Responsive - Tablet */
@media (max-width: 900px) {
    .scl-changelog-wrapper::before {
        left: 200px;
    }
    
    .scl-release-meta {
        width: 160px;
        padding-right: 20px;
    }
    
    .scl-release-version-badge {
        width: 60px;
    }
    
    .scl-release-items {
        padding-left: 20px;
    }
}

/* Responsive - Mobile */
@media (max-width: 768px) {
    .scl-changelog-wrapper {
        padding: 10px 15px;
    }
    
    .scl-changelog-wrapper::before {
        left: 35px;
    }
    
    .scl-release {
        flex-direction: column;
        padding-left: 70px;
        position: relative;
    }
    
    .scl-release-meta {
        width: 100%;
        text-align: left;
        padding-right: 0;
        margin-bottom: 15px;
    }
    
    .scl-release-version-badge {
        position: absolute;
        left: 0;
        top: 0;
        width: 50px;
    }
    
    .scl-release-version-badge span {
        min-width: 44px;
        height: 44px;
        padding: 0 8px;
        font-size: 14px;
    }
    
    .scl-release-items {
        width: 100%;
        padding-left: 0;
    }
    
    .scl-item {
        flex-direction: row;
        align-items: flex-start;
        gap: 12px;
    }
    
    .scl-item-type {
        width: 100px;
    }
    
    .scl-item-text {
        flex: 1;
        padding-top: 2px;
    }
}

/* Responsive - Small Mobile */
@media (max-width: 480px) {
    .scl-changelog-wrapper::before {
        left: 28px;
    }
    
    .scl-release {
        padding-left: 55px;
    }
    
    .scl-release-date {
        font-size: 16px;
    }
    
    .scl-release-version-name {
        font-size: 13px;
    }
    
    .scl-release-version-badge span {
        min-width: 38px;
        height: 38px;
        font-size: 12px;
    }
    
    .scl-item {
        flex-direction: column;
        gap: 6px;
    }
    
    .scl-item-type {
        width: 100px;
        font-size: 10px;
        padding: 5px 10px;
    }
    
    .scl-item-text {
        font-size: 14px;
        padding-top: 0;
    }
}

/* Show more button */
.scl-show-more-wrapper {
    text-align: center;
    margin-top: 30px;
    padding-left: 280px;
}

.scl-show-more-btn {
    background: #f3f4f6;
    border: 1px solid #d1d5db;
    color: #374151;
    padding: 12px 30px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.scl-show-more-btn:hover {
    background: #e5e7eb;
    border-color: #9ca3af;
}

@media (max-width: 768px) {
    .scl-show-more-wrapper {
        padding-left: 0;
    }
}
