/* Simple burger creation view */
#burgers-categorize-content .burger-review-layout {
    grid-template-columns: 1fr;
    gap: 0;
    height: auto;
}

#burgers-categorize-content .burger-preview-panel {
    display: none;
}

#burgers-categorize-content .categorization-panel {
    background: #1a1f29;
    border: 1px solid #2e3646;
    border-radius: 16px;
    padding: 0.95rem;
}

#burgers-categorize-content .categorization-panel h2 {
    margin-bottom: 0.2rem;
    font-size: 1.08rem;
    color: #f8fbff;
}

.simple-form-intro {
    color: #9ca9bb;
    font-size: 0.78rem;
    margin-bottom: 0.9rem;
}

.back-to-feed-button {
    border: 1px solid #2e3646;
    background: #171d27;
    color: #d5deeb;
    border-radius: 999px;
    padding: 0.36rem 0.7rem;
    font-size: 0.74rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.38rem;
    margin: 0;
    cursor: pointer;
}

.back-to-feed-button:hover {
    border-color: #4d5d78;
    background: #1f2734;
}

#burger-form {
    gap: 0.85rem;
}

#burger-form .form-group label {
    margin-bottom: 0.35rem;
    color: #cdd7e5;
    font-size: 0.78rem;
    font-weight: 700;
}

#burger-form .form-group input,
#burger-form .form-group select,
#burger-form .form-group textarea,
#burger-form input[type="file"] {
    border: 1px solid #2e3646;
    background: #101623;
    color: #eef2f7;
    border-radius: 10px;
    font-size: 1rem;
    padding: 0.65rem 0.7rem;
}

#burger-form .form-group input::placeholder,
#burger-form .form-group textarea::placeholder {
    color: #7f8da3;
}

#burger-form .form-group input:focus,
#burger-form .form-group select:focus,
#burger-form .form-group textarea:focus {
    border-color: #2ea4ff;
    box-shadow: 0 0 0 2px rgb(46 164 255 / 0.2);
}

/* Burger meta on the check-in form. Always visible (no drag-down) and
   styled to match the detail modal's tag layout: single chip for Carne/Pan,
   wrapping chip grid for Toppings. Hidden <input>s preserve the form-submit
   contract; these rows are display-only. */
#burger-form .burger-identity-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
    margin-bottom: 0.55rem;
}
#burger-form .burger-identity-fact {
    border: 1px solid #2e3646;
    background: #171d27;
    border-radius: 10px;
    padding: 0.58rem 0.62rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    min-width: 0;
}
#burger-form .burger-identity-fact-toppings {
    grid-column: 1 / -1;
}
#burger-form .burger-identity-fact-label {
    color: #9ca9bb;
    font-size: 0.69rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 700;
}
#burger-form .burger-identity-fact .burga-detail-tag-row {
    display: flex;
    gap: 0.35rem;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
}
#burger-form .burger-identity-fact .burga-detail-tag-row::-webkit-scrollbar { display: none; }
#burger-form .burger-identity-fact .burga-detail-tag-row-wrap {
    flex-wrap: wrap;
    overflow-x: visible;
}
#burger-form .burger-identity-fact .burga-detail-tag {
    flex: 0 0 auto;
    padding: 0.35rem 0.6rem;
    border: 1px solid #2e3646;
    background: #101623;
    color: #eef2f7;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 600;
    white-space: nowrap;
    text-transform: none;
    letter-spacing: normal;
}
#burger-form .burger-identity-fact .burga-detail-tag.is-empty {
    border-style: dashed;
    color: #8a95a9;
    font-weight: 500;
    font-style: italic;
}

.burger-optional-fields {
    border: 1px solid #2e3646;
    background: #171d27;
    border-radius: 12px;
    padding: 0.2rem 0.7rem 0.7rem;
}

.burger-optional-fields summary {
    cursor: pointer;
    color: #d5deeb;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    padding: 0.5rem 0 0.45rem;
    list-style: none;
}

.burger-optional-fields summary::-webkit-details-marker {
    display: none;
}

.burger-optional-fields summary::after {
    content: '+';
    float: right;
    color: #9ca9bb;
}

.burger-optional-fields[open] summary::after {
    content: '-';
}

.burger-optional-grid {
    display: grid;
    gap: 0.72rem;
    margin-top: 0.2rem;
}

#burger-form .burger-comments-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
    margin-top: 0.2rem;
}

#burger-form .burger-comments-grid .form-group:last-child {
    grid-column: 1 / -1;
}

#burger-form .burger-comments-grid textarea {
    min-height: 70px;
    resize: vertical;
}

#burger-form .score-section {
    border-color: #2e3646;
    background: #171d27;
    padding: 0.85rem;
    gap: 0.75rem;
}

#burger-form .score-section-header h3 {
    font-size: 0.95rem;
    color: #f4f7fc;
}

#burger-form .score-section-header p {
    color: #8ea0b7;
    font-size: 0.76rem;
}

#burger-form .burger-rating-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.62rem;
}

#burger-form .burger-rating-grid .score-input:last-child {
    grid-column: 1 / -1;
}

