/**
 * Recipe Box Component — Styles
 *
 * @package Gursoy_WP_Core
 */

/* Recipe Container */
.gs-recipe {
    background: var(--color-surface, #f7f7f7);
    border: 1px solid var(--color-border, #eeeeee);
    border-radius: var(--radius-lg, 8px);
    padding: var(--space-xl, 1.5rem);
    margin: var(--space-lg, 2rem) 0;
}

/* Header */
.gs-recipe-header {
    display: flex;
    gap: var(--space-lg, 2rem);
    margin-bottom: var(--space-lg, 2rem);
}

.gs-recipe-image {
    flex-shrink: 0;
    width: 200px;
    height: 200px;
    border-radius: var(--radius-md, 4px);
    overflow: hidden;
}

.gs-recipe-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gs-recipe-header-info {
    flex: 1;
    min-width: 0;
}

.gs-recipe-title {
    margin: 0 0 0.75rem;
    font-size: var(--font-size-2xl, 1.25rem);
    font-weight: var(--font-weight-bold, 700);
    color: var(--color-foreground, #1a1a1a);
    line-height: 1.3;
}

/* Meta */
.gs-recipe-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.gs-recipe-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: var(--font-size-sm, 0.85rem);
    color: var(--color-muted, #666666);
    background: #ffffff;
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius-full, 9999px);
    border: 1px solid var(--color-border, #eeeeee);
}

.gs-recipe-meta-item--total {
    font-weight: var(--font-weight-semibold, 600);
    color: var(--color-accent, #c133a7);
    border-color: var(--color-accent, #c133a7);
    background: rgba(198, 123, 92, 0.05);
}

.gs-recipe-meta-icon {
    font-size: 0.9em;
}

/* Sections */
.gs-recipe-section {
    margin-bottom: var(--space-lg, 2rem);
    padding-bottom: var(--space-lg, 2rem);
    border-bottom: 1px solid var(--color-border, #eeeeee);
}

.gs-recipe-section:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.gs-recipe-section-title {
    margin: 0 0 1rem;
    font-size: var(--font-size-md, 1.05rem);
    font-weight: var(--font-weight-semibold, 600);
    color: var(--color-foreground, #1a1a1a);
}

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

.gs-recipe-ingredient {
    padding: 0.5rem 0;
    border-bottom: 1px dashed var(--color-border, #eeeeee);
    font-size: var(--font-size-sm, 0.85rem);
    color: var(--color-content-text, #333333);
    line-height: 1.5;
}

.gs-recipe-ingredient:last-child {
    border-bottom: none;
}

.gs-recipe-ingredient::before {
    content: "\25CF";
    color: var(--color-accent, #c133a7);
    margin-right: 0.5rem;
    font-size: 0.6em;
    vertical-align: middle;
}

/* Steps */
.gs-recipe-steps {
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: recipe-step;
}

.gs-recipe-step {
    counter-increment: recipe-step;
    display: flex;
    gap: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--color-border, #eeeeee);
}

.gs-recipe-step:last-child {
    border-bottom: none;
}

.gs-recipe-step::before {
    content: counter(recipe-step);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: var(--color-accent, #c133a7);
    color: #ffffff;
    border-radius: var(--radius-full, 9999px);
    font-size: var(--font-size-sm, 0.85rem);
    font-weight: var(--font-weight-bold, 700);
    flex-shrink: 0;
}

.gs-recipe-step-text {
    font-size: var(--font-size-sm, 0.85rem);
    color: var(--color-content-text, #333333);
    line-height: 1.6;
    padding-top: 0.25rem;
}

/* Nutrition */
.gs-recipe-nutrition {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.gs-recipe-nutrition-item {
    font-size: var(--font-size-sm, 0.85rem);
}

.gs-recipe-nutrition-label {
    color: var(--color-muted, #666666);
}

.gs-recipe-nutrition-value {
    font-weight: var(--font-weight-semibold, 600);
    color: var(--color-foreground, #1a1a1a);
}

/* Notes */
.gs-recipe-notes {
    margin: 0;
    font-size: var(--font-size-sm, 0.85rem);
    color: var(--color-muted, #666666);
    font-style: italic;
    line-height: 1.6;
}

/* Mobile */
@media (max-width: 600px) {
    .gs-recipe-header {
        flex-direction: column;
    }

    .gs-recipe-image {
        width: 100%;
        height: 180px;
    }

    .gs-recipe-meta {
        gap: 0.5rem;
    }

    .gs-recipe-meta-item {
        font-size: var(--font-size-xs, 0.75rem);
        padding: 0.25rem 0.5rem;
    }
}
