/* CSS Variables supporting fluid Light & Dark Mode swaps */
:root {
    --bg-color: #f8fafc;
    --card-bg: #ffffff;
    --primary: #0066ff;
    --primary-hover: #0052cc;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --green: #22c55e;
    --yellow: #eab308;
    --red: #ef4444;
    --border: #e2e8f0;
}

[data-theme="dark"] {
    --bg-color: #121212;       /* Android Material baseline background layer */
    --card-bg: #1e1e1e;        /* Elevated Material card canvas layer */
    --primary: #0066ff;        /* Enforces your clean blue accent */
    --primary-hover: #0052cc;  /* Darker blue for hover states */
    --text-main: #e3e2e6;      /* Off-white Android title text node color */
    --text-muted: #939099;     /* Desaturated Android helper description text */
    --border: #2c2c2c;         /* Crisp, subtle layout outline separator */
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif !important;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
}

.top-bar {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 20px;
}

/* Toggle Switch Styling */
.theme-switch-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
}

.theme-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
}

.theme-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #cbd5e1;
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider { background-color: var(--primary); }
input:checked + .slider:before { transform: translateX(24px); }

h1 { text-align: center; margin-bottom: 10px; font-weight: 700; }
p.subtitle { text-align: center; color: var(--text-muted); margin-bottom: 40px; }

.input-section {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
    border: 1px solid var(--border);
}

.input-group { display: flex; gap: 15px; flex-wrap: wrap; }

input[type="url"] {
    flex: 1;
    padding: 15px 20px;
    border: 2px solid var(--border);
    background: var(--card-bg);
    color: var(--text-main);
    border-radius: 10px;
    font-size: 16px;
    outline: none;
}

input[type="url"]:focus { border-color: var(--primary); }

button#analyze-btn, .action-btn {
    background-color: var(--primary);
    color: white;
    border: none;
    padding: 0 35px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    height: 54px;
}

button#analyze-btn:hover, .action-btn:hover { background-color: var(--primary-hover); }
button#analyze-btn:disabled { background-color: var(--text-muted); cursor: not-allowed; }

.results-section { display: none; }

.controls-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
}

.device-switch-container { display: flex; gap: 10px; }

.device-btn {
    padding: 10px 25px;
    border: 2px solid var(--primary);
    color: var(--primary);
    background: transparent;
    border-radius: 20px;
    font-weight: 600;
    cursor: pointer;
}

.device-btn.active, .device-btn:hover { background: var(--primary); color: white; }

.score-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.card {
    background: var(--card-bg);
    padding: 25px 15px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border);
}

.card h3 { color: var(--text-muted); font-size: 13px; margin-bottom: 15px; text-transform: uppercase; letter-spacing: 1px; font-weight: 600; }

.circle-wrap { position: relative; width: 110px; height: 110px; margin: 0 auto; }
.circle-wrap .circle { width: 100%; height: 100%; border-radius: 50%; border: 10px solid var(--border); position: absolute; }

.circle-wrap .circle-fill {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 10px solid var(--green);
    clip: rect(0, 110px, 110px, 55px);
    transform: rotate(0deg);
    transition: transform 1s ease-out, border-color 0.3s ease;
}

.circle-wrap.yellow .circle-fill { border-color: var(--yellow); }
.circle-wrap.red .circle-fill { border-color: var(--red); }

.circle-wrap .inner-circle {
    position: absolute;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: var(--card-bg);
    left: 10px; top: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    font-weight: 700;
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.metric-box { 
    background: var(--card-bg); 
    padding: 20px; 
    border-radius: 12px; 
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05); 
    border: 1px solid var(--border);
}

.metric-header { display: flex; justify-content: space-between; margin-bottom: 10px; }
.metric-name { font-weight: 600; font-size: 14px; }
.metric-value { font-weight: 700; font-size: 14px; }

