:root {
    --dye-dark: #14181f;
    --dye-accent: #4f7cff;
    --dye-bg: #f5f6f8;
    --dye-card: #ffffff;
    --dye-text: #1c1f26;
    --dye-muted: #6b7280;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: var(--dye-bg);
    color: var(--dye-text);
}

.page-header {
    text-align: center;
    padding: 48px 20px 24px;
}

.page-header h1 {
    margin: 0 0 8px;
    font-size: 2rem;
    color: var(--dye-dark);
}

.page-header p {
    color: var(--dye-muted);
    margin: 0;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px 24px 60px;
}

.card {
    background: var(--dye-card);
    border-radius: 14px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

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

.card-image {
    position: relative;
    aspect-ratio: 16 / 10;
    background: #e5e7eb;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.lock-overlay {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(20,24,31,0.75);
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

.card-title {
    padding: 14px 16px;
    font-weight: 600;
    color: var(--dye-dark);
}

.page-footer {
    text-align: center;
    color: var(--dye-muted);
    font-size: 0.85rem;
    padding: 20px;
}

/* Gate / password page */
.gate-box {
    max-width: 400px;
    margin: 80px auto;
    background: var(--dye-card);
    padding: 32px;
    border-radius: 14px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    text-align: center;
}

.back-link {
    display: inline-block;
    margin-bottom: 16px;
    color: var(--dye-muted);
    text-decoration: none;
    font-size: 0.9rem;
}

.gate-box h1 {
    margin: 0 0 8px;
    font-size: 1.4rem;
}

.gate-box p {
    color: var(--dye-muted);
    margin: 0 0 20px;
}

.gate-box form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.gate-box input[type="password"] {
    padding: 12px 14px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 1rem;
}

.gate-box button {
    padding: 12px 14px;
    border: none;
    border-radius: 8px;
    background: var(--dye-accent);
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
}

.gate-box button:hover {
    background: #3c66e0;
}

.gate-box button:disabled,
.gate-box input:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.error-message {
    background: #fdecea;
    color: #b42318;
    padding: 10px 12px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 0.9rem;
}
