/* ==========================================================================
   Runway Digital — Conversion Tracking & Reporting Dashboard Styles
   Robust Vanilla CSS implementation matching runway-digital & screenshots
   ========================================================================== */

:root {
    --g-blue: #4285f4;
    --g-red: #ea4335;
    --g-yellow: #fbbc05;
    --g-green: #34a853;
    --color-border: rgba(32, 33, 36, 0.08);
    --color-card: #ffffff;
    --color-primary: #4285f4;
    --shadow-soft: 0 4px 20px -4px rgba(0, 0, 0, 0.03);
    --shadow-lift: 0 8px 24px -6px rgba(0, 0, 0, 0.08);
}

.section-rd {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

@media (min-width: 640px) {
    .section-rd {
        padding-top: 7rem;
        padding-bottom: 7rem;
    }
}

.container-rd {
    width: 100%;
    max-width: 80rem;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
    box-sizing: border-box;
    overflow: hidden;
}

@media (max-width: 640px) {
    .container-rd {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

.card-rd {
    border: 1px solid var(--color-border);
    background: var(--color-card);
    box-shadow: var(--shadow-soft);
    border-radius: 1.5rem;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.card-rd:hover {
    box-shadow: var(--shadow-lift);
    border-color: var(--color-primary);
    transform: translateY(-4px);
}

.eyebrow-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.95rem;
    border: 1px solid #dadce0;
    border-radius: 9999px;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: #5f6368;
    text-transform: uppercase;
    background: #ffffff;
    margin-bottom: 1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

/* Dashboard Top 4 KPI Grid */
.dashboard-grid-kpis {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

@media (min-width: 640px) {
    .dashboard-grid-kpis {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .dashboard-grid-kpis {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Middle Row Grid (Clicks Trend + Search Intent Mix) */
.dashboard-grid-charts {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

@media (min-width: 1024px) {
    .dashboard-grid-charts {
        grid-template-columns: 1.35fr 0.65fr;
    }
}

/* Clicks Trend SVG Line Chart */
.clicks-chart-svg {
    width: 100%;
    height: 10rem;
    overflow: visible;
}

@media (min-width: 640px) {
    .clicks-chart-svg {
        height: 11.5rem;
    }
}

/* Bar Chart Container & Blue Columns */
.conversions-bar-container {
    display: flex;
    align-items: flex-end;
    height: 8.5rem;
    gap: 0.5rem;
}

@media (min-width: 640px) {
    .conversions-bar-container {
        height: 9.5rem;
        gap: 0.75rem;
    }
}

.bar-column-wrap {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    justify-content: flex-end;
    min-width: 0;
}

.blue-bar-col {
    background: #4285f4;
    border-radius: 10px 10px 4px 4px;
    width: 100%;
    transition: height 700ms cubic-bezier(0.22, 1, 0.36, 1), background-color var(--transition-fast) ease;
}

.blue-bar-col:hover {
    background: #1a73e8;
}

/* Donut Chart SVG Proportions */
.donut-svg-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 1.25rem;
    margin-bottom: 1.25rem;
}

.donut-svg-chart {
    width: 9.5rem;
    height: 9.5rem;
    transform: rotate(-90deg);
    flex-shrink: 0;
}

@media (min-width: 640px) {
    .donut-svg-chart {
        width: 11rem;
        height: 11rem;
    }
}

/* Match Bars Progress Track */
.match-bar-track {
    background: #f1f3f4;
    border-radius: 9999px;
    height: 8px;
    overflow: hidden;
    margin-top: 0.375rem;
}

.match-bar-fill {
    height: 100%;
    border-radius: 9999px;
    background: linear-gradient(90deg, #4285f4 0%, #34a853 100%);
    transition: width 1000ms cubic-bezier(0.22, 1, 0.36, 1);
}

.pill-tag-mini {
    display: inline-flex;
    align-items: center;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 9999px;
    padding: 0.2rem 0.65rem;
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Search Intent Section */
.search-intent-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 640px) {
    .search-intent-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .search-intent-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.bg-primary-soft {
    background-color: rgba(66, 133, 244, 0.08);
    border: 1px solid rgba(66, 133, 244, 0.18);
}

/* Single Powerful Split Layout for Combined Search & Industry Deck */
.search-industry-split-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    align-items: flex-start;
}

@media (min-width: 1024px) {
    .search-industry-split-grid {
        grid-template-columns: 1.05fr 0.95fr;
    }
}

/* Authentic Pixel-Perfect Google Search Bar */
.google-search-bar-wrap {
    width: 100%;
    margin-bottom: 1.15rem;
}

.google-search-bar-inner {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: #ffffff;
    border: 1px solid #dfe1e5;
    border-radius: 9999px;
    padding: 0.75rem 1.25rem;
    box-shadow: 0 2px 8px rgba(32, 33, 36, 0.08);
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.google-search-bar-inner:hover,
.google-search-bar-inner:focus-within {
    box-shadow: 0 4px 16px rgba(32, 33, 36, 0.14);
    border-color: rgba(66, 133, 244, 0.5);
}

.google-search-input-text {
    flex: 1;
    font-size: 14.5px;
    font-weight: 500;
    color: #202124;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: opacity 0.25s ease;
}

.google-search-input-text {
    flex: 1;
    font-size: 13.5px;
    font-family: var(--font-sans);
    color: #202124;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.google-search-input-text.changing {
    opacity: 0;
    transform: translateY(-4px);
}

.google-search-bar-tools {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex-shrink: 0;
}

/* Industry Selector Pills */
.industry-pill-btn {
    position: relative;
    overflow: hidden;
    border-radius: 9999px;
    border: 1px solid #dadce0;
    padding: 0.45rem 1rem;
    font-size: 12.5px;
    font-weight: 500;
    background: #ffffff;
    color: #3c4043;
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    cursor: pointer;
    white-space: nowrap;
}

.industry-pill-btn:hover {
    border-color: rgba(32, 33, 36, 0.25);
    background: var(--surface);
    color: var(--ink);
}

.industry-pill-btn.active {
    background: var(--ink);
    color: #ffffff;
    border-color: var(--ink);
    box-shadow: 0 4px 14px rgba(32, 33, 36, 0.25);
    font-weight: 600;
}

/* 7-Second Visual Progress Indicator on Active Pill */
.industry-pill-btn .pill-progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 9999px;
    pointer-events: none;
    box-shadow: 0 0 6px rgba(255, 255, 255, 0.7);
}

/* ===== Google Reviews Section & Scoped Styles ===== */
.reviews-section-grid {
    display: grid;
    gap: 1.5rem;
    margin-top: 2.5rem;
}

@media (min-width: 1024px) {
    .reviews-section-grid {
        grid-template-columns: 0.8fr 1.2fr;
        align-items: start;
    }
}

.reviews-cards-grid {
    display: grid;
    gap: 1rem;
}

@media (min-width: 640px) {
    .reviews-cards-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .reviews-cta-wrap {
        grid-column: span 2 / span 2;
    }
}

.rating-summary-card {
    background: #ffffff;
    border: 1px solid rgba(32, 33, 36, 0.08);
    border-radius: 1.5rem;
    padding: 1.5rem;
    box-shadow: 0 4px 20px -4px rgba(0, 0, 0, 0.03);
}

.review-card-item {
    background: #ffffff;
    border: 1px solid rgba(32, 33, 36, 0.08);
    border-radius: 1.5rem;
    padding: 1.25rem;
    box-shadow: 0 4px 20px -4px rgba(0, 0, 0, 0.03);
    transition: opacity 0.3s ease, transform 0.3s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 140px;
}

.review-card-item:hover {
    border-color: rgba(66, 133, 244, 0.3);
    box-shadow: 0 10px 25px -5px rgba(66, 133, 244, 0.08);
}

.review-card-item.is-fading {
    opacity: 0;
    transform: translateY(4px);
}

.rating-bar-track {
    background-color: #f1f3f4;
    height: 0.5rem;
    flex: 1 1 0%;
    min-width: 0;
    overflow: hidden;
    border-radius: 9999px;
}

.rating-bar-fill {
    background-color: #fbbc05;
    display: block;
    height: 100%;
    border-radius: 9999px;
}

.btn-google-maps {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border-radius: 9999px;
    font-weight: 500;
    border: 1px solid rgba(32, 33, 36, 0.15);
    background-color: #ffffff;
    color: #202124 !important;
    height: 2.75rem;
    padding: 0 1.25rem;
    font-size: 0.9375rem;
    width: 100%;
    margin-top: 1.5rem;
    text-decoration: none;
    transition: background-color 0.2s, border-color 0.2s;
}

.btn-google-maps:hover {
    background-color: #f8f9fa;
    border-color: rgba(66, 133, 244, 0.4);
}

.btn-review-google {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border-radius: 9999px;
    font-weight: 500;
    background-color: var(--ink);
    color: #ffffff !important;
    height: 2.75rem;
    padding: 0 1.25rem;
    font-size: 0.9375rem;
    text-decoration: none;
    box-shadow: 0 4px 14px -3px rgba(32, 33, 36, 0.25);
    transition: all 0.2s ease;
}

.btn-review-google:hover {
    background-color: var(--g-yellow);
    color: var(--ink) !important;
    box-shadow: 0 6px 20px -4px rgba(251, 188, 5, 0.4);
    filter: brightness(1.02);
}

.review-circle-avatar {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 9999px;
    background-color: #f1f3f4;
    color: var(--ink);
    font-weight: 700;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-family: inherit;
}

.review-author-name {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #202124;
    line-height: 1.2;
}

.review-text-content {
    font-size: 0.875rem;
    line-height: 1.5;
    color: #5f6368;
    margin-top: 0.75rem;
    flex-grow: 1;
}

.review-skeleton-bar {
    display: block;
    height: 0.75rem;
    width: 6rem;
    border-radius: 9999px;
    background-color: #f1f3f4;
}

.google-dots-group {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    flex-shrink: 0;
}

.google-dot-b { width: 0.375rem; height: 0.375rem; border-radius: 9999px; background-color: #4285f4; }
.google-dot-r { width: 0.375rem; height: 0.375rem; border-radius: 9999px; background-color: #ea4335; }
.google-dot-y { width: 0.375rem; height: 0.375rem; border-radius: 9999px; background-color: #fbbc05; }
.google-dot-g { width: 0.375rem; height: 0.375rem; border-radius: 9999px; background-color: #34a853; }

.star-gold {
    color: #fbbc05;
    fill: currentColor;
}

.review-dot-indicator {
    width: 8px;
    height: 8px;
    border-radius: 9999px;
    background-color: rgba(32, 33, 36, 0.18);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: all 0.25s ease;
}

.review-dot-indicator:hover {
    background-color: rgba(32, 33, 36, 0.35);
}

.review-dot-indicator.active {
    width: 22px;
    background-color: var(--ink);
}

.reviews-cta-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.eyebrow {
    border: 1px solid rgba(32, 33, 36, 0.12);
    background: #ffffff;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #5f6368;
    border-radius: 999px;
    align-items: center;
    gap: .5rem;
    padding: .35rem .85rem;
    font-size: .78rem;
    font-weight: 600;
    display: inline-flex;
    font-family: var(--font-mono, 'JetBrains Mono', monospace);
}
