@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --bg-gradient: #f8f9fa;
    --card-bg: #ffffff;
    --card-border: #e2e8f0;
    --primary: #e86524;
    --primary-hover: #cc581f;
    --text-main: #0f172a;
    --text-muted: #64748b;
}

html, body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: var(--bg-gradient);
    color: var(--text-main);
    display: flex;
    flex-direction: column;
}

#download-section {
    display: contents;
}

.main-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    width: 100%;
    box-sizing: border-box;
}

/* Glassmorphism Card */
.glass-card {
    background: var(--card-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    padding: 3rem;
    max-width: 500px;
    width: 100%;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUp {
    0% { opacity: 0; transform: translateY(30px); }
    100% { opacity: 1; transform: translateY(0); }
}

.logo-container {
    text-align: center;
    margin-bottom: 2.5rem;
}

.logo {
    height: 35px;
    width: auto;
    margin-bottom: 1rem;
}

.title {
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    letter-spacing: -0.02em;
}

.subtitle {
    color: #000000;
    margin: 0;
    font-weight: 500;
    font-size: 1.1rem;
}

/* Download Button */
.download-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    background: var(--primary);
    color: #ffffff;
    text-decoration: none;
    padding: 1rem 2rem;
    border-radius: 99px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 10px 15px -3px rgba(232, 101, 36, 0.3);
}

.download-button:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 15px 25px -5px rgba(232, 101, 36, 0.4);
    color: #ffffff;
}

.version-text {
    text-align: center;
    margin-top: 1rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

/* Requirements Grid */
.requirements-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 2rem;
    border-top: 1px solid var(--card-border);
    padding-top: 2rem;
}

.req-box h3 {
    font-size: 1rem;
    color: var(--text-main);
    margin: 0 0 1rem 0;
    font-weight: 600;
}

.req-box ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.req-box li {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 1.25rem;
}

.req-box li::before {
    content: "•";
    color: var(--primary);
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* Instructions */
.instructions {
    background: #f1f5f9;
    border-radius: 16px;
    padding: 1.5rem;
}

.instructions h3 {
    font-size: 1rem;
    margin: 0 0 1rem 0;
}

.instructions ol {
    margin: 0;
    padding-left: 1.25rem;
}

.instructions li {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.instructions li:last-child {
    margin-bottom: 0;
}

/* Loading */
.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #e2e8f0;
    border-top-color: #e86524;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem auto;
}

.loading-text {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

#blazor-error-ui {
    display: none;
    position: fixed;
    bottom: 0;
    width: 100%;
    background: #b32121;
    color: white;
    padding: 0.8rem 1.5rem;
    z-index: 1000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    float: right;
}

@media (max-width: 600px) {
    .requirements-section {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .glass-card {
        padding: 2rem;
    }
}