/* ==========================================================================
   REVIEW METRIC BRAND GLOBAL STYLESHEET
   ========================================================================== */

:root {
    --bg-color: #ffffff;
    --text-main: #0f172a;       
    --text-muted: #4a5568;      
    --accent-green: #00875a;    
    --bg-neutral: #f8fafc;      
    --border-light: #e2e8f0;    
}

* { 
    box-sizing: border-box; 
    margin: 0; 
    padding: 0; 
}

body { 
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; 
    color: var(--text-main); 
    background-color: var(--bg-color); 
    line-height: 1.5; 
    -webkit-font-smoothing: antialiased;
}

/* Global Top Leaderboard Container */
.ad-placeholder-top {
    background-color: var(--bg-neutral);
    border-bottom: 1px solid var(--border-light);
    text-align: center;
    padding: 0.5rem;
    font-size: 0.75rem;
    color: #94a3b8;
    text-transform: uppercase;
    min-height: 90px; 
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Global Header Components */
header { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    padding: 1.5rem 5%; 
    border-bottom: 1px solid var(--border-light);
    background: var(--bg-color);
}

.logo-container {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-text {
    font-size: 22px;
    color: var(--text-main);
    letter-spacing: 0.06em;
    line-height: 1;
}

.logo-text .weight-light { font-weight: 300; text-transform: uppercase; }
.logo-text .weight-bold { font-weight: 800; text-transform: uppercase; margin-left: 2px; }

nav a { 
    margin-left: 1.75rem; 
    text-decoration: none; 
    color: var(--text-main); 
    font-weight: 600; 
    font-size: 0.95rem; 
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
nav a:hover { color: var(--accent-green); }

/* Dropdown Navigation for Subcategories */
.main-nav { display: flex; gap: 0; }
.nav-item { position: relative; }
.nav-item > a { display: inline-block; }
.nav-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: 6px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    padding: 0.5rem 0;
    min-width: 180px;
    z-index: 50;
    margin-top: 0.5rem;
}
.nav-item:hover .nav-dropdown,
.nav-item.open .nav-dropdown { display: block; }
.nav-caret {
    background: none;
    border: none;
    color: var(--text-main);
    font-size: 0.7rem;
    cursor: pointer;
    padding: 0 0.3rem;
    vertical-align: middle;
    line-height: 1;
}
.nav-caret:hover { color: var(--accent-green); }
.nav-dropdown a {
    display: block;
    padding: 0.55rem 1.2rem;
    margin: 0 !important;
    font-size: 0.85rem;
    color: var(--text-main);
    white-space: nowrap;
}
.nav-dropdown a:hover { background: var(--bg-neutral); color: var(--accent-green); }

/* Global Layout Grid & Cards */
.dashboard-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Automatically shifts items perfectly whether you have 3, 5, or 10 categories */
    gap: 2.5rem; 
    padding: 4rem 5%; 
}

.niche-silo h2 { 
    font-size: 1.15rem; 
    text-transform: uppercase; 
    letter-spacing: 0.08em; 
    border-bottom: 2px solid var(--text-main); 
    padding-bottom: 0.6rem; 
    margin-bottom: 1.75rem; 
}

.article-card { 
    background: var(--bg-color); 
    border: 1px solid var(--border-light); 
    padding: 1.5rem; 
    margin-bottom: 1.25rem; 
    border-radius: 4px; 
}

.article-card:hover { border-color: var(--accent-green); }

.article-card .category-tag {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--accent-green);
    margin-bottom: 0.5rem;
    display: inline-block;
}

.article-card h3 a { 
    color: var(--text-main); 
    text-decoration: none; 
    font-size: 1.15rem; 
    font-weight: 700; 
    display: block; 
    margin-bottom: 0.6rem; 
}

.article-card p { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 1.25rem; }
.article-card .meta-link { color: var(--text-main); font-weight: 700; font-size: 0.8rem; text-transform: uppercase; text-decoration: none; }

/* Global AdSense Footer Components */
footer { 
    background: var(--text-main); 
    color: #94a3b8; 
    padding: 4rem 5%; 
    font-size: 0.875rem; 
    text-align: center; 
    border-top: 4px solid var(--accent-green);
}

.footer-compliance { 
    max-width: 760px; 
    margin: 0 auto 2rem; 
    padding-bottom: 2rem; 
    border-bottom: 1px solid #334155; 
}

