/* Shared stylesheet for playground pages */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #333;
    line-height: 1.6;
    background: #f5f5f5;
}

/* Header — intentionally missing skip-nav link, low contrast text */
.site-header {
    background: #1a1a2e;
    color: #6a6a8e; /* Intentional: low contrast ratio */
    padding: 16px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-header .logo {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
}

.site-header nav a {
    color: #6a6a8e; /* Intentional: low contrast */
    text-decoration: none;
    margin-left: 24px;
    font-size: 14px;
}

.site-header nav a:hover {
    color: #fff;
}

/* No :focus styles anywhere — intentional WCAG 2.4.7 violation */

/* Main content area */
.main-content {
    max-width: 960px;
    margin: 40px auto;
    padding: 0 24px;
}

.card {
    background: #fff;
    border-radius: 8px;
    padding: 32px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    margin-bottom: 24px;
}

.card h2 {
    margin-bottom: 16px;
    font-size: 24px;
}

/* Form styles */
.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
}

.btn-primary {
    background: #4a47a3;
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
}

.btn-primary:hover {
    background: #3a378a;
}

/* Footer */
.site-footer {
    text-align: center;
    padding: 24px;
    color: #999;
    font-size: 13px;
}

/* Directory page */
.page-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.page-card {
    background: #fff;
    border-radius: 8px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.2s;
}

.page-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.page-card h3 {
    margin-bottom: 8px;
    color: #1a1a2e;
}

.page-card p {
    font-size: 14px;
    color: #666;
}

.tag {
    display: inline-block;
    background: #eee;
    color: #555;
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 12px;
    margin-top: 12px;
    margin-right: 4px;
}
