/* Topic Analysis Dashboard Styles */
.polarization-meter {
    width: 200px;
    height: 200px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: conic-gradient(
        var(--tw-primary) calc(var(--score) * 1%),
        rgba(255, 255, 255, 0.1) 0
    );
    box-shadow: 0 0 30px rgba(var(--primary-rgb), 0.3);
}

.polarization-meter::after {
    content: '';
    position: absolute;
    inset: 15px;
    background: #000000;
    border-radius: 50%;
    z-index: 1;
}

.dark .polarization-meter::after {
    background: #0f172a; /* Slightly lighter than pure black */
}

.polarization-meter-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.mosaic-grid {
    display: flex;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #000;
}

.mosaic-item {
    flex: 1;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.9) contrast(1.1);
    transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}


.mosaic-item:hover {
    filter: brightness(0.6) grayscale(0);
    flex: 1.2;
}

.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 24px;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
}

.dark .glass-card {
    background: rgba(30, 41, 59, 0.6); /* Slightly more opaque for better text contrast */
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5);
}

.perspective-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.perspective-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

.dark .perspective-card {
    background: rgba(15, 23, 42, 0.6);
    border-color: rgba(255, 255, 255, 0.05);
}

.dark .perspective-card:hover {
    background: rgba(30, 41, 59, 0.8);
    border-color: rgba(255, 255, 255, 0.15);
}
