/* Shared styles for recipe and cocktail detail pages */
.detail-container,
.recipe-container,
.cocktail-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

.detail-header,
.recipe-header,
.cocktail-header {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.detail-title,
.recipe-title,
.cocktail-title {
    font-size: var(--font-size-3xl);
    font-weight: 300;
    margin-bottom: var(--spacing-md);
    color: var(--text-primary);
}

.detail-description,
.recipe-description,
.cocktail-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-lg);
}

.detail-meta,
.recipe-meta,
.cocktail-meta {
    display: flex;
    justify-content: center;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
    flex-wrap: wrap;
}

.detail-meta-item,
.recipe-time,
.recipe-servings,
.cocktail-servings {
    background: var(--bg-secondary);
    padding: 0.5rem var(--spacing-md);
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

/* Serving Calculator - shared between recipes and cocktails */
.serving-calculator {
    background: var(--bg-secondary);
    padding: var(--spacing-lg);
    border-radius: 12px;
    box-shadow: 0 4px 6px var(--shadow-light);
    margin-bottom: var(--spacing-xl);
    text-align: center;
    transition: all 0.3s ease;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.serving-calculator-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-md);
}

.serving-calculator-header h3 {
    margin: 0;
    color: var(--text-primary);
    font-size: 1.2rem;
}

.serving-toggle-btn {
    background: var(--accent-primary);
    color: white;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px var(--shadow-light);
}

.serving-toggle-btn:hover {
    background: var(--accent-hover);
    transform: scale(1.1);
}

.serving-calculator.minimised {
    padding: var(--spacing-md) var(--spacing-lg);
}

.serving-calculator.minimised .serving-input,
.serving-calculator.minimised .measurement-toggle,
.serving-calculator.minimised .pitcher-button,
.serving-calculator.minimised .keepalive-section {
    display: none;
}

.serving-calculator h3 {
    margin-bottom: var(--spacing-md);
    color: var(--text-primary);
}

/* Keepalive Section - shared */
.keepalive-section {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.keepalive-btn {
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--azure-blue-700) 100%);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: var(--font-size-base);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 2px 4px var(--shadow-light);
    font-family: inherit;
}

.keepalive-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px var(--shadow-medium);
}

.keepalive-btn.active {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    box-shadow: 0 2px 4px rgba(40, 167, 69, 0.3);
}

.keepalive-btn.active:hover {
    box-shadow: 0 4px 8px rgba(40, 167, 69, 0.4);
}

.keepalive-icon {
    font-size: 1.1rem;
}

.keepalive-text {
    font-weight: 500;
}

.keepalive-note {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-style: italic;
}

/* Ingredients section - shared */
.detail-ingredients,
.recipe-ingredients,
.cocktail-ingredients {
    background: var(--bg-secondary);
    padding: var(--spacing-lg);
    border-radius: 12px;
    box-shadow: 0 4px 6px var(--shadow-light);
    margin-bottom: var(--spacing-lg);
    border: 1px solid var(--border-color);
}

.detail-ingredients h3 {
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.ingredients-list {
    list-style: none;
    margin-bottom: var(--spacing-lg);
}

.ingredients-list:last-child {
    margin-bottom: 0;
}

.ingredients-list li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ingredients-list li:last-child {
    border-bottom: none;
}

.ingredient-amount {
    font-weight: 600;
    color: var(--text-primary);
    min-width: 3rem;
    flex-shrink: 0;
}

.ingredient-name {
    color: var(--text-secondary);
    flex: 1;
}

/* Instructions section - shared */
.detail-instructions,
.recipe-instructions,
.cocktail-instructions {
    background: var(--bg-secondary);
    padding: var(--spacing-lg);
    border-radius: 12px;
    box-shadow: 0 4px 6px var(--shadow-light);
    border: 1px solid var(--border-color);
}

.detail-instructions h3 {
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.detail-instructions h4 {
    margin: var(--spacing-lg) 0 var(--spacing-md) 0;
    color: var(--accent-primary);
    font-size: 1.2rem;
}

.instructions-list {
    list-style: none;
    counter-reset: step-counter;
}

.instructions-list li {
    counter-increment: step-counter;
    padding: var(--spacing-md) 0;
    border-bottom: 1px solid var(--border-color);
    position: relative;
    padding-left: 3rem;
}

.instructions-list li:last-child {
    border-bottom: none;
}

.instructions-list li::before {
    content: counter(step-counter);
    position: absolute;
    left: 0;
    top: var(--spacing-md);
    background: var(--accent-primary);
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 500;
}

.instructions-list ul {
    list-style: disc;
    margin: 0.5rem 0 0 var(--spacing-md);
    counter-reset: none;
}

.instructions-list ul li {
    counter-increment: none;
    padding: 0.25rem 0;
    border-bottom: none;
    padding-left: 0;
    position: static;
}

.instructions-list ul li::before {
    display: none;
}

/* Tips section - shared */
.detail-tips,
.recipe-tips,
.cocktail-tips {
    background: var(--bg-secondary);
    padding: var(--spacing-lg);
    border-radius: 12px;
    box-shadow: 0 4px 6px var(--shadow-light);
    margin-top: var(--spacing-lg);
    border: 1px solid var(--border-color);
}

.detail-tips h3 {
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.detail-tips ul {
    list-style: none;
}

.detail-tips li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-secondary);
}

.detail-tips li:last-child {
    border-bottom: none;
}

/* Responsive detail pages */
@media screen and (max-width: 768px) {
    .serving-input {
        flex-direction: column;
        gap: 0.5rem;
    }

    .ingredients-list {
        columns: 1;
    }
}

