/* styles.css - Ableton Downloader Styles with Accordion Version Selector */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #000;
    color: #fff;
    min-height: 100vh;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-family: 'Ableton Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: 400;
    line-height: 1.6;
}

.container {
    max-width: 900px;
    width: 100%;
}

header {
    text-align: center;
    margin-bottom: 60px;
}

h1 {
    font-size: 4rem;
    font-weight: 300;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
    color: #fff;
}

.subtitle {
    font-size: 1.5rem;
    color: #ccc;
    max-width: 700px;
    margin: 0 auto;
}

.content-area {
    padding: 40px 0;
}

.step-title {
    font-size: 2rem;
    font-weight: 500;
    margin-bottom: 40px;
    color: #ff2e5e;
    display: flex;
    align-items: center;
    gap: 16px;
}

.step-icon {
    font-size: 2rem;
    color: #ff2e5e;
}

.form-group {
    margin-bottom: 40px;
}

label {
    display: block;
    margin-bottom: 12px;
    font-size: 1.1rem;
    color: #fff;
    font-weight: 500;
}

select, input[type="text"] {
    width: 100%;
    padding: 16px 20px;
    border-radius: 0;
    border: 1px solid #333;
    background: #111;
    color: #fff;
    font-size: 1.1rem;
    transition: border-color 0.3s ease;
}

select:focus, input:focus {
    outline: none;
    border-color: #ff2e5e;
}

.btn {
    background: #ff2e5e;
    color: #000;
    border: none;
    padding: 18px 40px;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.btn:hover {
    background: #ff5b7f;
}

/* Accordion Version Sections */
.version-sections {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.version-section {
    background: #111;
    border: 1px solid #222;
    overflow: hidden;
}

.section-header {
    font-size: 1.4rem;
    font-weight: 600;
    padding: 20px;
    color: #ff2e5e;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    user-select: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background 0.3s ease;
}

.section-header:hover {
    background: #222;
}

.section-header::after {
    content: '▼';
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.version-section.collapsed .section-header::after {
    transform: rotate(-90deg);
}

.section-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    padding: 0 20px;
}

.version-section:not(.collapsed) .section-content {
    max-height: 1000px;
    padding: 20px;
}

.version-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
}

.version-item {
    padding: 16px;
    background: #222;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.version-item:hover {
    background: #333;
}

.version-item.selected {
    background: #ff2e5e;
    color: #000;
    font-weight: 700;
}

.info-text {
    background: #111;
    border-left: 4px solid #ff2e5e;
    padding: 20px;
    margin: 40px 0;
    font-size: 1rem;
    color: #ccc;
}

.info-text strong {
    color: #ff2e5e;
}

.download-link {
    display: none;
    text-align: center;
    margin-top: 60px;
    padding: 40px;
    background: #111;
    border: 1px solid #222;
}

.download-link a {
    color: #ff2e5e;
    font-size: 1.4rem;
    text-decoration: none;
    font-weight: 600;
    word-break: break-all;
    display: block;
    margin: 20px 0;
}

.download-link a:hover {
    text-decoration: underline;
}

.os-detection {
    display: inline-block;
    background: #222;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.9rem;
    margin-left: 10px;
    color: #aaa;
}

footer {
    text-align: center;
    padding: 60px 0 20px;
    color: #666;
    font-size: 0.9rem;
}

.github-link {
    color: #ff2e5e;
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
}

.github-link:hover {
    text-decoration: underline;
}

.custom-version-section {
    background: #111;
    padding: 20px;
    border: 1px solid #222;
    margin-top: 40px;
}

.custom-version-input {
    display: flex;
    gap: 16px;
}

.custom-version-btn {
    background: transparent;
    border: 1px solid #ff2e5e;
    color: #ff2e5e;
    padding: 16px 24px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.custom-version-btn:hover {
    background: #ff2e5e;
    color: #000;
}

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

    .step-title {
        font-size: 1.6rem;
    }

    .custom-version-input {
        flex-direction: column;
    }

    .version-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }

    .section-header {
        font-size: 1.2rem;
        padding: 16px;
    }
}
