/* 
 * DACdb Plus Changelog Styles
 * Main stylesheet for the changelog page
 */

:root {
    --primary-color: #1C64D6; /* DACdb blue */
    --secondary-color: #25539d;
    --accent-color: #f1c40f;
    --text-color: #333;
    --light-text: #6a6a6a;
    --background-color: #f9f9f9;
    --card-bg: #ffffff;
    --border-color: #e0e0e0;
    --border-radius: 5px;
    --box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --max-width: 1140px;
    --header-bg: #f0f8ff;
    --footer-bg: #343a40;
}

/* Reset and Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    line-height: 1.6;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    color: var(--text-color);
    background-color: var(--background-color);
    margin: 0;
    padding: 0;
}

/* Container Layout */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 15px;
}

/* Header Styles */
header {
    background-color: var(--header-bg);
    padding: 2rem 0;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.banner {
    max-width: 100%;
    height: auto;
    margin-bottom: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.logo {
    width: 64px;
    height: 64px;
    margin-right: 1rem;
    border-radius: 8px;
}

h1 {
    font-size: 2.2rem;
    color: var(--primary-color);
    margin: 0;
    font-weight: 700;
    text-align: center;
}

/* Navigation Styles */
nav {
    background-color: var(--primary-color);
    padding: 0.75rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.nav-links {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 0;
    padding: 0;
}

.nav-links li a {
    color: white;
    text-decoration: none;
    padding: 0.5rem 0.75rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
    font-weight: 500;
}

.nav-links li a:hover,
.nav-links li a:focus {
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
}

/* Main Content Styles */
main {
    padding: 2rem 0;
}

.intro {
    margin-bottom: 2rem;
    text-align: center;
    padding: 1rem;
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.version-container {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.version-container:last-child {
    margin-bottom: 0;
}

h4 {
    color: var(--primary-color);
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

ul {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

li {
    margin-bottom: 0.5rem;
}

li > ul {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

/* Current Version Styling */
.current-version {
    background-color: #f0f8ff;
    border-left: 4px solid var(--primary-color);
    position: relative;
}

.current-version h4 {
    color: var(--primary-color);
}

.version-badge {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
    border-radius: 3px;
    margin-left: 0.5rem;
    vertical-align: middle;
    font-weight: bold;
    text-transform: uppercase;
}

/* Footer Styles */
footer {
    background-color: var(--footer-bg);
    color: white;
    padding: 2rem 0;
    margin-top: 2rem;
    text-align: center;
}

.footer-links {
    list-style: none;
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover,
.footer-links a:focus {
    color: white;
}

.copyright {
    font-size: 0.9rem;
    color: #aaa;
}

code {
    background-color: #f5f5f5;
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    font-family: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 0.9em;
}

/* Accessibility Improvements */
a:focus {
    outline: 3px solid rgba(28, 100, 214, 0.5);
    outline-offset: 2px;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--primary-color);
    color: white;
    width: 50px;
    height: 50px;
    text-align: center;
    line-height: 50px;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    z-index: 1000;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--secondary-color);
}

/* Print Styles */
@media print {
    nav, .back-to-top, footer {
        display: none;
    }
    
    body {
        font-size: 12pt;
    }
    
    .container {
        max-width: 100%;
        width: 100%;
    }
    
    h4 {
        page-break-after: avoid;
    }
    
    ul {
        page-break-inside: avoid;
    }
}

/* Responsive Styles - Tablet */
@media (max-width: 768px) {
    html {
        font-size: 14px;
    }
    
    .container {
        padding: 0 10px;
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    h4 {
        font-size: 1.3rem;
    }
    
    .back-to-top {
        width: 40px;
        height: 40px;
        line-height: 40px;
        bottom: 15px;
        right: 15px;
    }
}

/* Responsive Styles - Mobile */
@media (max-width: 480px) {
    html {
        font-size: 13px;
    }
    
    h1 {
        font-size: 1.5rem;
    }
    
    .logo {
        width: 48px;
        height: 48px;
    }
    
    .nav-links {
        flex-direction: column;
        align-items: center;
    }
}

/* Download link for versions */
.version-download {
    color: var(--primary-color);
    transition: var(--transition);
    font-size: 0.9rem;
    margin-left: 0.5rem;
}

.version-download:hover {
    color: var(--accent-color);
    transform: scale(1.2);
}

/* Download Latest Button */
.download-latest {
    margin: 1.5rem 0;
}

.download-btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: bold;
    transition: var(--transition);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.download-btn:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.download-btn i {
    margin-right: 0.5rem;
}

/* Support Links */
.support-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.support-btn {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    color: white;
}

.support-btn i {
    margin-right: 0.5rem;
}

.support-btn.dacdb {
    background-color: #1c64d6;
}

.support-btn.imembers {
    background-color: #25539d;
}

.support-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Copyright Section Styles */
.copyright a {
    color: #ccc;
    text-decoration: none;
    transition: var(--transition);
}

.copyright a:hover {
    color: white;
    text-decoration: underline;
} 