.progress-bar-bg { height: 6px; background: var(--border); border-radius: 3px; overflow: hidden; }
.progress-bar { height: 100%; width: 0%; border-radius: 3px; transition: width 1s ease-out, background-color 0.3s ease; }
.progress-green { background-color: var(--green); }
.progress-yellow { background-color: var(--yellow); }
.progress-red { background-color: var(--red); }

.checklist-container { 
    background: var(--card-bg); 
    padding: 30px; 
    border-radius: 16px; 
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05); 
    border: 1px solid var(--border);
}
.checklist-container h2 { font-size: 20px; margin-bottom: 20px; border-bottom: 2px solid var(--border); padding-bottom: 10px; font-weight: 700; }
.checklist-item { display: flex; align-items: flex-start; gap: 15px; padding: 15px 0; border-bottom: 1px solid var(--border); }
.checklist-item:last-child { border-bottom: none; }

.checklist-status { width: 24px; height: 24px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; font-weight: bold; font-size: 14px; flex-shrink: 0; }
.status-red { background-color: var(--red); }
.status-yellow { background-color: var(--yellow); }

.checklist-content { flex: 1; }
.checklist-title { font-weight: 700; font-size: 16px; color: var(--text-main); }
.checklist-desc { font-size: 14px; color: var(--text-muted); margin-top: 4px; }
.checklist-savings { font-size: 13px; font-weight: 700; color: var(--red); margin-top: 4px; }

.loading { display: none; text-align: center; margin: 40px 0; }
.spinner { width: 50px; height: 50px; border: 5px solid var(--border); border-top-color: var(--primary); border-radius: 50%; animation: spin 1s linear infinite; margin: 0 auto 20px; }

@keyframes spin { to { transform: rotate(360deg); } }


/***************************************************************************************/
/*********** PRIVACY NOTICE SECTION ****************************************/
/***************************************************************************************/


/* Base Container Setup - Updated to center horizontally */
.privacy-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin: 20px 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
}

/* Low-Profile Trigger Label */
.privacy-trigger {
    position: relative;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    font-size: 13px;
    color: #64748b; /* Neutral slate gray */
    padding: 6px 12px;
    border-radius: 4px;
    transition: color 0.2s ease, background-color 0.2s ease;
}

/* Subtle, low-profile use of your brand color on hover */
.privacy-trigger:hover {
    color: #0066ff; /* Primary color accent used only on hover focus */
    background-color: #f0f6ff; /* Very soft blue tint */
}

/* Hidden Tooltip Base */
.privacy-tooltip {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    bottom: 135%; /* Positions tooltip cleanly above the text */
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    width: 260px;
    background-color: #1e293b; /* Deep low-profile slate background */
    color: #ffffff;
    text-align: center;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    line-height: 1.4;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    z-index: 100;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

/* Small Tooltip Bottom Arrow */
.privacy-tooltip::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #1e293b transparent transparent transparent;
}

/* Smooth Hover Trigger Reveal */
.privacy-trigger:hover .privacy-tooltip {
    visibility: visible;
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}






/***************************************************************************************/
/*********** TECHNICAL SEO & SPEED AUDIT SECTION ****************************************/
/***************************************************************************************/

/* Container styling and font isolation */
.wpc-seo-dashboard {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    max-width: 100%;
    margin: 10rem 0 3rem 0;
    color: #334155;
    box-sizing: border-box;
}

.wpc-seo-dashboard * {
    box-sizing: border-box;
}

/* Low-Profile Header */
.wpc-seo-header {
    margin-bottom: 24px;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 16px;
}
.wpc-seo-header h2 {
    font-size: 22px;
    color: #0f172a;
    margin: 0 0 4px 0;
    font-weight: 600;
}
.wpc-seo-header p {
    color: #64748b;
    margin: 0;
    font-size: 14px;
}

/* Responsive Grid Layout */
.wpc-seo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

/* Minimalist Card Styling */
.wpc-seo-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 20px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

