@charset "utf-8";

/**
 * Recently Checked Websites: Master Grid Module
 */
.history-list {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr; /* Single column layout default for mobile devices */
    gap: 1.25rem;
    padding: 0;
    margin: 0;
    width: 100%;
}

/* Switches cleanly to two columns on medium tablet viewports */
@media (min-width: 550px) and (max-width: 899px) {
    .history-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Locks into three perfectly equal columns exclusively on desktop monitors */
@media (min-width: 900px) {
    .history-list {
        grid-template-columns: repeat(3, 1fr);
    }
}

/**
 * Individual History Lookup Cards
 */

        :root {
            --bg-primary: #f8fafc;
            --bg-surface: #ffffff;
            --text-main: #0f172a;
            --text-muted: #64748b;
            --accent-green: #10b981;
            --accent-red: #ef4444;
            --brand-primary: #3b82f6;
            --border-color: #e2e8f0;
}
        * { box-sizing: border-box; margin: 0; padding: 0; font-family: system-ui, -apple-system, sans-serif; }
        body { background-color: var(--bg-primary); color: var(--text-main); padding: 2rem 1rem; }


.history-item {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem;
    display: flex;
    flex-direction: column; /* Stacks text data vertically inside individual grid boxes */
    justify-content: space-between;
    gap: 0.75rem;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

/* Soft hover response feedback */
.history-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/**
 * Inner Card Meta Component Structures
 */
.history-item .flex-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    width: 100%;
}

.history-item .domain-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    overflow: hidden;
    white-space: nowrap;
}

.history-item .favicon {
    width: 16px;
    height: 16px;
    min-width: 16px; /* Blocks flex engines from flattening the image node */
    border-radius: 4px;
    object-fit: contain;
}

.history-item .domain-name {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-main, #0f172a);
    overflow: hidden;
    text-overflow: ellipsis;
}

.history-item .test-node {
    font-size: 0.7rem;
    background: var(--bg-primary, #f8fafc);
    border: 1px solid var(--border-color, #e2e8f0);
    padding: 2px 6px;
    border-radius: 4px;
    color: var(--text-muted, #64748b);
    max-width: 90px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Distinct card partition line dividing the status tracking indicators */
.history-item .status-bar {
    border-top: 1px solid var(--border-color, #e2e8f0);
    padding-top: 0.5rem;
    margin-top: auto; /* Permanently anchors this block down to the base line of the card grid */
}
