/* Proxima Nova Font Faces */
@font-face {
    font-family: 'Proxima Nova';
    src: url('../../web-fonts/fonts/proximanova-regular.woff2.woff') format('woff2'),
         url('../../web-fonts/fonts/proximanova-regular.woff.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Proxima Nova';
    src: url('../../web-fonts/fonts/proximanova-medium.woff2.woff') format('woff2'),
         url('../../web-fonts/fonts/proximanova-medium.woff.woff') format('woff');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Proxima Nova';
    src: url('../../web-fonts/fonts/proximanova-semibold.woff2.woff') format('woff2'),
         url('../../web-fonts/fonts/proximanova-semibold.woff.woff') format('woff');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Proxima Nova';
    src: url('../../web-fonts/fonts/proximanova-bold.woff2.woff') format('woff2'),
         url('../../web-fonts/fonts/proximanova-bold.woff.woff') format('woff');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

body {
    background-color: #f8f9fa;
    font-family: 'Proxima Nova', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

.metric-card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    height: 100%;
    min-height: 417px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    position: relative;
}

.info-icon {
    width: 14px;
    height: 14px;
    border: 1px solid #6c757d;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    margin-left: 5px;
    color: #6c757d;
    cursor: pointer;
    position: relative;
}

.info-icon:hover .info-tooltip {
    opacity: 1;
    visibility: visible;
}

.info-tooltip {
    position: absolute;
    top: calc(100% + 8px);
    left: -77px;
    transform: translateX(0);
    background-color: rgba(13, 13, 13, 0.9);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 400;
    white-space: normal;
    max-width: 200px;
    width: max-content;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    pointer-events: none;
    line-height: 1.4;
}

.info-tooltip::after {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 85px;
    border: 5px solid transparent;
    border-bottom-color: rgba(13, 13, 13, 0.9);
    border-top-color: rgba(13, 13, 13, 0.9);
}

.metric-label-main {
    font-weight: 700;
    display: flex;
    align-items: center;
    margin-bottom: 4px;
    font-size: 13px;
}

.metric-label-sub {
    font-size: 11px;
    color: #6c757d;
    font-weight: 400;
    display: flex;
    align-items: center;
}

.buzz-score-label {
    font-size: 11px;
    color: #212529;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.buzz-value {
    font-size: 32px;
    color: #3355b9;
    font-weight: 300;
    margin: 10px 0 10px 0;
    flex-shrink: 0;
}

.buzz-description {
    font-size: 9px;
    line-height: 1.6;
    color: #6c757d;
    flex: 1;
    overflow: visible;
    min-height: 0;
}

/* Buzz Score Drum Indicator */
.buzz-content-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    gap: 20px;
    flex: 1;
    min-height: 0;
}

.buzz-text-content {
    flex: 1;
    text-align: left;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.buzz-drum-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
    align-self: stretch;
}

.buzz-drum-container {
    position: relative;
    width: 70px;
    height: 75%;
    min-height: 250px;
    max-height: 400px;
    display: flex;
    flex-direction: column-reverse;
    border-radius: 4px;
    overflow: hidden;
    background-color: #f0f2f5;
}

.buzz-drum-segment {
    width: 100%;
    background-color: #e8eaed;
    border-top: 0.5px solid #ffffff;
    transition: background-color 0.4s ease;
}

.buzz-drum-segment:first-child {
    border-bottom: none;
}

.buzz-drum-segment.filled {
    background-color: #3355b9;
}

.buzz-drum-labels {
    position: relative;
    height: 75%;
    min-height: 250px;
    max-height: 400px;
    font-size: 11px;
    color: #6c757d;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.buzz-drum-label {
    text-align: left;
    line-height: 1;
}

.buzz-drum-tooltip {
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(13, 13, 13, 0.9);
    color: white;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.buzz-drum-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: rgba(13, 13, 13, 0.9);
}

.buzz-drum-container:hover .buzz-drum-tooltip {
    opacity: 1;
}

/* Responsive layout for small containers */
@media (max-width: 390px) {
    .metric-card {
        padding: 15px;
        min-height: 417px;
    }
    
    .buzz-content-wrapper {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    
    .buzz-value {
        font-size: 32px;
        margin: 8px 0;
        color: #3355b9;
    }
    
    .buzz-text-content {
        flex: 0 0 auto;
        min-height: 0;
        display: flex;
        flex-direction: column;
    }
    
    .buzz-score-label {
        margin-bottom: 6px;
    }
    
    .buzz-description {
        font-size: 9px;
        line-height: 1.6;
    }
    
    .buzz-drum-wrapper {
        align-self: center;
        width: 100%;
        justify-content: center;
        flex: 1;
        min-height: 200px;
    }
    
    .buzz-drum-container {
        min-height: 200px;
        max-height: 100%;
    }
    
    .buzz-drum-labels {
        min-height: 200px;
        max-height: 100%;
    }
}

/* Skeleton Loading */
@keyframes skeleton-shimmer {
    0%   { background-position: -600px 0; }
    100% { background-position: 600px 0; }
}

.skeleton {
    background: linear-gradient(90deg, #f0f2f5 25%, #e4e7ec 50%, #f0f2f5 75%);
    background-size: 1200px 100%;
    animation: skeleton-shimmer 1.6s infinite linear;
    border-radius: 4px;
}

.widget-skeleton {
    position: absolute;
    inset: 0;
    background: white;
    z-index: 10;
    padding: 20px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
}

.skeleton-label-main {
    height: 13px;
    width: 100px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.skeleton-label-sub {
    height: 10px;
    width: 130px;
    margin-bottom: 16px;
    flex-shrink: 0;
}

.skeleton-buzz-body {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    gap: 20px;
    flex: 1;
}

.skeleton-buzz-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.skeleton-buzz-value {
    height: 32px;
    width: 80px;
    border-radius: 4px;
    flex-shrink: 0;
}

.skeleton-buzz-desc {
    height: 10px;
    width: 100%;
}

.skeleton-drum {
    width: 70px;
    min-height: 250px;
    border-radius: 4px;
    flex-shrink: 0;
}
