* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
    color: #333;
}

.container {
    max-width: 900px;
    margin: 0 auto;
}

header {
    text-align: center;
    margin-bottom: 30px;
    color: white;
}

header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.subtitle {
    font-size: 1.2em;
    opacity: 0.9;
}

.app {
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    padding: 30px;
    min-height: 400px;
}

.loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 300px;
    color: #666;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.info-card {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    background: #f8f9fa;
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 30px;
}

.info-item {
    text-align: center;
}

.info-item .label {
    display: block;
    font-size: 0.9em;
    color: #666;
    margin-bottom: 8px;
}

.info-item .value {
    font-size: 1.5em;
    font-weight: bold;
    color: #333;
}

.version-badge {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white !important;
    padding: 5px 15px;
    border-radius: 20px;
    display: inline-block;
}

.releases-section h2,
.api-section h2 {
    margin-bottom: 20px;
    color: #333;
    font-size: 1.5em;
}

.releases-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.release-card {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 20px;
    transition: all 0.3s ease;
}

.release-card:hover {
    border-color: #667eea;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.2);
}

.release-card.latest {
    border-color: #667eea;
    background: linear-gradient(135deg, #f8f9ff 0%, #fff 100%);
}

.release-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e9ecef;
}

.release-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.version {
    font-size: 1.3em;
    font-weight: bold;
    color: #333;
}

.latest-badge {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.75em;
    font-weight: bold;
}

.release-date {
    color: #888;
    font-size: 0.9em;
}

.release-info {
    margin-bottom: 15px;
}

.info-row {
    display: flex;
    margin-bottom: 8px;
    font-size: 0.95em;
}

.info-label {
    color: #666;
    min-width: 80px;
}

.info-value {
    color: #333;
    font-weight: 500;
}

.release-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.download-btn {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.copy-btn {
    background: #f8f9fa;
    color: #333;
    padding: 10px 20px;
    border: 1px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.copy-btn:hover {
    background: #e9ecef;
}

.no-releases {
    text-align: center;
    color: #999;
    padding: 40px;
    font-size: 1.1em;
}

.api-section {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #e9ecef;
}

.api-endpoints {
    display: grid;
    gap: 15px;
}

.endpoint {
    background: #f8f9fa;
    padding: 15px 20px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.endpoint code {
    background: #333;
    color: #fff;
    padding: 8px 15px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    flex-shrink: 0;
}

.endpoint span {
    color: #666;
    font-size: 0.95em;
}

.error-card {
    background: #fff3f3;
    border: 2px solid #ff6b6b;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    color: #d63031;
}

.error-card h3 {
    margin-bottom: 15px;
    font-size: 1.5em;
}

.error-card p {
    margin-bottom: 20px;
    color: #666;
}

.error-card button {
    background: #d63031;
    color: white;
    padding: 10px 25px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1em;
    font-weight: 600;
    transition: background 0.3s ease;
}

.error-card button:hover {
    background: #c0392b;
}

footer {
    text-align: center;
    margin-top: 30px;
    color: rgba(255,255,255,0.8);
    font-size: 0.9em;
}

@media (max-width: 768px) {
    body {
        padding: 15px;
    }

    header h1 {
        font-size: 2em;
    }

    .app {
        padding: 20px;
    }

    .info-card {
        grid-template-columns: 1fr;
    }

    .release-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .release-actions {
        flex-direction: column;
    }

    .endpoint {
        flex-direction: column;
        align-items: flex-start;
    }
}
