/* RecipeTips Pro - Recipe Card Component Styles */

.recipe-container {
    padding: 30px 0 60px;
}

.recipe-header-card {
    background: #fff;
    border-radius: var(--rt-radius-lg);
    border: 1px solid var(--rt-border);
    padding: 36px;
    margin-bottom: 32px;
    box-shadow: var(--rt-shadow-sm);
}

.recipe-breadcrumbs {
    font-size: 13px;
    color: var(--rt-muted);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.recipe-h1 {
    font-family: var(--rt-font-serif);
    font-size: 38px;
    font-weight: 800;
    line-height: 1.2;
    margin: 0 0 16px;
    color: var(--rt-dark);
}

.recipe-subhead {
    font-size: 18px;
    color: var(--rt-muted);
    line-height: 1.5;
    margin: 0 0 24px;
}

.recipe-author-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    padding-top: 20px;
    border-top: 1px solid var(--rt-border);
}

.author-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    background: #eee;
}

.author-meta {
    font-size: 14px;
}

.author-name {
    font-weight: 700;
    color: var(--rt-dark);
}

.author-dates {
    font-size: 12px;
    color: var(--rt-muted);
}

.recipe-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.diet-badge {
    background: var(--rt-accent-light);
    color: var(--rt-accent);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
}

/* Featured Media */
.recipe-hero-image {
    width: 100%;
    max-height: 540px;
    border-radius: var(--rt-radius-lg);
    object-fit: cover;
    margin-bottom: 32px;
    box-shadow: var(--rt-shadow-sm);
}

/* Quick Stats Bar */
.recipe-quick-stats {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    background: #fff;
    border: 1px solid var(--rt-border);
    border-radius: var(--rt-radius-md);
    padding: 20px;
    margin-bottom: 32px;
    text-align: center;
    box-shadow: var(--rt-shadow-sm);
}

.stat-box {
    border-right: 1px solid var(--rt-border);
    padding: 0 10px;
}

.stat-box:last-child {
    border-right: none;
}

.stat-label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--rt-muted);
    margin-bottom: 6px;
}

.stat-value {
    font-size: 20px;
    font-weight: 800;
    color: var(--rt-dark);
}

/* Interactive Controls Toolbar */
.recipe-controls-toolbar {
    background: #fff;
    border: 1px solid var(--rt-border);
    border-radius: var(--rt-radius-md);
    padding: 16px 24px;
    margin-bottom: 36px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.toolbar-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.rt-servings-control {
    display: inline-flex;
    align-items: center;
    background: var(--rt-light);
    border: 1px solid var(--rt-border);
    border-radius: var(--rt-radius-sm);
    overflow: hidden;
}

.btn-servings {
    background: none;
    border: none;
    width: 36px;
    height: 36px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-servings:hover {
    background: #e2dfda;
}

.current-servings {
    padding: 0 14px;
    font-weight: 800;
    font-size: 15px;
}

/* Unit Toggle Switch */
.unit-toggle-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.unit-toggle-label input {
    accent-color: var(--rt-primary);
}

/* Cook Mode Button */
#rt-cook-mode-btn {
    background: var(--rt-primary-light);
    color: var(--rt-primary-dark);
    border: 1px solid #ffdcd6;
    padding: 8px 16px;
    border-radius: var(--rt-radius-sm);
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}

#rt-cook-mode-btn.active {
    background: var(--rt-primary);
    color: #fff;
    box-shadow: 0 0 10px rgba(217, 56, 30, 0.4);
}

/* Main Recipe Layout */
.recipe-main-layout {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    align-items: start;
}

/* Ingredients Section */
.recipe-ingredients-box {
    background: #fff;
    border: 1px solid var(--rt-border);
    border-radius: var(--rt-radius-lg);
    padding: 28px;
    box-shadow: var(--rt-shadow-sm);
    position: sticky;
    top: 92px;
}

.ingredients-title {
    font-family: var(--rt-font-serif);
    font-size: 22px;
    font-weight: 800;
    margin: 0 0 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--rt-primary);
}

.ingredients-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ingredient-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 15px;
    cursor: pointer;
    line-height: 1.4;
}

.ingredient-item input[type="checkbox"] {
    margin-top: 3px;
    width: 18px;
    height: 18px;
    accent-color: var(--rt-primary);
    cursor: pointer;
}

.ingredient-item.completed {
    opacity: 0.5;
    text-decoration: line-through;
}

.ingredient-item .qty {
    font-weight: 700;
    color: var(--rt-dark);
}

/* Instructions Section */
.recipe-instructions-box {
    background: #fff;
    border: 1px solid var(--rt-border);
    border-radius: var(--rt-radius-lg);
    padding: 36px;
    box-shadow: var(--rt-shadow-sm);
}

.instructions-title {
    font-family: var(--rt-font-serif);
    font-size: 24px;
    font-weight: 800;
    margin: 0 0 24px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--rt-primary);
}

.instruction-step {
    display: flex;
    gap: 20px;
    margin-bottom: 28px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--rt-border);
}

.instruction-step:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.step-number {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--rt-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 16px;
    flex-shrink: 0;
}

.step-content {
    flex-grow: 1;
}

.step-text {
    font-size: 16px;
    line-height: 1.6;
    margin: 0 0 12px;
    color: var(--rt-dark);
}

.step-done-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--rt-muted);
    cursor: pointer;
}

.instruction-step.step-done .step-text {
    opacity: 0.6;
    text-decoration: line-through;
}

/* Serious Eats "Why It Works" Culinary Science Box */
.science-callout-box {
    background: #fdfbf7;
    border-left: 4px solid #b87a28;
    border-radius: 0 var(--rt-radius-md) var(--rt-radius-md) 0;
    padding: 24px;
    margin: 36px 0;
}

.science-callout-title {
    font-family: var(--rt-font-serif);
    font-size: 18px;
    font-weight: 800;
    color: #8f5a14;
    margin: 0 0 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.science-callout-text {
    font-size: 15px;
    line-height: 1.6;
    color: #4a3e2e;
    margin: 0;
}

/* Nutrition Table */
.nutrition-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    background: var(--rt-light);
    padding: 20px;
    border-radius: var(--rt-radius-md);
    margin: 32px 0;
    text-align: center;
}

.nutrition-pill {
    background: #fff;
    padding: 12px;
    border-radius: var(--rt-radius-sm);
    border: 1px solid var(--rt-border);
}

.nutri-name {
    font-size: 11px;
    font-weight: 700;
    color: var(--rt-muted);
    text-transform: uppercase;
}

.nutri-val {
    font-size: 16px;
    font-weight: 800;
    color: var(--rt-dark);
}

@media (max-width: 900px) {
    .recipe-main-layout { grid-template-columns: 1fr; }
    .recipe-ingredients-box { position: static; }
    .recipe-quick-stats { grid-template-columns: repeat(3, 1fr); gap: 12px; }
    .stat-box { border-right: none; }
}
