/* ============================================
   VisitorAnalytics 1.0 - Heatmap Styles
   Grid heatmap (7x24) + Radial heatmap
   ============================================ */

/* ============ Grid Heatmap ============ */
.analytics-heatmap-grid {
    display: grid;
    grid-template-columns: 50px repeat(24, 1fr);
    gap: 2px;
}

.analytics-heatmap-label {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 0.5rem;
    font-size: 0.6875rem;
    font-weight: 500;
    color: #9ca3af;
}

.analytics-heatmap-header {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.625rem;
    font-weight: 500;
    color: #6b7280;
    padding: 0.25rem 0;
}

.analytics-heatmap-cell {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1;
    font-size: 0.5625rem;
    font-weight: 500;
    border-radius: 0.125rem;
    transition: transform var(--va-transition);
    cursor: default;
}

.analytics-heatmap-cell:hover {
    transform: scale(1.2);
    z-index: 1;
}

/* Heatmap color scale - warm gradient */
.heat-0 { background-color: rgba(255, 255, 255, 0.03); color: transparent; }
.heat-1 { background-color: rgba(254, 215, 170, 0.6); color: #9a3412; }
.heat-2 { background-color: rgba(253, 186, 116, 0.7); color: #9a3412; }
.heat-3 { background-color: rgba(251, 146, 60, 0.8); color: white; }
.heat-4 { background-color: rgba(249, 115, 22, 0.85); color: white; }
.heat-5 { background-color: rgba(234, 88, 12, 0.9); color: white; }
.heat-6 { background-color: rgba(220, 38, 38, 0.9); color: white; }
.heat-7 { background-color: rgba(185, 28, 28, 0.95); color: white; }

.light .heat-0 { background-color: rgba(0, 0, 0, 0.03); }

/* ============ Radial Heatmap ============ */
.radial-heatmap-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    padding: 1rem;
}

.radial-heatmap {
    position: relative;
    width: 280px;
    height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.radial-center {
    position: absolute;
    width: 50px;
    height: 50px;
    background: var(--va-card);
    border: 2px solid var(--va-accent);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10;
    box-shadow: 0 0 20px rgba(78, 205, 196, 0.3);
}

.radial-center .ti {
    font-size: 1.25rem;
    color: var(--va-accent);
}

.radial-center small {
    font-size: 0.625rem;
    color: #9ca3af;
    margin-top: 2px;
}

.radial-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 4px;
    transition: all 0.3s ease;
    background: rgba(78, 205, 196, calc(var(--ring-intensity, 0) * 0.8 + 0.1));
}

.radial-ring:hover {
    border-color: var(--va-accent);
    transform: scale(1.02);
}

.radial-ring.ring-0 { width: 80px;  height: 80px; }
.radial-ring.ring-1 { width: 120px; height: 120px; }
.radial-ring.ring-2 { width: 160px; height: 160px; }
.radial-ring.ring-3 { width: 200px; height: 200px; }
.radial-ring.ring-4 { width: 240px; height: 240px; }

.ring-label {
    font-size: 0.625rem;
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    white-space: nowrap;
}

.radial-legend {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.radial-legend .legend-title {
    font-size: 0.75rem;
    color: #9ca3af;
    font-weight: 500;
}

.radial-legend .legend-scale {
    display: flex;
    gap: 2px;
}

.radial-legend .legend-item {
    width: 40px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.625rem;
    color: white;
    border-radius: 2px;
}

.light .radial-center {
    background: var(--va-card);
}

.light .radial-ring {
    border-color: rgba(0, 0, 0, 0.1);
}

.light .ring-label {
    color: #1f2937;
    text-shadow: none;
}
