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

:root {
    --primary-color: #6c5ce7;
    --secondary-color: #00b894;
    --dark-color: #2d3436;
    --light-color: #dfe6e9;
    --white: #ffffff;
    --gray: #636e72;
    --border-radius: 8px;
    --shadow: 0 2px 10px rgba(0,0,0,0.1);
    --shadow-hover: 0 4px 20px rgba(0,0,0,0.15);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    background-color: #f8f9fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, #a29bfe 100%);
    color: var(--white);
    padding: 60px 0;
    text-align: center;
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.hero-subtitle {
    font-size: 20px;
    opacity: 0.95;
}

/* Main Content */
.main-content {
    padding: 60px 20px;
}

/* Version Grid */
.version-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.version-card {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.version-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

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

.version-header h2 {
    font-size: 28px;
    color: var(--dark-color);
}

.badge {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-stable {
    background: var(--secondary-color);
    color: var(--white);
}

.version-description {
    color: var(--gray);
    margin-bottom: 25px;
    font-size: 16px;
}

/* Download Section */
.download-section h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--dark-color);
}

.download-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.download-link {
    display: flex;
    align-items: center;
    padding: 15px;
    background: #f8f9fa;
    border: 2px solid transparent;
    border-radius: var(--border-radius);
    text-decoration: none;
    color: var(--dark-color);
    transition: all 0.3s ease;
}

.download-link:hover {
    border-color: var(--primary-color);
    background: var(--white);
    transform: translateX(5px);
}

.package-icon {
    font-size: 32px;
    margin-right: 15px;
}

.download-link strong {
    display: block;
    font-size: 16px;
    margin-bottom: 2px;
}

.download-link small {
    color: var(--gray);
    font-size: 14px;
}

/* Info Section */
.info-section {
    margin-bottom: 60px;
}

.info-section h2 {
    font-size: 32px;
    margin-bottom: 25px;
    color: var(--dark-color);
}

.section-description {
    font-size: 18px;
    color: var(--gray);
    margin-bottom: 30px;
    text-align: center;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
}

.info-card {
    background: var(--white);
    padding: 25px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.info-card h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--primary-color);
}

pre {
    background: #2d3436;
    color: #dfe6e9;
    padding: 15px;
    border-radius: var(--border-radius);
    overflow-x: auto;
}

code {
    font-family: 'Courier New', Courier, monospace;
    font-size: 14px;
    line-height: 1.5;
}

/* Requirements List */
.requirements-list {
    background: var(--white);
    padding: 25px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    list-style: none;
}

.requirements-list li {
    padding: 10px 0;
    border-bottom: 1px solid #f1f2f6;
    position: relative;
    padding-left: 25px;
}

.requirements-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: bold;
}

.requirements-list li:last-child {
    border-bottom: none;
}

/* Footer */
.footer {
    background: var(--dark-color);
    color: var(--white);
    padding: 40px 0;
    text-align: center;
    margin-top: 80px;
}

.footer p {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--white);
    text-decoration: none;
    margin: 0 10px;
    transition: opacity 0.3s ease;
}

.footer-links a:hover {
    opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 36px;
    }

    .hero-subtitle {
        font-size: 18px;
    }

    .version-grid {
        grid-template-columns: 1fr;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }

    .main-content {
        padding: 40px 20px;
    }

    pre {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 28px;
    }

    .version-card {
        padding: 20px;
    }

    .download-link {
        padding: 12px;
    }

    .package-icon {
        font-size: 24px;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    :root {
        --dark-color: #f8f9fa;
        --light-color: #2d3436;
        --white: #1a1a1a;
        --gray: #b2bec3;
    }

    body {
        background-color: #0c0c0c;
    }

    .version-card,
    .info-card,
    .requirements-list {
        background: #1a1a1a;
    }

    .download-link {
        background: #0c0c0c;
    }

    .download-link:hover {
        background: #1a1a1a;
    }

    pre {
        background: #0c0c0c;
    }

    .footer {
        background: #0c0c0c;
    }
}

/* Print Styles */
@media print {
    .hero {
        background: none;
        color: #000;
    }

    .version-card,
    .info-card {
        box-shadow: none;
        border: 1px solid #ddd;
    }

    .footer {
        display: none;
    }
}