﻿/* 🔒 Privacy Compliance Consent Drawer */
.cookie-overlay {
    position: fixed;
    bottom: -100%; /* Hidden offscreen by default */
    left: 0;
    right: 0;
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
    box-shadow: 0 -10px 25px -5px rgba(15, 23, 42, 0.08);
    z-index: 99999;
    padding: 1.5rem;
    transition: bottom 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.cookie-overlay.active {
    bottom: 0; /* Animates into view smoothly */
}
.cookie-container {
    max-width: 1150px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}
@media(min-width: 768px) {
    .cookie-container {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 2rem;
    }
}
.cookie-buttons {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-shrink: 0;
}
.btn-cookie-accept {
    background: #10b981; /* Soft accessible green */
    color: #ffffff;
}
.btn-cookie-accept:hover {
    background: #059669;
}
.btn-cookie-reject {
    background: transparent;
    color: #64748b;
    border: 1px solid #cbd5e1;
}
.btn-cookie-reject:hover {
    background: #f1f5f9;
    color: #0f172a;
}


/* ??? Desktop Split Grid Layout */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

@media(min-width: 850px) {
    .dashboard-grid {
        grid-template-columns: 3fr 1fr; /* Splitting: Wide Left for Checker, Pinned Right for Ad */
        align-items: start;
    }
}

/* ??? Right Sidebar Vertical AdWords Block */
.ad-slot {
    background: #f1f5f9;
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #94a3b8;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.ad-skyscraper {
    min-height: 250px;
    width: 100%;
}

@media(min-width: 850px) {
    .ad-skyscraper {
        min-height: 450px; /* Expands into a professional vertical tower on large screens */
        position: sticky;
        top: 2rem; /* Kept fixed in the viewport as the user reviews data */
    }
}

/* Retain previous inline ad styles */
.ad-native-feed {
    min-height: 100px;
    width: 100%;
    margin-top: 1rem;
    border-radius: 6px;
}

        :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; }
        header, main, footer { max-width: 1150px; margin: 0 auto; }
        header { text-align: center; margin-bottom: 3rem; }
        header h1 { font-size: 2.5rem; margin-bottom: 0.5rem; color: var(--text-main); }
        .card { background: var(--bg-surface); padding: 2rem; border-radius: 12px; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05), 0 2px 4px -1px rgba(0,0,0,0.03); margin-bottom: 2rem; border: 1px solid var(--border-color); }
        .form-group { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 1.5rem; }
        @media(min-width: 600px) {
            .form-group { flex-direction: row; }
            .form-group input[type=text] { flex: 2; }
            .form-group select { flex: 1; }
        }
        input[type=text], select, button { padding: 0.8rem 1.2rem; border-radius: 6px; border: 1px solid var(--border-color); background: #ffffff; color: var(--text-main); font-size: 1rem; }
        button { background: var(--brand-primary); color: #fff; cursor: pointer; border: none; font-weight: bold; transition: background 0.2s; }
        button:hover { background: #2563eb; }
        .result { padding: 1.5rem; border-radius: 8px; margin-top: 1rem; text-align: center; }
        .result.UP { background: rgba(16, 185, 129, 0.1); border: 1px solid var(--accent-green); color: var(--accent-green); }
        .result.DOWN { background: rgba(239, 68, 68, 0.1); border: 1px solid var(--accent-red); color: var(--accent-red); }
        .metrics-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 1rem; margin-top: 1rem; }
        .metric-box { background: rgba(0,0,0,0.02); border: 1px solid var(--border-color); padding: 0.8rem; border-radius: 6px; font-size: 0.9rem; color: var(--text-main); }
/* ?? Three-Column Responsive History Layout */
/* .history-list {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr; /* Single column for mobile viewports */
    gap: 1rem;
    padding: 0;
    margin: 0;
}

@media(min-width: 550px) and (max-width: 849px) {
    .history-list {
        grid-template-columns: repeat(2, 1fr); /* Two columns for tablet screens */
    }
}

@media(min-width: 850px) {
    .history-list {
        grid-template-columns: repeat(3, 1fr); /* Three columns for desktop screens */
    }
}

/* Individual Grid Item Adjustments */
 .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;
}

.history-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

/* Metadata alignment overrides */
.history-item .flex-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 0.5rem;
}

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


        .history-list { list-style: none; }
        .history-item { display: flex; align-items: center; justify-content: space-between; padding: 1rem; border-bottom: 1px solid var(--border-color); }
        .history-item:last-child { border: none; } */
        .flex-meta { display: flex; align-items: center; gap: 0.5rem; }
        .favicon { width: 16px; height: 16px; border-radius: 2px; }
        footer { margin-top: 4rem; text-align: center; font-size: 0.9rem; color: var(--text-muted); }
        footer a { color: var(--brand-primary); text-decoration: none; margin: 0 0.5rem; }
        footer a:hover { text-decoration: underline; }
