

/* Start:/local/components/china/recipes/templates/.default/style.css?177274337012642*/
/* ===== Recipes Component — .rec- prefix ===== */

/* --- Base --- */
.rec-page {
    max-width: 1280px;
    margin: 0 auto;
    padding: 20px 0px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #333;
}

/* --- Hero --- */
.rec-hero {
    background: linear-gradient(135deg, #c62828, #8B1A1A);
    color: #fff;
    padding: 48px 32px;
    border-radius: 16px;
    margin-bottom: 32px;
    text-align: center;
}
.rec-hero__title {
    font-size: 2rem;
    margin: 0 0 8px;
}
.rec-hero__subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    margin: 0;
}

/* --- Section --- */
.rec-section {
    margin-bottom: 40px;
}
.rec-section__title {
    font-size: 1.5rem;
    color: #8B1A1A;
    margin: 0 0 20px;
    padding-bottom: 8px;
    border-bottom: 2px solid #c62828;
}

/* --- Grids --- */
.rec-grid {
    display: grid;
    gap: 20px;
}
.rec-grid--4 { grid-template-columns: repeat(4, 1fr); }
.rec-grid--3 { grid-template-columns: repeat(3, 1fr); }

/* --- Recipe Card --- */
.rec-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.2s, transform 0.2s;
}
.rec-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    transform: translateY(-2px);
}
.rec-card__image--placeholder {
    background: linear-gradient(135deg, #fce4ec, #ffcdd2);
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.rec-card__emoji {
    font-size: 3rem;
}
.rec-card__body {
    padding: 14px;
}
.rec-card__title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 4px;
}
.rec-card__cn {
    font-size: 0.85rem;
    color: #999;
    margin-bottom: 6px;
}
.rec-card__preview {
    font-size: 0.82rem;
    color: #666;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.rec-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

/* --- Category Card --- */
.rec-cat-card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    padding: 16px;
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.2s, transform 0.2s;
}
.rec-cat-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    transform: translateY(-2px);
}
.rec-cat-card__icon {
    font-size: 2.2rem;
    flex-shrink: 0;
}
.rec-cat-card__name {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 2px;
}
.rec-cat-card__count {
    font-size: 0.82rem;
    color: #999;
    margin-bottom: 6px;
}
.rec-cat-card__preview {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 0.78rem;
    color: #888;
}

