/* og — app-specific styles.
 * Shared reset / tokens / components come from /assets/darkmatter.css.
 */

.index-container {
    width: 100%;
}

.description {
    opacity: 0.7;
}

.check-form {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.5rem;
    width: 100%;
}

.check-form input {
    flex: 1;
}

.check-form input::placeholder {
    opacity: 0.3;
}

.check-form button {
    flex-shrink: 0;
    white-space: nowrap;
    font-weight: 700;
}

/* Results page */

.results-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
}

.results-header {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #333;
}

.results-url a {
    word-break: break-all;
}

.label {
    display: block;
    font-size: 12px;
    opacity: 0.7;
    text-transform: uppercase;
    margin-bottom: 0.25rem;
}

.results-meta span:last-child {
    opacity: 0.5;
    font-size: 12px;
}

.error h2 {
    font-size: 12px;
    text-transform: uppercase;
    margin-bottom: 0.25rem;
}

.preview-section {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.preview-section h2 {
    font-size: 12px;
    text-transform: uppercase;
    opacity: 0.5;
}

.image-preview {
    border: 1px solid #333;
    overflow: hidden;
}

.image-preview img {
    display: block;
    width: 100%;
    height: auto;
}

.tag-section {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.tag-section h2 {
    font-size: 12px;
    text-transform: uppercase;
    opacity: 0.5;
    margin-bottom: 0.5rem;
}

.tag-item {
    display: flex;
    gap: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid #333;
    font-size: 14px;
}

.tag-item.found {
    border-left: 2px solid #ffffff;
    padding-left: 0.75rem;
}

.tag-item.missing {
    border-left: 2px solid #555;
    padding-left: 0.75rem;
    opacity: 0.3;
}

.tag-key {
    font-weight: 700;
    min-width: 140px;
    max-width: 200px;
    opacity: 0.7;
    word-break: break-all;
}

.tag-value {
    word-break: break-all;
    min-width: 0;
    flex: 1;
}

.tag-item.missing .tag-value {
    font-style: italic;
}

.tag-extra {
    display: block;
    font-size: 12px;
    opacity: 0.5;
    margin-top: 0.15rem;
}

.empty-state {
    opacity: 0.5;
    font-size: 14px;
}

.back-link {
    display: inline-block;
    font-size: 12px;
    opacity: 0.5;
    padding-top: 1rem;
    border-top: 1px solid #333;
    width: 100%;
}

.back-link:hover {
    opacity: 0.7;
}

@media (max-width: 480px) {
    .tag-item {
        flex-direction: column;
        gap: 0.25rem;
    }

    .tag-key {
        min-width: unset;
    }
}
