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

body {
    font-family:
        -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Helvetica",
        "Arial", sans-serif;
    background: #faf9f5;
    min-height: 100vh;
    padding: 2rem;
    color: #5e5d59;
}

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

header {
    text-align: center;
    margin-bottom: 3rem;
    color: #5e5d59;
}

header h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.project-card {
    background: #f0eee6;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.project-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.1);
}

.project-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: #5e5d59;
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    gap: 1rem;
}

.project-card h2 {
    font-size: 1.5rem;
    color: #5e5d59;
    margin: 0;
    flex: 1;
}

.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.status-badge.checking {
    background: #faf9f5;
    color: #5e5d59;
    border: 1px solid #5e5d59;
}

.status-badge.running {
    background: #d4edda;
    color: #155724;
}

.status-badge.down {
    background: #f8d7da;
    color: #721c24;
}

.status-badge.timeout {
    background: #fff3cd;
    color: #856404;
}

.description {
    color: #5e5d59;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    min-height: 3rem;
    opacity: 0.8;
}

.project-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid rgba(94, 93, 89, 0.3);
    gap: 1rem;
}

.url {
    color: #5e5d59;
    font-size: 0.85rem;
    font-family: "Monaco", "Courier New", monospace;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.github-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: #5e5d59;
    color: #faf9f5;
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.github-link:hover {
    background: #4a4946;
    transform: scale(1.05);
}

.github-link svg {
    width: 16px;
    height: 16px;
}

/* Responsive design */
@media (max-width: 768px) {
    body {
        padding: 1rem;
    }

    header h1 {
        font-size: 2rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .project-card {
        padding: 1rem;
    }

    .project-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .status-badge {
        align-self: flex-start;
    }

    .project-footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .github-link {
        width: 100%;
        justify-content: center;
    }
}

/* Loading animation */
@keyframes pulse {
    0%,
    100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.status-badge.checking {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}
