/* Feature section */
.section-feature { background-color: #1c1c1e; color: hsla(0, 0%, 100%, 0.5); }
.section-feature input[type=url] { color: var(--primary); background-color: #1c1c1e; border: none; border-bottom: 1px solid hsla(0, 0%, 100%, 0.5); font-size: 1.3rem; line-height: 1.85; padding: 0 0 1.3rem; margin-bottom: 1.5rem; width: 100%; }
.section-feature input[type=url]:focus { box-shadow: none; outline: none; }
.section-feature input[type=url]::placeholder { color: hsla(0, 0%, 100%, 0.5); }

/*.section-feature .btn {
    padding: 0; color: hsla(0, 0%, 100%, 0.5);
    font-size: 1.8rem; transition: color 0.2s ease-in-out;
    text-decoration: none; border: none; background: none; cursor: pointer;
    font-family: 'Noto Sans', sans-serif;
}
.section-feature .btn span { text-decoration: underline; }
.section-feature .btn:hover { color: #fff; }*/
.section-feature .btn:disabled { opacity: 0.3; cursor: not-allowed; }

.button-group { display: flex; gap: 3rem; align-items: center; margin-top: 1rem; }

.section-feature .btn-preview { top:.5rem; background:none; border:unset; padding:7px 25px 11px; align-items:center; gap:10px; text-transform:uppercase; color:var(--primary); filter:unset !important; }
.section-feature .btn-preview:after { content: ""; background-image: url(/wp-content/themes/sumobaby/images/white-arrow.svg); width: 12px; height: 12px; background-repeat: no-repeat; background-position: center; }
.section-feature .btn-clear, .section-feature .btn-reset, .section-feature .btn-preview { border:none; background:unset; align-items: center; gap: 6px; filter: invert(140%) sepia(8%) saturate(78%) hue-rotate(90deg) brightness(8%) contrast(0%); }
.section-feature .btn-clear:before { content:""; background-image: url(/wp-content/themes/sumobaby/images/pencil-icon.png); width: 20px; height: 20px; background-repeat: no-repeat; background-position: center; display:inline-block; }
.section-feature .btn-reset:before { content:""; background-image: url(/wp-content/themes/sumobaby/images/delete-icon.png); width: 20px; height: 20px; background-repeat: no-repeat; background-position: center; display:inline-block; }

/* Loading spinner */
.spinner { display: none; margin: 4rem 0; text-align: center; }
.spinner.active { display: block; }
.spinner::after { content: ''; display: inline-block; width: 3.2rem; height: 3.2rem; border: 3px solid hsla(0, 0%, 100%, 0.2); border-top-color: #004aad; border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Warnings (top-level summary) */
.warnings { margin-bottom: 4rem; }
.warnings:empty { display: none; }
.warning-item { padding: 1.2rem 1.6rem; border-radius: 4px; }
.warning-item--error { background: rgba(220, 53, 69, 0.15); color: #ff6b7a; border-left: 3px solid #dc3545; }
.warning-item--warning { background: rgba(255, 193, 7, 0.15); color: #ffd460; border-left: 3px solid #ffc107; }
.warning-item--info { background: rgba(0, 74, 173, 0.15); color: #6ba3e0; border-left: 3px solid #004aad; }
.warning-item--success { background: rgba(40, 167, 69, 0.15); color: #5fd67b; border-left: 3px solid #28a745; }

/* Insights panel */
.insights { margin-bottom: 6rem; }
.insights__heading { font-size: 2rem; color: var(--primary); margin-bottom: 3rem; }
.insight-group { margin-bottom: 3rem; padding-bottom: 3rem; border-bottom: 1px solid hsla(0, 0%, 100%, 0.1); }
.insight-group:last-child { border-bottom: none; margin-bottom: 0; }
.insight-group__label { font-size: 1.3rem; color: var(--primary); margin-bottom: 0.3rem; }
.insight-group__sublabel { font-size: 0.9rem; color: hsla(0, 0%, 100%, 0.35); margin-bottom: 1rem; }
.insight-group__value { font-size: 1rem; color: hsla(0, 0%, 100%, 0.7); margin-bottom: 1.2rem; word-break: break-word; }
.insight-check { display: flex; align-items: flex-start; gap: 1rem; margin-bottom: 0.6rem; font-size: 1rem; line-height: 1.5; }
.insight-check__icon { flex-shrink: 0; width: 2rem; height: 2rem; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; margin-top: 0.1rem; }
.insight-check__icon--pass { background: rgba(40, 167, 69, 0.2); color: #5fd67b; }
.insight-check__icon--fail { background: rgba(220, 53, 69, 0.2); color: #ff6b7a; }
.insight-check__text { color: hsla(0, 0%, 100%, 0.7); }

/* Character count bar */
.char-bar { margin: 1.2rem 0 0.8rem; }
.char-bar__track { font-size: 0.9rem; width: 100%; height: 0.6rem; background: hsla(0, 0%, 100%, 0.1); border-radius: 3px; position: relative; overflow: visible; }
.char-bar__fill { height: 100%; border-radius: 3px; transition: width 0.4s ease; position: relative; }
.char-bar__fill--good { background: #5fd67b; }
.char-bar__fill--short { background: #ffd460; }
.char-bar__fill--long { background: #ff6b7a; }
.char-bar__labels { display: flex; justify-content: space-between; font-size: 1.1rem; color: hsla(0, 0%, 100%, 0.3); margin-top: 0.4rem; }
.char-bar__count { font-size: 0.9rem; color: hsla(0, 0%, 100%, 0.5); margin-top: 0.4rem; text-align: right; }

/* Raw tags */
.raw-tags { margin-bottom: 6rem; }
.raw-tags summary { cursor: pointer; color: hsla(0, 0%, 100%, 0.5); font-size: 1.3rem; margin-bottom: 1.5rem; }
.raw-tags summary:hover { color: var(--primary); }
.raw-tags-table { width: 100%; border-collapse: collapse; }
.raw-tags-table td { padding: 0.6rem 1.2rem; border-bottom: 1px solid hsla(0, 0%, 100%, 0.1); font-size: 1rem; vertical-align: top; }
.raw-tags-table td:first-child { color: #ffd460; white-space: nowrap; width: 20rem; }
.raw-tags-table td:last-child { color: hsla(0, 0%, 100%, 0.7); word-break: break-all; }
.raw-tags-table td.empty { color: hsla(0, 0%, 100%, 0.25); font-style: italic; }

/* Debugger links */
.debugger-links { margin-bottom: 6rem; }
.debugger-links__heading { font-size: 1.3rem; color: var(--primary); margin-bottom: 1.5rem; }
.debugger-links__list { display: flex; flex-wrap: wrap; gap: 1.5rem; }
.debugger-links__item { display: inline-flex; align-items: center; gap: 0.6rem; padding: 0.8rem 1.6rem; border: 1px solid hsla(0, 0%, 100%, 0.2); border-radius: 4px; color: hsla(0, 0%, 100%, 0.6); font-size: 1.1rem; transition: all 0.2s ease; }
.debugger-links__item:hover { border-color: hsla(0, 0%, 100%, 0.5); color: var(--primary); text-decoration: none; }

/* Preview cards */
.previews__heading { font-size: 2rem; color: var(--primary); margin-bottom: 3rem; }
.previews { display: grid; gap: 4rem; }
.preview-card { margin-bottom: 2rem; }
.preview-card__platform { font-size: 1.3rem; color: var(--primary); margin-bottom: 1.5rem; }
.preview-card__frame { background: var(--primary); border-radius: 8px; overflow: hidden; }
.preview-card__image { width: 100%; aspect-ratio: 1.91/1; object-fit: cover; display: block; background: var(--primary); border-radius: 16px 16px 0 0; }
.preview-card__image--placeholder { display: flex; align-items: center; justify-content: center; aspect-ratio: 1.91/1; background: var(--primary); color: #606770; font-size: 1.4rem; }
.preview-card__body { padding: 1.2rem 1.4rem; background: var(--primary); border: 1px solid #dddfe2; border-top: none; }
.preview-card__domain { font-size: 1rem; color: #606770; margin-bottom: 0.2rem; text-transform: uppercase; }
.preview-card__title { font-size: 1.1rem; font-weight:700; line-height: 1.3; margin-bottom: 0.2rem; color: var(--secondary); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.preview-card__desc { font-size: 1rem; color: #606770; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }


/* Responsive */
@media only screen and (min-width: 768px) and (max-width: 991px) {
    .section-feature { padding: 4rem 1.5rem; }
    .previews { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .section-feature { padding: 4rem 1.5rem; }
    .previews { grid-template-columns: 1fr; }
    .debugger-links__list { flex-direction: column; }
}


