/* Recipe Page Styles */

.recipe-page {
    padding-top: 80px;
}

.recipe-header {
    background: var(--brand-dark);
    padding: 60px 24px;
    text-align: center;
    color: var(--brand-cream);
}

.back-link {
    display: inline-block;
    color: var(--brand-golden);
    text-decoration: none;
    font-size: 14px;
    margin-bottom: 24px;
    transition: opacity 0.2s;
}

.back-link:hover {
    opacity: 0.8;
}

.recipe-header h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2.8rem;
    margin-bottom: 16px;
    color: var(--brand-cream);
}

.recipe-intro {
    font-size: 1.2rem;
    color: rgba(250, 247, 242, 0.8);
    max-width: 600px;
    margin: 0 auto 32px;
    line-height: 1.6;
}

.recipe-meta {
    display: flex;
    justify-content: center;
    gap: 48px;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.meta-icon {
    font-size: 24px;
}

.meta-item div {
    text-align: left;
}

.meta-item strong {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--brand-golden);
}

.meta-item span {
    font-size: 16px;
}

/* Recipe Content Layout */
.recipe-content {
    max-width: 1100px;
    margin: 0 auto;
    padding: 48px 24px;
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 48px;
}

.recipe-main {
    min-width: 0;
}

.recipe-image-large {
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 40px;
    box-shadow: var(--shadow-lg);
}

.recipe-image-large img {
    width: 100%;
    height: auto;
    display: block;
}

/* Recipe Sections */
.recipe-section {
    margin-bottom: 40px;
}

.recipe-section h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: var(--brand-dark);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--brand-golden);
}

/* Ingredients */
.ingredients-list {
    list-style: none;
    padding: 0;
}

.ingredients-list > li {
    padding: 12px 0;
    padding-left: 24px;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    position: relative;
    line-height: 1.7;
}

.ingredients-list > li::before {
    content: "✦";
    color: var(--brand-golden);
    font-size: 12px;
    position: absolute;
    left: 2px;
    top: 14px;
}

/* Instructions */
.instructions-list {
    list-style: none;
    padding: 0;
    counter-reset: step;
}

.instructions-list li {
    padding: 20px 0;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    display: flex;
    gap: 20px;
    line-height: 1.7;
}

.instructions-list li::before {
    counter-increment: step;
    content: counter(step);
    background: var(--brand-golden);
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    flex-shrink: 0;
}

/* Rich content from editor */
.rich-content {
    line-height: 1.8;
}

.rich-content p {
    margin-bottom: 8px;
}

.rich-content strong {
    font-weight: 700;
}

.rich-content em {
    font-style: italic;
}

.rich-content ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 0 8px 0 !important;
    counter-reset: none !important;
}

.rich-content ul > li {
    padding: 8px 0 8px 28px !important;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    position: relative !important;
    line-height: 1.7;
    display: block !important;
    gap: 0 !important;
}

.rich-content ul > li::before {
    content: "→" !important;
    color: var(--brand-golden) !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    position: absolute !important;
    left: 4px !important;
    top: 8px !important;
    background: none !important;
    min-width: unset !important;
    width: auto !important;
    height: auto !important;
    border-radius: 0 !important;
    counter-increment: none !important;
}

.instructions-list.rich-content > ol,
.rich-content ol {
    list-style: none;
    padding: 0;
    counter-reset: step;
}

/* Top-level numbered items — golden circle */
.instructions-list.rich-content > ol > li:not([class*="ql-indent"]),
.rich-content ol li:not([class*="ql-indent"]) {
    padding: 20px 0;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    display: flex;
    gap: 20px;
    line-height: 1.7;
}

.instructions-list.rich-content > ol > li:not([class*="ql-indent"])::before,
.rich-content ol li:not([class*="ql-indent"])::before {
    counter-increment: step;
    content: counter(step);
    background: var(--brand-golden);
    color: white;
    min-width: 32px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    flex-shrink: 0;
}

/* Sub-items (Quill indent level 1) — indented with a dash */
.rich-content ol li.ql-indent-1,
.rich-content ul li.ql-indent-1 {
    counter-increment: none !important;
    padding: 8px 0 8px 52px !important;
    border-bottom: 1px solid rgba(0,0,0,0.04) !important;
    display: block !important;
    gap: 0 !important;
    line-height: 1.7;
    position: relative;
    font-size: 0.95em;
    color: #5a4233;
}