/* --- Badges --- */
.rec-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.75rem;
    background: #f5f5f5;
    color: #666;
    white-space: nowrap;
}
.rec-badge--time { background: #e3f2fd; color: #1565c0; }
.rec-badge--easy { background: #e8f5e9; color: #2e7d32; }
.rec-badge--medium { background: #fff3e0; color: #e65100; }
.rec-badge--hard { background: #fce4ec; color: #c62828; }
.rec-badge--method { background: #f3e5f5; color: #6a1b9a; }
.rec-badge--region { background: #fff8e1; color: #f57f17; }

/* --- Rating --- */
.rec-rating {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    margin-top: 6px;
}
.rec-rating--small { font-size: 0.85rem; }
.rec-rating__star {
    color: #ddd;
    cursor: pointer;
    transition: color 0.15s;
    user-select: none;
}
.rec-rating__star--active { color: #FFB800; }
.rec-rating__star--hover { color: #FFC940; }
.rec-rating__value {
    font-weight: 600;
    margin-left: 4px;
    color: #333;
    font-size: 0.85em;
}
.rec-rating__count {
    color: #999;
    font-size: 0.8em;
    margin-left: 2px;
}

/* --- Share Buttons --- */
.rec-share {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    flex-wrap: wrap;
}
.rec-share--bottom {
    padding-top: 20px;
    border-top: 1px solid #eee;
    margin-top: 24px;
}
.rec-share__label {
    font-size: 0.85rem;
    color: #888;
}
.rec-share__btn {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: transform 0.15s, filter 0.15s;
    padding: 0;
}
.rec-share__btn:hover {
    transform: scale(1.1);
    filter: brightness(1.1);
}
.rec-share__btn--vk { background: #4680C2; }
.rec-share__btn--tg { background: #26A5E4; }
.rec-share__btn--ok { background: #EE8208; }
.rec-share__btn--wa { background: #25D366; }
.rec-share__btn--pin { background: #E60023; }
.rec-share__btn--copy { background: #666; }

/* --- Banner --- */
.rec-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: #fce4ec;
    border: 2px dashed #c62828;
    border-radius: 12px;
    padding: 20px;
    text-decoration: none;
    color: #c62828;
    font-size: 1.1rem;
    font-weight: 600;
    transition: background 0.2s;
}
.rec-banner:hover { background: #ffcdd2; }
.rec-banner__icon { font-size: 1.5rem; }
.rec-banner__arrow { font-size: 1.3rem; }

/* --- Page Header --- */
.rec-page__title {
    font-size: 1.8rem;
    color: #8B1A1A;
    margin: 0 0 8px;
}
.rec-page__desc {
    color: #666;
    margin: 0 0 6px;
}
.rec-page__count {
    color: #999;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

/* --- Filter --- */
.rec-filter {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.rec-filter__btn {
    padding: 6px 16px;
    border: 1px solid #ddd;
    border-radius: 20px;
    background: #fff;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.2s;
}
.rec-filter__btn:hover { border-color: #c62828; color: #c62828; }
.rec-filter__btn--active {
    background: #c62828;
    color: #fff;
    border-color: #c62828;
}

/* --- Detail Page --- */
.rec-detail__header {
    margin-bottom: 24px;
}
.rec-detail__title {
    font-size: 2rem;
    color: #8B1A1A;
    margin: 0 0 4px;
}
.rec-detail__cn {
    font-size: 1.2rem;
    color: #999;
    margin-bottom: 12px;
}
.rec-detail__info {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}
.rec-detail__preview {
    font-size: 1.05rem;
    color: #555;
    line-height: 1.6;
}
.rec-detail__content {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 32px;
    align-items: start;
}
.rec-detail__main { min-width: 0; }
.rec-detail__sidebar { position: sticky; top: 20px; }
.rec-detail__info-card {
    background: #fafafa;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    padding: 20px;
}
.rec-detail__info-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
    font-size: 0.9rem;
}
.rec-detail__info-row:last-child { border-bottom: none; }
.rec-detail__info-row span { color: #888; }
.rec-detail__info-row strong { color: #333; }

/* --- Ingredients Section --- */
.rec-ingredients h2 {
    font-size: 1.3rem;
    color: #8B1A1A;
    margin-bottom: 12px;
}
.rec-ingredients__servings {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 12px;
}
.rec-ingredients__servings input {
    width: 48px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 3px;
    font-size: 0.9rem;
}
.rec-ingredients__list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.rec-ingredients__item {
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.95rem;
}
.rec-ingredients__item::before {
    content: '•';
    color: #c62828;
    margin-right: 8px;
}

/* --- Steps --- */
.rec-steps h2 {
    font-size: 1.3rem;
    color: #8B1A1A;
    margin: 24px 0 12px;
}
.rec-steps ol {
    padding-left: 0;
    counter-reset: step;
    list-style: none;
}
.rec-steps ol li {
    counter-increment: step;
    padding: 12px 0 12px 48px;
    border-bottom: 1px solid #f0f0f0;
    position: relative;
    line-height: 1.6;
}
.rec-steps ol li::before {
    content: counter(step);
    position: absolute;
    left: 0;
    top: 12px;
    width: 32px;
    height: 32px;
    background: #c62828;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
}

/* --- Actions --- */
.rec-btn {
    padding: 10px 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s;
}
.rec-btn:hover { border-color: #c62828; color: #c62828; }
.rec-detail__actions { margin-top: 20px; }

/* --- Sidebar --- */
.rec-sidebar {
    margin-top: 40px;
    padding-top: 24px;
    border-top: 2px solid #c62828;
}
.rec-sidebar__title {
    font-size: 1.1rem;
    color: #8B1A1A;
    margin: 0 0 12px;
}
.rec-sidebar__list {
    list-style: none;
    padding: 0;
    margin: 0 0 16px;
}
.rec-sidebar__item a {
    display: block;
    padding: 6px 10px;
    text-decoration: none;
    color: #555;
    border-radius: 6px;
    font-size: 0.9rem;
    transition: background 0.15s;
}
.rec-sidebar__item a:hover { background: #fce4ec; color: #c62828; }
.rec-sidebar__item--active a { background: #c62828; color: #fff; }
.rec-sidebar__link {
    display: block;
    padding: 8px 10px;
    text-decoration: none;
    color: #c62828;
    font-weight: 600;
    font-size: 0.9rem;
}

/* --- Ingredient Cards --- */
.rec-ingr-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}
.rec-ingr-nav__link {
    padding: 6px 14px;
    background: #fce4ec;
    color: #c62828;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.85rem;
    transition: background 0.2s;
}
.rec-ingr-nav__link:hover { background: #c62828; color: #fff; }
.rec-ingr-group { margin-bottom: 32px; }
.rec-ingr-group__title {
    font-size: 1.3rem;
    color: #8B1A1A;
    margin: 0 0 16px;
    padding-bottom: 6px;
    border-bottom: 1px solid #e8e8e8;
}
.rec-ingr-card {
    display: block;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 10px;
    padding: 14px;
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.2s;
}
.rec-ingr-card:hover { box-shadow: 0 3px 12px rgba(0,0,0,0.1); }
.rec-ingr-card__name { font-weight: 600; margin-bottom: 2px; }
.rec-ingr-card__cn { font-size: 0.85rem; color: #999; margin-bottom: 6px; }
.rec-ingr-card__desc { font-size: 0.82rem; color: #777; line-height: 1.4; }

/* --- Ingredient Detail --- */
.rec-ingr-section { margin-bottom: 24px; }
.rec-ingr-section h2 { font-size: 1.2rem; color: #8B1A1A; margin: 0 0 10px; }
.rec-ingr-section p { line-height: 1.6; color: #555; }
.rec-ingr-section__list { padding-left: 20px; }
.rec-ingr-section__list li { padding: 4px 0; color: #555; }

/* --- Back Link --- */
.rec-back { margin-top: 32px; }
.rec-back__link {
    color: #c62828;
    text-decoration: none;
    font-weight: 600;
}
.rec-back__link:hover { text-decoration: underline; }

/* --- Empty --- */
.rec-empty { color: #999; font-style: italic; }

/* --- Tooltip --- */
.rec-tooltip {
    position: absolute;
    background: #333;
    color: #fff;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.78rem;
    white-space: nowrap;
    pointer-events: none;
    transform: translateY(-100%) translateX(-50%);
    opacity: 0;
    transition: opacity 0.2s;
}
.rec-tooltip--visible { opacity: 1; }

/* --- Print --- */
@media print {
    .rec-hero, .rec-filter, .rec-share, .rec-sidebar, .rec-detail__sidebar,
    .rec-detail__actions, .rec-back, .rec-section:last-child { display: none !important; }
    .rec-detail__content { grid-template-columns: 1fr; }
    .rec-page { max-width: 100%; padding: 0; }
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .rec-grid--4 { grid-template-columns: repeat(3, 1fr); }
    .rec-detail__content { grid-template-columns: 1fr; }
    .rec-detail__sidebar { position: static; }
}
@media (max-width: 768px) {
    .rec-grid--4 { grid-template-columns: repeat(2, 1fr); }
    .rec-grid--3 { grid-template-columns: repeat(2, 1fr); }
    .rec-hero { padding: 32px 20px; }
    .rec-hero__title { font-size: 1.5rem; }
    .rec-detail__title { font-size: 1.5rem; }
}
@media (max-width: 480px) {
    .rec-grid--4, .rec-grid--3 { grid-template-columns: 1fr; }
    .rec-hero__title { font-size: 1.3rem; }
}

/* End */
/* /local/components/china/recipes/templates/.default/style.css?177274337012642 */
