/* Recipe Book — YouTube-style grid on benhof.ca retro theme */

.recipebook-page { min-height: 100vh; position: relative; }

.recipebook-main {
    max-width: 72rem;
    margin: 0 auto;
    padding: 6rem 1.5rem 4rem;
}

.recipebook-header { margin-bottom: 2rem; }

.recipebook-kicker {
    font-family: var(--font-mono);
    font-size: .75rem;
    letter-spacing: .15em;
    text-transform: uppercase;
    color: var(--retro-cyan);
    margin-bottom: .5rem;
}

.recipebook-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    color: #fafafa;
    margin-bottom: .5rem;
}

.recipebook-subtitle { color: #71717a; font-size: .9375rem; }

.recipebook-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.recipebook-tabs {
    display: flex;
    gap: .5rem;
    flex-wrap: wrap;
}

.recipebook-tab {
    font-family: var(--font-mono);
    font-size: .8125rem;
    padding: .5rem 1rem;
    border: 1px solid #27272a;
    background: #18181b;
    color: #a1a1aa;
    cursor: pointer;
    transition: border-color .2s, color .2s;
}

.recipebook-tab:hover { color: #d4d4d8; border-color: #3f3f46; }

.recipebook-tab--active {
    border-color: var(--retro-cyan);
    color: var(--retro-cyan);
}

.recipebook-status {
    padding: .75rem 1rem;
    margin-bottom: 1rem;
    border: 1px solid #27272a;
    font-size: .875rem;
    background: #18181b;
}

.recipebook-status--ok { border-color: color-mix(in srgb, var(--retro-cyan) 40%, transparent); color: var(--retro-cyan); }
.recipebook-status--error { border-color: color-mix(in srgb, #f87171 40%, transparent); color: #f87171; }

.recipebook-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.25rem;
}

.recipebook-card {
    background: #18181b;
    border: 1px solid #27272a;
    cursor: pointer;
    transition: border-color .2s, transform .15s;
    overflow: hidden;
}

.recipebook-card:hover {
    border-color: color-mix(in srgb, var(--retro-cyan) 50%, transparent);
    transform: translateY(-2px);
}

.recipebook-card__thumb {
    aspect-ratio: 16 / 9;
    background: #09090b;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.recipebook-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.recipebook-card__placeholder {
    font-size: 2.5rem;
    color: #3f3f46;
}

.recipebook-card__body { padding: .875rem 1rem 1rem; }

.recipebook-card__title {
    font-size: 1rem;
    font-weight: 600;
    color: #fafafa;
    margin-bottom: .375rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.recipebook-card__meta {
    font-size: .8125rem;
    color: #71717a;
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

.recipebook-card__score { color: var(--retro-pink); }

.recipebook-detail {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 900px) {
    .recipebook-detail { grid-template-columns: 1.4fr 1fr; }
}

.recipebook-detail__cover {
    aspect-ratio: 16 / 9;
    background: #09090b;
    border: 1px solid #27272a;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.recipebook-detail__cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.recipebook-detail__title {
    font-size: 1.75rem;
    color: #fafafa;
    margin-bottom: .5rem;
}

.recipebook-detail__author {
    color: var(--retro-cyan);
    font-size: .9375rem;
    cursor: pointer;
    margin-bottom: 1rem;
}

.recipebook-detail__author:hover { text-decoration: underline; }

.recipebook-detail__desc {
    color: #a1a1aa;
    font-size: .9375rem;
    line-height: 1.6;
    margin-bottom: 1.25rem;
    white-space: pre-wrap;
}

.recipebook-votes {
    display: flex;
    gap: .75rem;
    margin-bottom: 1.5rem;
}

.recipebook-vote-btn {
    font-family: var(--font-mono);
    font-size: .8125rem;
    padding: .5rem 1rem;
    border: 1px solid #27272a;
    background: #18181b;
    color: #a1a1aa;
    cursor: pointer;
}

.recipebook-vote-btn--active-like {
    border-color: var(--retro-cyan);
    color: var(--retro-cyan);
}

.recipebook-vote-btn--active-dislike {
    border-color: #f87171;
    color: #f87171;
}

.recipebook-section {
    margin-bottom: 1.5rem;
}

.recipebook-section__title {
    font-size: .875rem;
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--retro-pink);
    margin-bottom: .75rem;
}

.recipebook-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.recipebook-list li {
    padding: .375rem 0;
    color: #d4d4d8;
    font-size: .9375rem;
    border-bottom: 1px solid #27272a;
}

.recipebook-steps {
    counter-reset: step;
    list-style: none;
    padding: 0;
    margin: 0;
}

.recipebook-steps li {
    counter-increment: step;
    padding: .75rem 0 .75rem 2.5rem;
    position: relative;
    color: #d4d4d8;
    font-size: .9375rem;
    line-height: 1.5;
    border-bottom: 1px solid #27272a;
}

.recipebook-steps li::before {
    content: counter(step);
    position: absolute;
    left: 0;
    top: .75rem;
    width: 1.5rem;
    height: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    font-size: .75rem;
    background: #27272a;
    color: var(--retro-cyan);
}

.recipebook-comments {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #27272a;
}

.recipebook-comment {
    padding: .875rem 0;
    border-bottom: 1px solid #27272a;
}

.recipebook-comment__author {
    font-size: .8125rem;
    color: var(--retro-cyan);
    margin-bottom: .25rem;
}

.recipebook-comment__body {
    font-size: .9375rem;
    color: #d4d4d8;
    line-height: 1.5;
}

.recipebook-comment__time {
    font-size: .75rem;
    color: #52525b;
    margin-top: .25rem;
}

.recipebook-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 40rem;
}

.recipebook-label {
    display: flex;
    flex-direction: column;
    gap: .375rem;
    font-size: .8125rem;
    color: #a1a1aa;
}

.recipebook-input,
.recipebook-textarea {
    font-family: inherit;
    font-size: .9375rem;
    padding: .625rem .75rem;
    background: #09090b;
    border: 1px solid #27272a;
    color: #fafafa;
}

.recipebook-textarea { min-height: 5rem; resize: vertical; }

.recipebook-input:focus,
.recipebook-textarea:focus {
    outline: none;
    border-color: var(--retro-cyan);
}

.recipebook-dynamic-row {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    align-items: flex-end;
    padding: .75rem;
    background: #18181b;
    border: 1px solid #27272a;
    margin-bottom: .5rem;
}

.recipebook-dynamic-row .recipebook-input { flex: 1; min-width: 8rem; }

.recipebook-channel {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #18181b;
    border: 1px solid #27272a;
}

.recipebook-channel__name {
    font-size: 1.5rem;
    color: #fafafa;
    margin-bottom: .5rem;
}

.recipebook-channel__bio {
    color: #a1a1aa;
    font-size: .9375rem;
    margin-bottom: 1rem;
}

.recipebook-channel__stats {
    display: flex;
    gap: 1.5rem;
    font-size: .8125rem;
    color: #71717a;
    margin-bottom: 1rem;
}

.recipebook-back {
    display: inline-block;
    margin-bottom: 1.5rem;
    font-size: .875rem;
    color: var(--retro-cyan);
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
}

.recipebook-back:hover { text-decoration: underline; }

.recipebook-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: #71717a;
    font-size: .9375rem;
}

.recipebook-signin-hint {
    padding: 1rem;
    background: #18181b;
    border: 1px dashed #3f3f46;
    color: #a1a1aa;
    font-size: .875rem;
    margin-bottom: 1rem;
}

.recipebook-form__actions {
    display: flex;
    gap: .75rem;
    flex-wrap: wrap;
}
