/*
 * History Page Styles for Altitude Pro Theme
 * Version history/changelog page styling
 */

/* Page container */
.page-template-page-history .site-inner {
    margin-top: 170px;
}

/* Page header */
.history-page-header {
    text-align: center;
    padding: 60px 0 40px;
    border-bottom: 2px solid #f5f5f5;
    margin-bottom: 60px;
}

.history-page-header h1 {
    font-size: 48px;
    font-weight: 200;
    margin-bottom: 15px;
    color: #000;
}

.history-page-header p {
    font-size: 18px;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* Version history container */
.fences-version-history {
    max-width: 900px;
    margin: 0 auto 100px;
    padding: 0 20px;
}

/* Version section */
.version-section {
    margin-bottom: 60px;
    padding-bottom: 40px;
    border-bottom: 1px solid #eee;
}

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

/* Version header */
.version-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    margin-bottom: 25px;
}

.version-title {
    font-size: 28px;
    font-weight: 400;
    color: #079bc4;
    margin: 0;
}

.version-date {
    font-size: 16px;
    color: #999;
    font-weight: 400;
}

/* Version info */
.version-info {
    margin-bottom: 20px;
}

.version-info h4 {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    margin: 0 0 10px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.version-info ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.version-info ul li {
    padding: 8px 0 8px 25px;
    position: relative;
    font-size: 17px;
    line-height: 1.6;
    color: #444;
    border-bottom: 1px solid #f9f9f9;
}

.version-info ul li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: #079bc4;
    font-size: 20px;
    line-height: 1;
}

/* Sub version section */
.sub-version {
    margin-top: 30px;
    padding: 25px;
    background: #f9f9f9;
    border-radius: 8px;
}

.sub-version-header {
    margin-bottom: 20px;
}

.sub-version-title {
    font-size: 22px;
    font-weight: 400;
    color: #333;
    margin: 0;
}

.sub-version-date {
    font-size: 14px;
    color: #888;
    margin-top: 5px;
}

/* New feature badge */
.feature-badge {
    display: inline-block;
    background: #079bc4;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 3px;
    margin-right: 10px;
    vertical-align: middle;
}

.fix-badge {
    display: inline-block;
    background: #28a745;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 3px;
    margin-right: 10px;
}

/* Back to top button */
.back-to-top {
    text-align: center;
    margin: 40px 0 60px;
}

.back-to-top a {
    display: inline-block;
    padding: 12px 30px;
    background: #079bc4;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 2px;
    text-decoration: none;
    border-radius: 0;
    transition: all 0.2s ease-in-out;
}

.back-to-top a:hover {
    background: #000;
    color: #fff;
}

/* Responsive adjustments */
@media only screen and (max-width: 800px) {

    .page-template-page-history .site-inner {
        margin-top: 80px;
    }

    .history-page-header h1 {
        font-size: 36px;
    }

    .version-header {
        flex-direction: column;
        gap: 10px;
    }

    .version-title {
        font-size: 24px;
    }

    .fences-version-history {
        padding: 0 15px;
    }

    .version-info ul li {
        font-size: 16px;
    }
}

@media only screen and (max-width: 480px) {

    .history-page-header h1 {
        font-size: 28px;
    }

    .history-page-header p {
        font-size: 16px;
    }

    .version-title {
        font-size: 20px;
    }

    .sub-version {
        padding: 20px 15px;
    }
}
