:root {
    --primary-color: #3a86ff;
    --secondary-color: #8338ec;
    --background-color: #f8f9fa;
    --card-bg: #ffffff;
    --text-color: #212529;
    --text-secondary: #6c757d;
    --border-radius: 8px;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

body {
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    padding: 0;
    margin: 0;
}

header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 2rem 0;
    text-align: center;
    box-shadow: var(--shadow);
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.header-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
}

.search-container {
    margin: 1.5rem 0;
    width: 100%;
    max-width: 500px;
}

.search-box {
    width: 100%;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    font-size: 1rem;
}

main {
    padding: 2rem 0;
}

.version-timeline {
    position: relative;
    margin: 2rem 0;
}

.version-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 20px;
    width: 4px;
    background: linear-gradient(to bottom, var(--primary-color), var(--secondary-color)); 
    border-radius: 4px;
}

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

.version-card::before {
    content: '';
    position: absolute;
    left: -33px;
    top: 24px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: var(--primary-color);
    border: 4px solid white;
    box-shadow: var(--shadow);
}

.version-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.version-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.version-date {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.update-type {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}

.update-major {
    background-color: #ff595e;
    color: white;
}

.update-feature {
    background-color: #4cc9f0;
    color: white;
}

.update-fix {
    background-color: #8ac926;
    color: white;
}

.update-security {
    background-color: #ff9e00;
    color: white;
}

.update-list {
    margin-top: 1.25rem;
}

.update-item {
    margin-bottom: 0.75rem;
    padding-left: 1.5rem;
    position: relative;
}

.update-item::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

footer {
    text-align: center;
    padding: 2rem 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.filter-button {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: var(--border-radius);
    background-color: #e9ecef;
    color: var(--text-color);
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s ease;
}

.filter-button:hover {
    background-color: #dee2e6;
}

.filter-button.active {
    background-color: var(--primary-color);
    color: white;
}

.collapsible-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.expanded .collapsible-content {
    max-height: 1000px;
}

.toggle-details {
    background: none;
    border: none;
    color: var(--primary-color);
    font-weight: 500;
    cursor: pointer;
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
    font-size: 0.9rem;
}

.toggle-details::after {
    content: "⌄";
    margin-left: 0.5rem;
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.expanded .toggle-details::after {
    transform: rotate(180deg);
}

.no-results {
    text-align: center;
    padding: 2rem;
    color: var(--text-secondary);
    font-style: italic;
}

@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    .version-card {
        margin-left: 30px;
        padding: 1.25rem;
    }

    .version-timeline::before {
        left: 15px;
    }

    .version-card::before {
        left: -25px;
        width: 16px;
        height: 16px;
    }
    
    .filter-buttons {
        justify-content: center;
    }
}