/* Low-profile interaction: The primary color appears ONLY as a sharp focus border line on hover */
.wpc-seo-card:hover {
    border-color: #0066ff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

/* Card Header Layout */
.wpc-card-title-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

/* Grayed-out utility icons to keep contrast clean */
.wpc-card-icon {
    font-size: 18px;
    color: #64748b;
    line-height: 1;
}
.wpc-seo-card h3 {
    font-size: 15px;
    margin: 0;
    color: #0f172a;
    font-weight: 600;
}

/* Metric List Rows */
.wpc-metric-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}
.wpc-metric-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f1f5f9;
    font-size: 13px;
}
.wpc-metric-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}
.wpc-metric-label {
    font-weight: 400;
    color: #475569;
}

/* Clean, Muted Badges (No bright colors) */
.wpc-badge {
    padding: 3px 6px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
}

/* Universal sublist checkmarks updated to a simple, low-profile gray check */
.wpc-dev-checkmark {
    color: #94a3b8;
    font-weight: bold;
    font-size: 14px;
    line-height: 1;
    margin-top: 3px;
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .wpc-seo-grid {
        grid-template-columns: 1fr;
    }
}




/***************************************************************************************/
/*********** DEVELOPER'S GUIDE TO SEO EXCELLENCE SECTION *******************************/

/***************************************************************************************/

/* Container reset and font isolation */
.wpc-dev-seo-container {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
    max-width: 100%;
    margin: 30px auto;
    padding: 0;
    color: #1e293b;
    line-height: 1.6;
    box-sizing: border-box;
}

.wpc-dev-seo-container * {
    box-sizing: border-box;
}

/* Header Section - Styled with your primary #0066ff brand color */
.wpc-dev-seo-header {
    background: linear-gradient(135deg, #f0f5ff 0%, #e0ecff 100%);
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 35px;
    border: 1px solid #b3d1ff;
}

.wpc-dev-seo-header h2 {
    font-size: 26px;
    color: #004ecc;
    margin: 0 0 8px 0;
    font-weight: 700;
}

.wpc-dev-seo-header p {
    color: #1e3a8a;
    margin: 0;
    font-size: 15px;
    max-width: 700px;
}

/* Flex/Grid Column Architecture */
.wpc-dev-seo-row {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

/* Component Card */
.wpc-dev-seo-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

/* Primary hover state accentuating #0066ff */
.wpc-dev-seo-card:hover {
    border-color: #0066ff;
    box-shadow: 0 10px 15px -3px rgba(0, 102, 255, 0.08);
}

/* Header & Title Meta styling */
.wpc-dev-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
    border-bottom: 2px solid #f1f5f9;
    padding-bottom: 12px;
}

.wpc-dev-card-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Icon backgrounds balanced with your brand primary */
.wpc-dev-card-icon {
    font-size: 22px;
    background: #e6f0ff;
    color: #0066ff;
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

.wpc-dev-seo-card h3 {
    font-size: 18px;
    margin: 0;
    color: #0f172a;
    font-weight: 600;
}

/* Matching Blue-Tinted Metadata Tags */
.wpc-dev-tag {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 4px 10px;
    border-radius: 20px;
    background: #f1f5f9;
    color: #475569;
}

.wpc-dev-tag-core { background: #e6f0ff; color: #0052cc; }
.wpc-dev-tag-perf { background: #e0f2fe; color: #0369a1; }
.wpc-dev-tag-meta { background: #f8fafc; color: #64748b; }
.wpc-dev-tag-access { background: #fff7ed; color: #c2410c; }

/* Sublist Structure for Sub-items */
.wpc-dev-sublist {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.wpc-dev-subitem {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

/* Custom Checkmark Bullet updated to match #0066ff brand */
.wpc-dev-checkmark {
    color: #0066ff;
    font-weight: bold;
    font-size: 16px;
    line-height: 1;
    margin-top: 3px;
}

.wpc-dev-subcontent strong {
    color: #334155;
    display: inline-block;
    margin-bottom: 2px;
}

.wpc-dev-subcontent p {
    margin: 0;
    font-size: 14px;
    color: #64748b;
}

/* Desktop optimization layout conversion */
@media (min-width: 768px) {
    .wpc-dev-seo-row {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }
}