#burger-form .score-input textarea {
    display: none;
}

#burger-form .alfajor-rating-summary {
    border-top-color: rgb(255 255 255 / 0.09);
}

#burger-form .alfajor-rating-summary-label {
    color: #c7d2e2;
}

#burger-form .alfajor-rating-pill {
    color: #191d27;
    background: #f2c200;
}

#burger-form .burger-score-compare {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
}

#burger-form .burger-score-compare-card {
    border: 1px solid #2e3646;
    border-radius: 10px;
    background: #101623;
    padding: 0.55rem 0.6rem;
    display: grid;
    gap: 0.2rem;
}

#burger-form .burger-score-compare-label {
    color: #9ca9bb;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 700;
}

#burger-form .burger-score-compare-card strong {
    color: #f8fbff;
    font-size: 1.16rem;
    line-height: 1.15;
}

#burger-form .burger-score-compare-card small {
    color: #8ea0b7;
    font-size: 0.7rem;
    line-height: 1.25;
}

#burger-form .form-helper {
    color: #8ea0b7;
}

#burger-form .burger-images-empty {
    border-color: #2e3646;
    background: #101623;
    color: #8ea0b7;
}

#burger-form .burger-image-item {
    border-color: #2e3646;
    background: #101623;
}

#burger-form .burger-image-item-meta {
    color: #9ca9bb;
}

#burger-form .burger-image-action {
    border-color: #38445a;
    background: #171d27;
    color: #d8e1ee;
}

#burger-form .burger-image-action:hover {
    border-color: #4d5d78;
    background: #1f2734;
}

#burger-form .form-actions {
    margin-top: 0.1rem;
    padding-top: 0.6rem;
    border-top: 1px solid rgb(255 255 255 / 0.08);
}

#burger-form .burger-form-footer {
    margin-top: 0.15rem;
    display: flex;
}

#burger-form .burger-form-footer .back-to-feed-button {
    width: 100%;
    justify-content: center;
    border-radius: 10px;
    padding: 0.58rem 0.7rem;
    font-size: 0.8rem;
}

#burger-form .submit-button {
    background: #2ea4ff;
    color: white;
    border-radius: 10px;
    font-weight: 700;
}

#burger-form .submit-button:hover {
    background: #1d92ed;
}

#burger-form .skip-button {
    border-color: #2e3646;
    background: #171d27;
    color: #d0d9e7;
    border-radius: 10px;
}

@media (max-width: 390px) {
    #burger-form .burger-rating-grid {
        grid-template-columns: 1fr;
    }

    #burger-form .burger-score-compare {
        grid-template-columns: 1fr;
    }

    #burger-form .burger-comments-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================
   CHECK-IN REDESIGN (issue #45)
   ========================================= */

/* --- Burga header (shown at top of scoring screen) --- */
#burger-form .burga-header {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    padding: 0.6rem;
    background: #101623;
    border: 1px solid #2e3646;
    border-radius: 10px;
    margin-bottom: 0.2rem;
}
#burger-form .burga-header-thumb {
    width: 52px;
    height: 52px;
    border-radius: 10px;
    background: #171d27;
    border: 1px dashed #38445a;
    flex: 0 0 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    background-size: cover;
    background-position: center;
}
#burger-form .burga-header-thumb.has-image {
    border-style: solid;
    border-color: #2e3646;
    background-color: #0f1520;
    font-size: 0;
}
/* Size the SVG placeholder to fit the 52x52 thumb box. */
#burger-form .burga-header-thumb .activity-cover-placeholder-icon {
    width: 32px;
    height: 32px;
}
#burger-form .burga-header-meta {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
#burger-form .burga-header-meta h3 {
    color: #f8fbff;
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.15;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
#burger-form .burga-header-place {
    color: #9ca9bb;
    font-size: 0.78rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
#burger-form .burga-header-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 2px 8px;
    background: rgba(242, 194, 0, 0.15);
    color: #f2c200;
    border: 1px solid rgba(242, 194, 0, 0.3);
    border-radius: 999px;
    font-size: 0.64rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-top: 3px;
    width: fit-content;
}
#burger-form .burga-header-badge[hidden] { display: none; }

#burger-form .burger-review-title {
    margin-top: 0.4rem;
    margin-bottom: 0;
    font-size: 0.95rem;
    font-weight: 700;
    color: #f4f7fc;
}

/* --- Preload banner restyle --- */
#burger-form .burger-preload-banner {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    padding: 0.5rem 0.7rem;
    background: rgb(46 164 255 / 0.08);
    border: 1px solid rgb(46 164 255 / 0.25);
    border-radius: 10px;
    font-size: 0.74rem;
    color: #bfe0ff;
    margin: 0;
}
#burger-form .burger-preload-banner[hidden] { display: none; }
#burger-form .burger-preload-banner i { color: #2ea4ff; }
#burger-form .burger-preload-report-link {
    margin-left: auto;
    background: none;
    border: none;
    color: #2ea4ff;
    font-weight: 700;
    font-size: 0.72rem;
    cursor: pointer;
    font-family: inherit;
    text-decoration: underline;
    padding: 0;
}