.rich-content ol li.ql-indent-1::before,
.rich-content ul li.ql-indent-1::before {
    content: "–" !important;
    background: none !important;
    color: var(--brand-golden) !important;
    font-weight: 700 !important;
    width: auto !important;
    min-width: unset !important;
    height: auto !important;
    border-radius: 0 !important;
    counter-increment: none !important;
    position: absolute;
    left: 32px;
    top: 8px;
    display: block !important;
    font-size: 16px !important;
    flex-shrink: unset !important;
}

/* Sub-items level 2 */
.rich-content ol li.ql-indent-2,
.rich-content ul li.ql-indent-2 {
    counter-increment: none !important;
    padding: 6px 0 6px 72px !important;
    display: block !important;
    gap: 0 !important;
    line-height: 1.7;
    position: relative;
    font-size: 0.92em;
    color: #6b5040;
    border-bottom: none !important;
}

.rich-content ol li.ql-indent-2::before,
.rich-content ul li.ql-indent-2::before {
    content: "·" !important;
    background: none !important;
    color: var(--brand-golden) !important;
    font-weight: 900 !important;
    font-size: 20px !important;
    width: auto !important;
    min-width: unset !important;
    height: auto !important;
    border-radius: 0 !important;
    counter-increment: none !important;
    position: absolute;
    left: 56px;
    top: 4px;
    display: block !important;
}

.rich-content h1, .rich-content h2, .rich-content h3 {
    margin: 16px 0 8px;
    color: var(--brand-dark);
}

.rich-content u {
    text-decoration: underline;
}

.ingredients-list.rich-content ul li::before {
    content: "✦";
    font-size: 12px;
    top: 12px;
}

.starter-prep-box.rich-content ul li::before,
.tips-box.rich-content ul li::before {
    content: "💡";
    font-size: 14px;
    top: 12px;
}

/* Starter Prep */
.starter-prep-section {
    background: #fdf6ee;
    padding: 24px;
    border-radius: var(--radius);
    border-left: 4px solid var(--brand-golden);
}

.starter-prep-section h2 {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 16px;
    color: var(--brand-dark);
}

.starter-prep-box p {
    margin-bottom: 12px;
    line-height: 1.7;
}

.starter-prep-box p:last-child {
    margin-bottom: 0;
}

/* Tips */
.tips-section {
    background: var(--brand-cream);
    padding: 24px;
    border-radius: var(--radius);
}

.tips-section h2 {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 16px;
}

.tips-box p {
    margin-bottom: 12px;
    padding-left: 28px;
    position: relative;
}

.tips-box p::before {
    content: "💡";
    position: absolute;
    left: 0;
}

.tips-box p:last-child {
    margin-bottom: 0;
}

/* Sidebar */
.recipe-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.sidebar-card {
    background: var(--brand-dark);
    padding: 28px;
    border-radius: var(--radius);
    color: var(--brand-cream);
    text-align: center;
}

.sidebar-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    margin-bottom: 12px;
}

.sidebar-card > p {
    font-size: 14px;
    color: rgba(250, 247, 242, 0.7);
    margin-bottom: 20px;
}

.sidebar-form input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid rgba(212, 165, 116, 0.3);
    border-radius: var(--radius);
    background: rgba(255,255,255,0.05);
    color: var(--brand-cream);
    font-size: 14px;
    margin-bottom: 12px;
}

.sidebar-form input::placeholder {
    color: rgba(250, 247, 242, 0.5);
}

.sidebar-form input:focus {
    outline: none;
    border-color: var(--brand-golden);
}

.sidebar-form button {
    width: 100%;
    padding: 14px;
    background: var(--brand-golden);
    color: white;
    border: none;
    border-radius: var(--radius);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.sidebar-form button:hover {
    background: var(--brand-golden-dark);
}

.sidebar-note {
    font-size: 12px;
    color: rgba(250, 247, 242, 0.5);
    margin-top: 12px;
    margin-bottom: 0;
}

.sidebar-success {
    background: rgba(212, 165, 116, 0.2);
    padding: 16px;
    border-radius: var(--radius);
    color: var(--brand-golden);
    font-weight: 500;
}

/* Responsive */
@media (max-width: 900px) {
    .recipe-content {
        grid-template-columns: 1fr;
    }
    
    .recipe-sidebar {
        position: static;
    }
    
    .recipe-header h1 {
        font-size: 2rem;
    }
    
    .recipe-meta {
        gap: 24px;
    }
}

@media (max-width: 600px) {
    .recipe-header {
        padding: 40px 16px;
    }
    
    .recipe-header h1 {
        font-size: 1.6rem;
    }
    
    .recipe-intro {
        font-size: 1rem;
    }
    
    .recipe-meta {
        flex-direction: column;
        gap: 16px;
    }
    
    .recipe-content {
        padding: 24px 16px;
    }
}
