/*
 * Recipe Card Styles
 */

.recipe-card {
    background: var(--bg-tertiary);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

/* Recipe Header */
.recipe-header {
    padding: 25px;
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-tertiary));
    border-bottom: 1px solid var(--border-color);
}

.recipe-title-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 15px;
    flex-wrap: wrap;
}

.recipe-name {
    font-size: 1.6rem;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.3;
}

.recipe-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.recipe-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
    font-size: 0.85rem;
}

.recipe-meta span {
    background: var(--bg-primary);
    padding: 4px 12px;
    border-radius: 15px;
    color: var(--text-secondary);
}

.recipe-meta span::before {
    margin-right: 5px;
}

.recipe-date::before { content: '📅'; }
.recipe-method::before { content: '🔧'; }
.recipe-style::before { content: '🏷️'; }
.recipe-batch-size::before { content: '📦'; }

/* Specifications */
.recipe-specs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 15px;
    padding: 20px 25px;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
}

.spec-item {
    text-align: center;
}

.spec-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
}

.spec-value {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--accent-primary);
}

.srm-value {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.srm-swatch {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    border: 1px solid rgba(255,255,255,0.2);
}

/* Affiliate Notice */
.affiliate-notice {
    padding: 12px 25px;
    background: rgba(243, 156, 18, 0.1);
    border-bottom: 1px solid var(--border-color);
    font-size: 0.8rem;
    color: var(--text-muted);
    text-align: center;
}

/* Recipe Sections */
.recipe-sections {
    padding: 0 25px 25px;
}

.recipe-section {
    margin-top: 25px;
}

.recipe-section h3 {
    color: var(--accent-primary);
    font-size: 1.1rem;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-color);
}

/* Recipe Tables */
.recipe-table {
    width: 100%;
    border-collapse: collapse;
}

.recipe-table th,
.recipe-table td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.recipe-table th {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.recipe-table td {
    color: var(--text-primary);
}

.recipe-table td a {
    color: var(--accent-primary);
}

.recipe-table tr:last-child td {
    border-bottom: none;
}

.recipe-table tr:hover {
    background: rgba(255,255,255,0.02);
}

/* Yeast Info */
.yeast-info {
    background: var(--bg-primary);
    padding: 15px;
    border-radius: 8px;
}

.yeast-info .yeast-name {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.yeast-info .yeast-name a {
    color: var(--accent-primary);
}

.yeast-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
    font-size: 0.9rem;
}

.yeast-detail {
    color: var(--text-secondary);
}

.yeast-detail strong {
    color: var(--text-primary);
}

/* Notes */
.recipe-notes {
    background: var(--bg-primary);
    padding: 15px;
    border-radius: 8px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Process Steps */
.process-steps {
    background: var(--bg-primary);
    padding: 20px 20px 20px 35px;
    border-radius: 8px;
    margin: 0;
}

.process-steps li {
    padding: 8px 0;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-color);
}

.process-steps li:last-child {
    border-bottom: none;
}

.process-steps li::marker {
    color: var(--accent-primary);
    font-weight: 600;
}

/* Shopping Lists */
.shopping-lists {
    display: grid;
    gap: 15px;
}

.shopping-category {
    background: var(--bg-primary);
    border-radius: 8px;
    overflow: hidden;
}

.shopping-category h4 {
    padding: 10px 15px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 0.9rem;
    margin: 0;
    border-bottom: 1px solid var(--border-color);
}

.shopping-category ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.shopping-category li {
    padding: 10px 15px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.shopping-category li:last-child {
    border-bottom: none;
}

.shopping-amount {
    color: var(--text-muted);
    font-size: 0.9rem;
    white-space: nowrap;
}

.shopping-item {
    flex: 1;
}

.shopping-item a {
    color: var(--accent-primary);
}

/* Spirits Disclaimer */
.spirits-disclaimer {
    margin: 25px;
    padding: 15px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid var(--error);
    border-radius: 8px;
    color: var(--error);
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 600px) {
    .recipe-header {
        padding: 20px 15px;
    }
    
    .recipe-name {
        font-size: 1.3rem;
    }
    
    .recipe-specs {
        padding: 15px;
        grid-template-columns: repeat(3, 1fr);
    }
    
    .spec-value {
        font-size: 1.1rem;
    }
    
    .recipe-sections {
        padding: 0 15px 20px;
    }
    
    .recipe-table th,
    .recipe-table td {
        padding: 8px;
        font-size: 0.9rem;
    }
}

/* Print Styles */
@media print {
    .recipe-card {
        background: white;
        color: black;
        border: none;
    }
    
    .recipe-header {
        background: none;
        border-bottom: 2px solid #333;
    }
    
    .recipe-name {
        color: black;
    }
    
    .recipe-meta span {
        background: #f0f0f0;
        color: #333;
    }
    
    .recipe-specs {
        background: #f9f9f9;
    }
    
    .spec-value {
        color: #c17f00;
    }
    
    .recipe-section h3 {
        color: #c17f00;
    }
    
    .recipe-table th {
        color: #666;
    }
    
    .recipe-table td,
    .recipe-notes,
    .process-steps li {
        color: #333;
    }
    
    .yeast-info,
    .recipe-notes,
    .process-steps,
    .shopping-category {
        background: #f9f9f9;
    }
}