/* --- Chip rating UI --- */
#burger-form .chip-row {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.2rem 0;
}
#burger-form .chip-label-wrap {
    flex: 0 0 90px;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    position: relative;
}
#burger-form .chip-info-btn {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    border-radius: 999px;
    border: 1px solid #445066;
    background: #202b3c;
    color: #dbe7f8;
    font-size: 0.65rem;
    font-weight: 700;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-family: inherit;
    padding: 0;
}
#burger-form .chip-info-btn:hover {
    border-color: #6e87ac;
    color: #f8fbff;
}
#burger-form .chip-info-btn:focus-visible {
    outline: 2px solid #6ea6ff;
    outline-offset: 1px;
}
#burger-form .chip-info-popover {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    width: max-content;
    max-width: min(280px, calc(100vw - 60px));
    padding: 0.45rem 0.58rem;
    border-radius: 8px;
    border: 1px solid #2e3d57;
    background: #1a2638;
    color: #c8d8ef;
    font-size: 0.74rem;
    line-height: 1.35;
    box-shadow: 0 10px 24px rgb(0 0 0 / 0.4);
    opacity: 0;
    transform: translateY(4px);
    pointer-events: none;
    z-index: 10;
    transition: opacity 0.16s ease, transform 0.16s ease;
}
#burger-form .chip-row.is-info-open .chip-info-popover {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}
#burger-form .chip-row .chip-label {
    flex: none;
    font-size: 0.78rem;
    font-weight: 700;
    color: #cdd7e5;
}
#burger-form .chip-group {
    display: flex;
    gap: 0.35rem;
    flex: 1;
    min-width: 0;
}
#burger-form .chip-group .chip {
    flex: 1;
    min-width: 0;
    padding: 0.5rem 0.2rem;
    border: 1px solid #2e3646;
    background: #101623;
    color: #eef2f7;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s, color 0.15s;
    text-align: center;
    line-height: 1.1;
}
#burger-form .chip-group .chip:hover {
    border-color: #38445a;
    background: #131a28;
}
#burger-form .chip-group .chip.active {
    border-color: #f2c200;
    background: #f2c200;
    color: #1a1708;
}
#burger-form .chip-group .chip:focus-visible {
    outline: 2px solid #2ea4ff;
    outline-offset: 2px;
}

/* --- Compact comments (1 column on any screen) --- */
#burger-form .burger-comments-compact {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.5rem;
    margin-top: 0.2rem;
}
#burger-form .burger-comments-compact .form-group label {
    font-size: 0.72rem;
    color: #9ca9bb;
    margin-bottom: 0.2rem;
}
#burger-form .burger-comments-compact textarea {
    min-height: 44px;
    padding: 0.45rem 0.6rem;
    font-size: 0.88rem;
    resize: vertical;
}

/* --- Photos: horizontal strip --- */
#burger-form .burger-photo-strip {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding-bottom: 0.2rem;
    scroll-snap-type: x proximity;
    margin: 0;
}
#burger-form .burger-photo-strip::-webkit-scrollbar { height: 4px; }
#burger-form .burger-photo-strip::-webkit-scrollbar-thumb { background: #2e3646; border-radius: 4px; }
#burger-form .burger-photo-strip .burger-image-item {
    flex: 0 0 96px;
    width: 96px;
    padding: 0.35rem;
    margin: 0;
    gap: 0.35rem;
    scroll-snap-align: start;
}
#burger-form .burger-photo-strip .burger-image-item img {
    height: 64px;
    border-radius: 6px;
}
#burger-form .burger-photo-strip .burger-image-item-meta { display: none; }
#burger-form .burger-photo-strip .burger-image-item-actions {
    flex-direction: column;
    gap: 0.25rem;
}
#burger-form .burger-photo-strip .burger-image-action {
    font-size: 0.62rem;
    padding: 0.2rem 0.3rem;
}
#burger-form .burger-photo-strip .photo-tile.add {
    flex: 0 0 72px;
    width: 72px;
    height: 82px;
    border-radius: 10px;
    border: 1px dashed #38445a;
    background: #171d27;
    color: #9ca9bb;
    font-size: 1.6rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: inherit;
    scroll-snap-align: start;
    padding: 0;
    margin: 0;
    transition: border-color 0.15s, color 0.15s;
}
#burger-form .burger-photo-strip .photo-tile.add:hover {
    border-color: #f2c200;
    color: #f2c200;
}
#burger-form .burger-photo-strip .burger-images-empty {
    display: none;
}

/* Hide the original file input (kept for the upload logic, triggered by .photo-tile.add) */
#burger-form #burger-images[hidden] { display: none; }

/* Readonly "Ver datos" text inputs look less interactive */
#burger-form .form-group input[readonly] {
    background: #0a0f18;
    color: #9ca9bb;
    cursor: default;
    border-color: #232b3a;
}
#burger-form .form-group input[readonly]:focus {
    border-color: #232b3a;
    box-shadow: none;
}

