/**
 * Flavor Box - Frontend Styles
 */

/* Base */
.flavor-box, .flavor-table { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; line-height: 1.6; box-sizing: border-box; }
.flavor-box *, .flavor-table * { box-sizing: border-box; }
.flavor-box a, .flavor-table a { text-decoration: none; }

/* Box Minimal */
.flavor-box--minimal { position: relative; background: #fff; border: 1px solid #e8e8e8; border-radius: 12px; padding: 28px; margin: 28px 0; text-align: center; max-width: 500px; margin-left: auto; margin-right: auto; box-shadow: 0 2px 8px rgba(0,0,0,0.04); }
.flavor-box__badge { position: absolute; top: -10px; left: 50%; transform: translateX(-50%); background: linear-gradient(135deg, #10B981, #059669); color: #fff; padding: 5px 16px; border-radius: 20px; font-size: 11px; font-weight: 700; text-transform: uppercase; }
.flavor-box__image-wrap { margin-bottom: 20px; }
.flavor-box__image { max-width: 200px; max-height: 200px; object-fit: contain; transition: transform 0.2s; }
.flavor-box__image:hover { transform: scale(1.02); }
.flavor-box__description { color: #555; font-size: 15px; margin: 0 0 20px; line-height: 1.7; }
.flavor-box__button { display: inline-block; padding: 14px 32px; border-radius: 8px; font-size: 15px; font-weight: 600; transition: all 0.2s; border: none; cursor: pointer; }
.flavor-box__button:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.15); }

/* Box Detailed */
.flavor-box--detailed { position: relative; background: #fff; border: 1px solid #e0e0e0; border-radius: 12px; padding: 24px; margin: 28px 0; max-width: 700px; margin-left: auto; margin-right: auto; box-shadow: 0 2px 12px rgba(0,0,0,0.06); }
.flavor-box--detailed .flavor-box__header { display: flex; gap: 24px; margin-bottom: 20px; }
.flavor-box--detailed .flavor-box__image-wrap { flex: 0 0 180px; margin-bottom: 0; }
.flavor-box--detailed .flavor-box__image { width: 180px; height: 180px; border-radius: 8px; background: #f9f9f9; padding: 10px; }
.flavor-box--detailed .flavor-box__info { flex: 1; text-align: left; }
.flavor-box--detailed .flavor-box__title { margin: 0 0 8px; font-size: 20px; font-weight: 600; line-height: 1.3; }
.flavor-box--detailed .flavor-box__title a { color: #1a1a1a; }
.flavor-box--detailed .flavor-box__title a:hover { color: #2563EB; }
.flavor-box__brand { color: #888; font-size: 13px; margin: 0 0 10px; }
.flavor-box__rating { margin-bottom: 10px; }
.flavor-box__reviews { color: #666; font-size: 13px; margin-left: 8px; }
.flavor-box__price-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.flavor-box__price { font-size: 22px; font-weight: 700; color: #111; }
.flavor-box__list-price { font-size: 14px; color: #999; text-decoration: line-through; }
.flavor-box__prime { background: #232F3E; color: #fff; padding: 3px 8px; border-radius: 4px; font-size: 11px; font-weight: 600; }
.flavor-box__pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 20px 0; padding: 20px; background: #f8f9fa; border-radius: 8px; }
.flavor-box__pros h4, .flavor-box__cons h4 { margin: 0 0 12px; font-size: 14px; font-weight: 600; text-transform: uppercase; }
.flavor-box__pros h4 { color: #10B981; }
.flavor-box__cons h4 { color: #EF4444; }
.flavor-box__pros ul, .flavor-box__cons ul { margin: 0; padding: 0; list-style: none; }
.flavor-box__pros li, .flavor-box__cons li { padding: 6px 0 6px 20px; font-size: 14px; color: #444; position: relative; }
.flavor-box__pros li::before { content: "✓"; position: absolute; left: 0; color: #10B981; font-weight: bold; }
.flavor-box__cons li::before { content: "✗"; position: absolute; left: 0; color: #EF4444; font-weight: bold; }
.flavor-box--detailed .flavor-box__button { width: 100%; text-align: center; padding: 16px; font-size: 16px; }

/* Box Compact */
.flavor-box--compact { background: #fff; border: 1px solid #e8e8e8; border-radius: 10px; padding: 16px; margin: 16px 0; max-width: 280px; text-align: center; box-shadow: 0 1px 4px rgba(0,0,0,0.04); }
.flavor-box--compact .flavor-box__image { width: 120px; height: 120px; margin-bottom: 12px; }
.flavor-box--compact .flavor-box__title { font-size: 14px; font-weight: 600; margin: 0 0 10px; line-height: 1.4; }
.flavor-box--compact .flavor-box__title a { color: #333; }
.flavor-box--compact .flavor-box__meta { display: flex; justify-content: center; align-items: center; gap: 8px; margin-bottom: 12px; }
.flavor-box--compact .flavor-box__price { font-size: 16px; font-weight: 700; }
.flavor-box--compact .flavor-box__prime { font-size: 10px; padding: 2px 6px; }
.flavor-box--compact .flavor-box__button { width: 100%; padding: 10px 16px; font-size: 13px; }

/* Box Hero */
.flavor-box--hero { position: relative; background: linear-gradient(135deg, #fafafa, #fff); border: 2px solid #e8e8e8; border-radius: 16px; padding: 32px; margin: 36px 0; box-shadow: 0 4px 20px rgba(0,0,0,0.06); }
.flavor-box--hero .flavor-box__badge--large { position: absolute; top: -14px; left: 32px; transform: none; background: linear-gradient(135deg, #F59E0B, #D97706); padding: 8px 20px; font-size: 13px; border-radius: 24px; }
.flavor-box__hero-layout { display: flex; gap: 36px; align-items: flex-start; }
.flavor-box__hero-image { flex: 0 0 280px; }
.flavor-box__hero-image img { width: 280px; height: 280px; object-fit: contain; border-radius: 12px; background: #fff; padding: 16px; box-shadow: 0 2px 8px rgba(0,0,0,0.04); }
.flavor-box__hero-content { flex: 1; }
.flavor-box__hero-title { margin: 0 0 8px; font-size: 26px; font-weight: 700; line-height: 1.3; }
.flavor-box__hero-title a { color: #1a1a1a; }
.flavor-box--hero .flavor-box__description { font-size: 16px; color: #444; margin-bottom: 16px; text-align: left; }
.flavor-box__summary { color: #666; font-size: 14px; margin-bottom: 20px; }
.flavor-box__hero-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 20px; padding-top: 20px; border-top: 1px solid #eee; }
.flavor-box__price-block { display: flex; flex-direction: column; gap: 4px; }
.flavor-box__price--large { font-size: 28px; }
.flavor-box--hero .flavor-box__prime { background: transparent; color: #232F3E; padding: 0; font-size: 13px; }
.flavor-box__button--large { padding: 18px 40px; font-size: 17px; border-radius: 10px; }
.flavor-box__pros-cons--horizontal { margin-top: 24px; padding-top: 24px; border-top: 1px solid #eee; }

/* Stars */
.flavor-stars { display: inline-flex; gap: 2px; }
.flavor-star { font-size: 16px; line-height: 1; }
.flavor-star--full { color: #F59E0B; }
.flavor-star--half { color: #F59E0B; opacity: 0.6; }
.flavor-star--empty { color: #D1D5DB; }

/* Table Simple */
.flavor-table--simple { margin: 24px 0; max-width: 500px; background: #fff; border: 1px solid #e8e8e8; border-radius: 12px; padding: 20px; box-shadow: 0 2px 8px rgba(0,0,0,0.04); }
.flavor-table__title { font-size: 14px; font-weight: 600; color: #888; text-transform: uppercase; letter-spacing: 1px; margin: 0 0 16px; }
.flavor-table__list { display: flex; flex-direction: column; gap: 12px; }
.flavor-table__link { display: block; color: #1565c0; font-size: 16px; font-weight: 500; padding: 8px 0; border-bottom: 1px solid #f0f0f0; transition: color 0.2s; text-decoration: underline; text-decoration-color: #90caf9; text-underline-offset: 2px; }
.flavor-table__link:hover { color: #0d47a1; text-decoration-color: #1565c0; }
.flavor-table__number { margin-right: 8px; color: #999; text-decoration: none; }

/* Table Comparison */
.flavor-table--comparison { margin: 32px 0; }
.flavor-table--comparison .flavor-table__title { text-align: center; margin-bottom: 24px; }
.flavor-table__grid { display: grid; grid-template-columns: repeat(var(--columns, 3), 1fr); gap: 20px; }
.flavor-table__card { position: relative; background: #fff; border: 1px solid #e8e8e8; border-radius: 12px; padding: 20px; text-align: center; transition: box-shadow 0.2s; }
.flavor-table__card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.08); }
.flavor-table__badge { position: absolute; top: -8px; left: 50%; transform: translateX(-50%); background: #10B981; color: #fff; padding: 4px 12px; border-radius: 12px; font-size: 10px; font-weight: 700; text-transform: uppercase; }
.flavor-table__image { width: 120px; height: 120px; object-fit: contain; margin-bottom: 12px; }
.flavor-table__product-title { font-size: 14px; font-weight: 600; margin: 0 0 10px; line-height: 1.4; }
.flavor-table__product-title a { color: #333; }
.flavor-table__rating { margin-bottom: 8px; }
.flavor-table__price { font-size: 18px; font-weight: 700; color: #111; margin-bottom: 8px; }
.flavor-table__summary { font-size: 13px; color: #666; margin: 0 0 16px; line-height: 1.5; }
.flavor-table__button { display: inline-block; padding: 10px 24px; border-radius: 6px; font-size: 13px; font-weight: 600; transition: all 0.2s; }
.flavor-table__button:hover { transform: translateY(-1px); box-shadow: 0 2px 8px rgba(0,0,0,0.12); }

/* Table Ranked */
.flavor-table--ranked { margin: 32px 0; }
.flavor-table__row { display: flex; align-items: center; gap: 20px; padding: 20px; background: #fff; border: 1px solid #e8e8e8; border-radius: 10px; margin-bottom: 12px; transition: box-shadow 0.2s; }
.flavor-table__row:hover { box-shadow: 0 2px 12px rgba(0,0,0,0.06); }
.flavor-table__rank { flex: 0 0 80px; text-align: center; }
.flavor-table__rank-number { display: block; font-size: 28px; font-weight: 800; color: #2563EB; }
.flavor-table__rank-badge { display: block; font-size: 10px; font-weight: 600; color: #10B981; text-transform: uppercase; margin-top: 4px; }
.flavor-table__thumb { width: 80px; height: 80px; object-fit: contain; border-radius: 8px; background: #f9f9f9; padding: 8px; }
.flavor-table__details { flex: 1; }
.flavor-table--ranked .flavor-table__product-title { font-size: 16px; margin-bottom: 6px; }
.flavor-table__meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.flavor-table__prime { background: #232F3E; color: #fff; padding: 2px 6px; border-radius: 3px; font-size: 10px; font-weight: 600; }

/* Table Matrix */
.flavor-table--matrix { margin: 32px 0; }
.flavor-table__matrix-wrap { overflow-x: auto; }
.flavor-table__matrix-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 8px; overflow: hidden; box-shadow: 0 1px 4px rgba(0,0,0,0.04); }
.flavor-table__matrix-table th { background: #f8f9fa; padding: 14px 16px; text-align: left; font-size: 12px; font-weight: 600; text-transform: uppercase; color: #666; border-bottom: 2px solid #e8e8e8; }
.flavor-table__matrix-table td { padding: 16px; border-bottom: 1px solid #f0f0f0; vertical-align: middle; }
.flavor-table__cell-product-inner { display: flex; align-items: center; gap: 12px; }
.flavor-table__cell-image { width: 50px; height: 50px; object-fit: contain; border-radius: 4px; background: #f9f9f9; }
.flavor-table__cell-product a { color: #333; font-weight: 500; }
.flavor-table__cell-product a:hover { color: #2563EB; }
.flavor-table__check { color: #10B981; font-weight: bold; }
.flavor-table__na { color: #ccc; }
.flavor-table__cell-summary { font-size: 13px; color: #666; max-width: 250px; }
.flavor-table__button--small { padding: 8px 16px; font-size: 12px; }

/* Table Gallery */
.flavor-table--gallery .flavor-table__grid { display: grid; grid-template-columns: repeat(var(--columns, 5), 1fr); gap: 12px; }
.flavor-table__gallery-item { display: block; }
.flavor-table__gallery-item img { width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; background: #f9f9f9; border-radius: 8px; padding: 8px; transition: transform 0.2s; }
.flavor-table__gallery-item:hover img { transform: scale(1.05); }

/* Responsive */
@media (max-width: 768px) {
    .flavor-box--detailed .flavor-box__header { flex-direction: column; text-align: center; }
    .flavor-box--detailed .flavor-box__info { text-align: center; }
    .flavor-box__pros-cons { grid-template-columns: 1fr; }
    .flavor-box__hero-layout { flex-direction: column; }
    .flavor-box__hero-image { text-align: center; }
    .flavor-box__hero-footer { flex-direction: column; text-align: center; }
    .flavor-table__grid { grid-template-columns: 1fr 1fr; }
    .flavor-table__row { flex-wrap: wrap; }
    .flavor-table__row .flavor-table__button { width: 100%; text-align: center; }
}
@media (max-width: 480px) {
    .flavor-table__grid { grid-template-columns: 1fr; }
}

/* Title Links (Lasso style) */
.flavor-box__title--link { margin: 0 0 12px; font-size: 17px; font-weight: 600; line-height: 1.4; }
.flavor-box__title--link a { color: #1565c0; text-decoration: underline; text-decoration-color: #90caf9; text-underline-offset: 2px; }
.flavor-box__title--link a:hover { color: #0d47a1; text-decoration-color: #1565c0; }

/* Minimal Box Price Row */
.flavor-box__price-row--minimal { display: flex; justify-content: center; align-items: center; gap: 10px; margin-bottom: 16px; }
.flavor-box__price-row--minimal .flavor-box__price { font-size: 18px; font-weight: 700; color: #111; }
.flavor-box__price-row--minimal .flavor-box__prime { background: none; color: #F97316; font-size: 12px; font-weight: 600; padding: 0; }

/* Disclosure */
.flavor-box__disclosure, .flavor-table__disclosure {
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid #f0f0f0;
    font-size: 11px;
    color: #888;
    line-height: 1.5;
    text-align: center;
}
.flavor-box__updated, .flavor-table__updated {
    display: block;
    margin-top: 4px;
    color: #aaa;
}
.flavor-box__info-icon, .flavor-table__info-icon {
    display: inline-block;
    cursor: help;
    opacity: 0.6;
}
.flavor-table__disclosure {
    margin-top: 20px;
    padding: 12px 16px;
    background: #fafafa;
    border-radius: 6px;
    text-align: left;
}

/* Table Product Links */
.flavor-table__product-link { color: #1565c0; text-decoration: underline; text-decoration-color: #90caf9; text-underline-offset: 2px; }
.flavor-table__product-link:hover { color: #0d47a1; text-decoration-color: #1565c0; }
