/* Download Page Styles */

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

body {
    font-family: 'Avenir', 'Futura', sans-serif;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: #ffffff;
    min-height: 100vh;
    padding: 20px;
}

/* Hamburger Button */
#hamburger-button-container {
    position: fixed;
    top: 30px;
    right: 60px;
    z-index: 9999;
    cursor: pointer;
}

#hamburger-button-container svg {
    fill: #ffffff;
    transition: fill 0.3s ease;
}

#hamburger-button-container:hover svg {
    fill: #f0f0f0;
}

/* Download Container */
.download-container {
    max-width: 1000px;
    margin: 80px auto 40px;
}

.section {
    display: none;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 50px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
}

.section.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Download Header */
.download-header {
    text-align: center;
    margin-bottom: 40px;
}

.download-header h1 {
    font-size: 56px;
    font-weight: bold;
    letter-spacing: 0.2em;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.download-header h2 {
    font-size: 28px;
    font-weight: 600;
    letter-spacing: 0.1em;
    margin-bottom: 20px;
    color: #ffffff;
}

.download-header p {
    font-size: 16px;
    color: #cccccc;
    line-height: 1.8;
}

/* Registration Form */
.registration-form {
    max-width: 600px;
    margin: 0 auto;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: #ffffff;
}

.required {
    color: #ff6b6b;
}

.form-group input[type="text"],
.form-group input[type="email"] {
    width: 100%;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    color: #ffffff;
    font-size: 14px;
    font-family: 'Avenir', 'Futura', sans-serif;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
}

.form-hint {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
}

/* Checkbox */
.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
}

.checkbox-label input[type="checkbox"] {
    margin-right: 10px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.terms-link {
    color: #667eea;
    text-decoration: none;
    transition: color 0.3s ease;
}

.terms-link:hover {
    color: #764ba2;
    text-decoration: underline;
}

/* Form Actions */
.form-actions {
    margin-top: 30px;
    text-align: center;
}

.submit-button,
.back-button {
    padding: 15px 40px;
    font-size: 16px;
    font-weight: bold;
    letter-spacing: 0.1em;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Avenir', 'Futura', sans-serif;
}

.submit-button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
}

.submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}

.back-button {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.back-button:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* Form Message */
.form-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 5px;
    text-align: center;
    font-size: 14px;
    display: none;
}

.form-message.success {
    background: rgba(76, 175, 80, 0.2);
    border: 1px solid rgba(76, 175, 80, 0.4);
    color: #4caf50;
    display: block;
}

.form-message.error {
    background: rgba(244, 67, 54, 0.2);
    border: 1px solid rgba(244, 67, 54, 0.4);
    color: #f44336;
    display: block;
}

/* Download Links */
.download-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.download-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.download-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.download-card-header {
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.download-card-header h3 {
    font-size: 24px;
    font-weight: bold;
    letter-spacing: 0.1em;
}

.badge {
    padding: 5px 15px;
    background: rgba(255, 193, 7, 0.2);
    border: 1px solid rgba(255, 193, 7, 0.4);
    border-radius: 20px;
    font-size: 12px;
    color: #ffc107;
}

.download-card-body {
    padding: 20px;
}

.download-card-body p {
    margin: 8px 0;
    font-size: 14px;
    color: #cccccc;
}

.version {
    font-weight: 600;
    color: #ffffff !important;
}

.download-card-footer {
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.download-button {
    width: 100%;
    padding: 12px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 5px;
    color: #ffffff;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.download-button:hover:not(.disabled) {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.download-button.disabled {
    background: rgba(255, 255, 255, 0.1);
    cursor: not-allowed;
    opacity: 0.6;
}

/* Additional Info */
.additional-info {
    margin: 40px 0;
    padding: 30px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.additional-info h3 {
    font-size: 20px;
    margin-bottom: 15px;
    letter-spacing: 0.1em;
    color: #ffffff;
}

.additional-info ol {
    margin: 15px 0;
    padding-left: 25px;
}

.additional-info li {
    margin: 10px 0;
    line-height: 1.6;
    color: #cccccc;
}

.additional-info p {
    line-height: 1.8;
    color: #cccccc;
}

.support-link {
    color: #667eea;
    text-decoration: none;
    transition: color 0.3s ease;
}

.support-link:hover {
    color: #764ba2;
    text-decoration: underline;
}

/* User Greeting */
#userGreeting {
    font-size: 18px;
    color: #667eea;
    font-weight: 600;
    margin-bottom: 10px;
}

/* Terms Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    margin: 5% auto;
    padding: 40px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    width: 80%;
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.modal-close {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 36px;
    font-weight: bold;
    color: #ffffff;
    cursor: pointer;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: #667eea;
}

.terms-content {
    margin-top: 20px;
}

.terms-content h3 {
    font-size: 20px;
    margin-top: 25px;
    margin-bottom: 10px;
    color: #667eea;
}

.terms-content p {
    line-height: 1.8;
    color: #cccccc;
    margin-bottom: 15px;
}

.terms-content ul {
    margin: 10px 0;
    padding-left: 25px;
}

.terms-content li {
    margin: 8px 0;
    line-height: 1.6;
    color: #cccccc;
}

/* Responsive */
@media (max-width: 768px) {
    .section {
        padding: 30px 20px;
    }

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

    .download-header h2 {
        font-size: 20px;
    }

    .download-links {
        grid-template-columns: 1fr;
    }

    #hamburger-button-container {
        right: 20px;
        top: 20px;
    }

    .modal-content {
        width: 95%;
        padding: 30px 20px;
    }
}