footer a { color: #ffffff; text-decoration: none; margin: 0 1rem; }
footer a:hover { color: var(--accent-green); }
.copyright { margin-top: 1rem; font-size: 0.8rem; color: #64748b; }

/* Homepage Hero */
.hero-section {
    padding: 4.5rem 5%;
    text-align: center;
    border-bottom: 1px solid var(--border-light);
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}
.hero-heading {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -0.03em;
    line-height: 1.15;
}
.hero-subtext {
    max-width: 680px;
    margin: 0 auto;
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Responsive Media Breakdown */
@media (max-width: 960px) { 
    .dashboard-grid { grid-template-columns: 1fr; gap: 3rem; } 
    header { flex-direction: column; gap: 1.5rem; }
    nav a { margin: 0 0.75rem; }
}

/* Small Mobile Viewports (phones) */
@media (max-width: 480px) {
    .hero-section { padding: 2.75rem 6%; }
    .hero-heading { font-size: 1.65rem; letter-spacing: -0.01em; margin-bottom: 0.75rem; }
    .hero-subtext { font-size: 0.95rem; line-height: 1.55; }

    nav { display: flex; justify-content: center; flex-wrap: wrap; gap: 0.5rem 0; }
    nav a { margin: 0 0.6rem; font-size: 0.8rem; }

    .content-body h1 { font-size: 1.75rem !important; }

    .ad-placeholder-top { min-height: 50px; font-size: 0.65rem; padding: 0.4rem; }
}
/* ==========================================================================
   REVIEW METRIC - RESPONSIVE DATA TABLE ENGINE
   ========================================================================== */

/* Wrapper container that prevents layout shifting */
.table-container {
    width: 100%;
    margin: 2rem 0;
    overflow-x: auto;
    border: 1px solid var(--border-light);
    border-radius: 4px;
    background-color: var(--bg-color);
}

table.metric-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.95rem;
    color: var(--text-main);
}

/* Headings Layer */
table.metric-table th {
    background-color: var(--text-main);
    color: #ffffff;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    padding: 1rem;
}

/* Data Rows Layout */
table.metric-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-light);
    vertical-align: middle;
}

/* Zebra Striping for high readability metrics */
table.metric-table tbody tr:nth-child(even) {
    background-color: var(--bg-neutral);
}

/* Highlight track for Top Pick columns */
table.metric-table td.highlight-cell {
    font-weight: 700;
    color: var(--accent-green);
}

/* ==========================================================================
   MOBILE DATA CARD TRANSFORMATION (Responsive Breakpoint)
   ========================================================================== */
@media (max-width: 768px) {
    /* Hide the traditional desktop header completely */
    table.metric-table thead {
        display: none;
    }

    /* Force table structural elements to behave like stacked block cards */
    table.metric-table, 
    table.metric-table tbody, 
    table.metric-table tr, 
    table.metric-table td {
        display: block;
        width: 100%;
    }

    /* Isolate rows into distinct data blocks with spacing */
    table.metric-table tr {
        margin-bottom: 1.5rem;
        border-bottom: 2px solid var(--text-main);
        padding-bottom: 0.5rem;
        background-color: #ffffff;
    }
    
    table.metric-table tr:nth-child(even) {
        background-color: #ffffff;
    }

    /* Inject column headers dynamically using data-label attributes */
    table.metric-table td {
        text-align: right;
        padding: 0.75rem 1rem;
        border-bottom: 1px dashed var(--border-light);
        position: relative;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    table.metric-table td::before {
        content: attr(data-label);
        font-weight: 700;
        text-transform: uppercase;
        font-size: 0.7rem;
        letter-spacing: 0.05em;
        color: var(--text-muted);
        text-align: left;
    }
    
    table.metric-table td:last-child {
        border-bottom: none;
    }
}
/* ==========================================================================
   THE REVIEW METRICS - PORTAL CATEGORY SPECIAL LAYOUTS
   ========================================================================== */

/* Split layout wrapper for category portals */
.portal-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 5%;
    display: grid;
    grid-template-columns: 1.6fr 1fr; /* 60% Hero Feature, 40% Secondary List */
    gap: 3rem;
}

@media (max-width: 900px) {
    .portal-container { grid-template-columns: 1fr; gap: 2.5rem; padding: 2rem 5%; }
}

/* Big Hero Feature Content Card */
.feature-large-card {
    background: var(--bg-color);
    border: 1px solid var(--border-light);
    border-radius: 4px;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: border-color 0.2s ease;
}
.feature-large-card:hover { border-color: var(--accent-green); }
.feature-large-card h2 { font-size: 2rem; font-weight: 800; line-height: 1.25; margin: 0.75rem 0 1rem; letter-spacing: -0.02em; }
.feature-large-card h2 a { text-decoration: none; color: var(--text-main); }
.feature-large-card h2 a:hover { color: var(--accent-green); }
.feature-large-card p { color: var(--text-muted); font-size: 1.05rem; line-height: 1.6; margin-bottom: 2rem; }

/* Right Column Sidebar Secondary List Stack */
.portal-list-stack {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Sleek Compact Row Cards */
.compact-row-card {
    border-left: 3px solid var(--border-light);
    padding-left: 1.25rem;
    transition: border-left-color 0.2s ease;
}
.compact-row-card:hover { border-left-color: var(--accent-green); }
.compact-row-card h3 { font-size: 1.2rem; font-weight: 700; line-height: 1.4; margin-bottom: 0.4rem; }
.compact-row-card h3 a { text-decoration: none; color: var(--text-main); }
.compact-row-card h3 a:hover { color: var(--accent-green); }
.compact-row-card p { font-size: 0.9rem; color: var(--text-muted); }