/**
 * NaviPos Online - Changelog Styles
 * Separate stylesheet for changelog page
 */

/* ===========================
   CHANGELOG PAGE LAYOUT
   =========================== */
.changelog-wrapper {
    min-height: 100vh;
    background: #ffffff;
    padding: 2rem 1rem;
}

.changelog-container {
    max-width: 900px;
    margin: 0 auto;
}

/* ===========================
   CHANGELOG HEADER
   =========================== */
.changelog-header {
    margin-bottom: 2.5rem;
}

.changelog-back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #6b7280;
    text-decoration: none;
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
    transition: color 0.2s ease;
}

.changelog-back-link:hover {
    color: #0891b2;
}

.changelog-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.changelog-brand img {
    max-width: 60px;
    height: auto;
}

.changelog-brand h1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #000000;
    margin: 0;
}

.changelog-subtitle {
    color: #6b7280;
    font-size: 0.95rem;
    margin: 0.25rem 0 0;
}

.changelog-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    margin-top: 1rem;
}

.changelog-version-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: #0891b2;
    color: #fff;
    padding: 0.35rem 0.85rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.changelog-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: #6b7280;
    font-size: 0.85rem;
}

.changelog-meta-item a {
    color: #0891b2;
    text-decoration: none;
}

.changelog-meta-item a:hover {
    text-decoration: underline;
}

/* ===========================
   CHANGELOG TIMELINE
   =========================== */
.changelog-timeline {
    position: relative;
}

.changelog-release {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 0;
}

.changelog-release-marker {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
    width: 20px;
}

.changelog-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 3px solid;
    background: #ffffff;
    flex-shrink: 0;
    z-index: 1;
}

.dot-major {
    border-color: #22c55e;
    background: #22c55e;
}

.dot-minor {
    border-color: #3b82f6;
    background: #3b82f6;
}

.dot-patch {
    border-color: #f59e0b;
    background: #f59e0b;
}

.changelog-line {
    width: 2px;
    flex-grow: 1;
    background: #e5e7eb;
    min-height: 20px;
}

.changelog-release-content {
    flex: 1;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.2s ease;
}

.changelog-release-latest .changelog-release-content {
    border-color: #0891b2;
    box-shadow: 0 0 0 1px #0891b2, 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.changelog-release-content:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.changelog-release-header {
    margin-bottom: 0.75rem;
}

.changelog-release-title-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.35rem;
}

.changelog-release-title-row h2 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    color: #000000;
}

.changelog-version-tag {
    font-family: 'SFMono-Regular', 'Consolas', monospace;
    font-size: 0.85rem;
    font-weight: 700;
    color: #0891b2;
    margin-right: 0.25rem;
}

.changelog-latest-badge {
    background: #22c55e;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.15rem 0.5rem;
    border-radius: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.changelog-type-badge {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.15rem 0.5rem;
    border-radius: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.changelog-type-major { 
    background: rgba(34, 197, 94, 0.1); 
    color: #16a34a; 
}

.changelog-type-minor { 
    background: rgba(59, 130, 246, 0.1); 
    color: #2563eb; 
}

.changelog-type-patch { 
    background: rgba(245, 158, 11, 0.1); 
    color: #d97706; 
}

.changelog-release-date {
    font-size: 0.8rem;
    color: #6b7280;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.changelog-release-description {
    color: #6b7280;
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0 0 1rem;
}

/* ===========================
   CHANGE GROUPS
   =========================== */
.changelog-changes {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.changelog-change-group h4 {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 0.35rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.changelog-change-added { 
    color: #16a34a; 
}

.changelog-change-improved { 
    color: #2563eb; 
}

.changelog-change-changed { 
    color: #7c3aed; 
}

.changelog-change-fixed { 
    color: #dc2626; 
}

.changelog-change-removed { 
    color: #6b7280; 
}

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

.changelog-change-list li {
    position: relative;
    padding: 0.25rem 0 0.25rem 1.25rem;
    font-size: 0.875rem;
    color: #000000;
    line-height: 1.5;
}

.changelog-change-list li::before {
    content: '•';
    position: absolute;
    left: 0.35rem;
    color: #6b7280;
    font-weight: bold;
}

/* ===========================
   CHANGELOG FOOTER
   =========================== */
.changelog-footer {
    text-align: center;
    padding: 2rem 0 1rem;
    color: #6b7280;
    font-size: 0.8rem;
    border-top: 1px solid #e5e7eb;
    margin-top: 1rem;
}

.changelog-footer p {
    margin: 0.25rem 0;
}

/* ===========================
   RESPONSIVE DESIGN
   =========================== */
@media (max-width: 640px) {
    .changelog-wrapper {
        padding: 1rem 0.75rem;
    }

    .changelog-brand {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .changelog-brand h1 {
        font-size: 1.35rem;
    }

    .changelog-meta {
        gap: 0.6rem;
    }

    .changelog-release {
        gap: 0.75rem;
    }

    .changelog-release-marker {
        width: 14px;
    }

    .changelog-dot {
        width: 10px;
        height: 10px;
        border-width: 2px;
    }

    .changelog-release-content {
        padding: 1rem;
    }

    .changelog-release-title-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.35rem;
    }

    .changelog-release-title-row h2 {
        font-size: 1rem;
    }
}
