/**
 * Attack Map Styles - Cyber Theme
 * Extracted from templates/partials/attack-map.php
 *
 * @package ReportedIP_Service
 */

/* ==========================================================================
   CYBER THEME - Attack Map Styles
   ========================================================================== */

.attack-map-section.cyber-theme {
    --cyber-bg-dark: #0a0a0f;
    --cyber-bg: #0d1117;
    --cyber-bg-panel: #161b22;
    --cyber-border: rgba(0, 255, 65, 0.2);
    --cyber-border-bright: rgba(0, 255, 65, 0.4);
    --cyber-text: #c9d1d9;
    --cyber-text-muted: #8b949e;
    --cyber-text-bright: #f0f6fc;
    --cyber-accent: #00ff41;
    --cyber-accent-dim: rgba(0, 255, 65, 0.1);
    --cyber-cyan: #00d4ff;

    /* Threat Level Colors */
    --threat-minimal: #00ff41;
    --threat-low: #39ff14;
    --threat-medium: #ffd700;
    --threat-high: #ff6b35;
    --threat-critical: #ff0040;

    background: linear-gradient(180deg, var(--cyber-bg-dark) 0%, var(--cyber-bg) 100%);
    border: 1px solid var(--cyber-border);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    font-family: 'JetBrains Mono', 'Fira Code', 'SF Mono', 'Consolas', monospace;
    position: relative;
    overflow: visible;
}

.attack-map-section.cyber-theme::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--cyber-accent), transparent);
    opacity: 0.5;
}

/* Header */
.attack-map-section.cyber-theme .section-header {
    margin-bottom: 1.5rem;
    text-align: center;
}

.attack-map-section.cyber-theme .section-title {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 0.5rem;
    color: var(--cyber-text-bright);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.attack-map-section.cyber-theme .title-icon {
    color: var(--cyber-accent);
    display: flex;
    filter: drop-shadow(0 0 6px var(--cyber-accent));
}

.attack-map-section.cyber-theme .section-subtitle {
    color: var(--cyber-text-muted);
    margin: 0;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
}

.attack-map-section.cyber-theme .stat-highlight {
    color: var(--cyber-accent);
    font-weight: 600;
}

/* Map Layout */
.attack-map-section.cyber-theme .map-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 1.5rem;
}

@media (max-width: 1024px) {
    .attack-map-section.cyber-theme .map-layout {
        grid-template-columns: 1fr;
    }
}

/* Map Visualization */
.attack-map-section.cyber-theme .map-visualization {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.attack-map-section.cyber-theme .world-map-wrapper {
    position: relative;
    background: var(--cyber-bg);
    border: 1px solid var(--cyber-border);
    border-radius: 8px;
    overflow: visible;
    padding: 1rem;
}

/* SVG Map Styles */
.attack-map-section.cyber-theme .cyber-world-map {
    display: block;
    width: 100%;
    height: auto;
    background: var(--cyber-bg);
}

.attack-map-section.cyber-theme .cyber-world-map .land {
    fill: #1e2936;
    stroke: rgba(0, 255, 65, 0.15);
    stroke-width: 0.3;
    stroke-linejoin: round;
    cursor: pointer;
    transition: fill 0.2s ease, filter 0.2s ease, stroke 0.2s ease;
}

.attack-map-section.cyber-theme .cyber-world-map .land:hover {
    filter: brightness(1.6) drop-shadow(0 0 6px var(--cyber-accent));
    stroke: var(--cyber-accent);
    stroke-width: 1.5;
}

/* Threat Level Colors */
.attack-map-section.cyber-theme .cyber-world-map .land.level-minimal {
    fill: var(--threat-minimal);
    fill-opacity: 0.7;
}

.attack-map-section.cyber-theme .cyber-world-map .land.level-low {
    fill: var(--threat-low);
    fill-opacity: 0.75;
}

.attack-map-section.cyber-theme .cyber-world-map .land.level-medium {
    fill: var(--threat-medium);
    fill-opacity: 0.8;
}

.attack-map-section.cyber-theme .cyber-world-map .land.level-high {
    fill: var(--threat-high);
    fill-opacity: 0.85;
}

.attack-map-section.cyber-theme .cyber-world-map .land.level-critical {
    fill: var(--threat-critical);
    fill-opacity: 0.9;
}

/* Current Country Pulse Effect */
.attack-map-section.cyber-theme .cyber-world-map .land.current-country {
    stroke: var(--cyber-cyan);
    stroke-width: 2;
    animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% {
        filter: drop-shadow(0 0 4px var(--cyber-cyan)) brightness(1);
    }
    50% {
        filter: drop-shadow(0 0 12px var(--cyber-cyan)) brightness(1.2);
    }
}

/* Scanlines Effect */
.attack-map-section.cyber-theme .scanlines {
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 255, 65, 0.02) 2px,
        rgba(0, 255, 65, 0.02) 4px
    );
    pointer-events: none;
    z-index: 1;
}

/* Attack Lines Animation Layer */
.attack-map-section.cyber-theme .attack-lines-svg {
    position: absolute;
    top: 1rem;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    width: calc(100% - 2rem);
    height: calc(100% - 2rem);
    pointer-events: none;
    z-index: 2;
}

.attack-map-section.cyber-theme .attack-line {
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.attack-map-section.cyber-theme .attack-line.threat-low {
    stroke: var(--threat-minimal);
    filter: url(#glow-green);
}

.attack-map-section.cyber-theme .attack-line.threat-medium {
    stroke: var(--threat-medium);
    filter: url(#glow-gold);
}

.attack-map-section.cyber-theme .attack-line.threat-high {
    stroke: var(--threat-critical);
    filter: url(#glow-red);
}

.attack-map-section.cyber-theme .attack-projectile {
    filter: url(#glow-green);
}

.attack-map-section.cyber-theme .attack-projectile.threat-low {
    fill: var(--threat-minimal);
    filter: url(#glow-green);
}

.attack-map-section.cyber-theme .attack-projectile.threat-medium {
    fill: var(--threat-medium);
    filter: url(#glow-gold);
}

.attack-map-section.cyber-theme .attack-projectile.threat-high {
    fill: var(--threat-critical);
    filter: url(#glow-red);
}

/* Impact flash animation */
@keyframes impact-flash {
    0% {
        r: 3;
        opacity: 1;
    }
    100% {
        r: 20;
        opacity: 0;
    }
}

.attack-map-section.cyber-theme .impact-flash {
    animation: impact-flash 0.5s ease-out forwards;
}

/* Cyber Tooltip */
.attack-map-section.cyber-theme .cyber-tooltip {
    position: absolute;
    background: rgba(13, 17, 23, 0.95);
    border: 1px solid var(--cyber-border-bright);
    border-radius: 8px;
    padding: 0.875rem 1rem;
    font-size: 0.8rem;
    pointer-events: none;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.2s, transform 0.2s;
    z-index: 100;
    min-width: 180px;
    backdrop-filter: blur(8px);
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.1);
}

.attack-map-section.cyber-theme .cyber-tooltip.visible {
    opacity: 1;
    transform: translateY(0);
}

.attack-map-section.cyber-theme .tooltip-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.attack-map-section.cyber-theme .tooltip-flag {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.attack-map-section.cyber-theme .tooltip-name {
    font-weight: 600;
    color: var(--cyber-text-bright);
    flex: 1;
}

.attack-map-section.cyber-theme .tooltip-code {
    color: var(--cyber-accent);
    font-size: 0.7rem;
    padding: 0.125rem 0.375rem;
    background: var(--cyber-accent-dim);
    border-radius: 3px;
}

.attack-map-section.cyber-theme .tooltip-divider {
    height: 1px;
    background: var(--cyber-border);
    margin: 0.5rem 0;
}

.attack-map-section.cyber-theme .tooltip-stats {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.attack-map-section.cyber-theme .tooltip-stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.attack-map-section.cyber-theme .tooltip-stat .stat-label {
    color: var(--cyber-text-muted);
    font-size: 0.7rem;
    letter-spacing: 0.05em;
}

.attack-map-section.cyber-theme .tooltip-stat .stat-value {
    font-weight: 600;
    color: var(--cyber-text-bright);
    font-family: inherit;
}

.attack-map-section.cyber-theme .tooltip-level {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid var(--cyber-border);
}

.attack-map-section.cyber-theme .tooltip-level .level-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.attack-map-section.cyber-theme .tooltip-level .level-text {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Threat Legend */
.attack-map-section.cyber-theme .threat-legend {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.875rem 1rem;
    background: var(--cyber-bg-panel);
    border: 1px solid var(--cyber-border);
    border-radius: 6px;
}

.attack-map-section.cyber-theme .legend-label {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--cyber-text-muted);
    letter-spacing: 0.15em;
    text-align: center;
}

.attack-map-section.cyber-theme .legend-gradient {
    height: 8px;
    border-radius: 4px;
    background: linear-gradient(90deg,
        var(--threat-low) 0%,
        var(--threat-medium) 50%,
        var(--threat-critical) 100%
    );
    box-shadow: 0 0 10px rgba(0, 255, 65, 0.2);
}

.attack-map-section.cyber-theme .legend-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.65rem;
    color: var(--cyber-text-muted);
    letter-spacing: 0.05em;
}

/* Compact Threat Legend (in sidebar) */
.attack-map-section.cyber-theme .threat-legend.compact {
    margin-top: 0.75rem;
    padding: 0.5rem 0.625rem;
    gap: 0.25rem;
    background: rgba(30, 41, 54, 0.5);
    border: none;
    border-top: 1px solid var(--cyber-border);
    border-radius: 0;
}

.attack-map-section.cyber-theme .threat-legend.compact .legend-label {
    font-size: 0.55rem;
    letter-spacing: 0.1em;
}

.attack-map-section.cyber-theme .threat-legend.compact .legend-gradient {
    height: 4px;
    box-shadow: none;
}

.attack-map-section.cyber-theme .threat-legend.compact .legend-labels {
    font-size: 0.5rem;
}

/* Live Attack Feed */
.attack-map-section.cyber-theme .attack-feed {
    background: var(--cyber-bg-panel);
    border: 1px solid var(--cyber-border);
    border-radius: 6px;
    padding: 0.75rem;
    margin-top: 1rem;
}

.attack-map-section.cyber-theme .feed-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--cyber-accent);
    letter-spacing: 0.15em;
    margin: 0 0 0.5rem;
}

.attack-map-section.cyber-theme .pulse-dot {
    width: 6px;
    height: 6px;
    background: var(--cyber-accent);
    border-radius: 50%;
    animation: pulse-dot 1.5s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
}

.attack-map-section.cyber-theme .feed-list {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 120px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.attack-map-section.cyber-theme .feed-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: var(--cyber-text);
    padding: 0.25rem 0.5rem;
    background: rgba(0, 255, 65, 0.05);
    border-radius: 4px;
    animation: feed-fade-in 0.3s ease;
}

@keyframes feed-fade-in {
    from { opacity: 0; transform: translateX(-10px); }
    to { opacity: 1; transform: translateX(0); }
}

.attack-map-section.cyber-theme .feed-item .feed-flag {
    width: 16px;
    height: 12px;
    border-radius: 2px;
    box-shadow: 0 0 3px rgba(0, 0, 0, 0.3);
}

.attack-map-section.cyber-theme .feed-item .feed-arrow {
    color: var(--cyber-accent);
}

.attack-map-section.cyber-theme .feed-item .feed-time {
    margin-left: auto;
    color: var(--cyber-text-muted);
    font-size: 0.65rem;
}

.attack-map-section.cyber-theme .feed-item.threat-high {
    background: rgba(255, 0, 64, 0.1);
}

.attack-map-section.cyber-theme .feed-item.threat-medium {
    background: rgba(255, 215, 0, 0.1);
}

/* Feed Scrollbar */
.attack-map-section.cyber-theme .feed-list::-webkit-scrollbar {
    width: 4px;
}
.attack-map-section.cyber-theme .feed-list::-webkit-scrollbar-thumb {
    background: var(--cyber-border-bright);
    border-radius: 2px;
}

/* Threat Rankings Panel */
.attack-map-section.cyber-theme .threat-rankings.cyber-panel {
    background: var(--cyber-bg-panel);
    border: 1px solid var(--cyber-border);
    border-radius: 8px;
    padding: 1rem;
    max-height: 500px;
    overflow-y: auto;
    align-self: start;
}

/* Custom scrollbar for rankings */
.attack-map-section.cyber-theme .threat-rankings.cyber-panel::-webkit-scrollbar {
    width: 6px;
}

.attack-map-section.cyber-theme .threat-rankings.cyber-panel::-webkit-scrollbar-track {
    background: var(--cyber-bg);
    border-radius: 3px;
}

.attack-map-section.cyber-theme .threat-rankings.cyber-panel::-webkit-scrollbar-thumb {
    background: var(--cyber-border-bright);
    border-radius: 3px;
}

.attack-map-section.cyber-theme .threat-rankings.cyber-panel::-webkit-scrollbar-thumb:hover {
    background: var(--cyber-accent);
}

.attack-map-section.cyber-theme .rankings-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    margin: 0 0 1rem;
    color: var(--cyber-text-bright);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.attack-map-section.cyber-theme .rankings-title svg {
    color: var(--cyber-accent);
    filter: drop-shadow(0 0 4px var(--cyber-accent));
}

.attack-map-section.cyber-theme .rankings-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.attack-map-section.cyber-theme .ranking-item {
    display: grid;
    grid-template-columns: 28px 1fr auto;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 0.75rem;
    background: rgba(30, 41, 54, 0.5);
    border: 1px solid transparent;
    border-radius: 6px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.attack-map-section.cyber-theme .ranking-item:hover {
    background: rgba(30, 41, 54, 0.8);
    border-color: var(--cyber-border);
}

.attack-map-section.cyber-theme .ranking-item.is-current {
    background: rgba(0, 212, 255, 0.1);
    border-color: var(--cyber-cyan);
}

.attack-map-section.cyber-theme .rank-number {
    font-weight: 700;
    color: var(--cyber-text-muted);
    font-size: 0.8rem;
    font-family: inherit;
}

.attack-map-section.cyber-theme .ranking-item:nth-child(1) .rank-number { color: #ffd700; }
.attack-map-section.cyber-theme .ranking-item:nth-child(2) .rank-number { color: #c0c0c0; }
.attack-map-section.cyber-theme .ranking-item:nth-child(3) .rank-number { color: #cd7f32; }

.attack-map-section.cyber-theme .rank-country {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    min-width: 0;
}

.attack-map-section.cyber-theme .country-flag {
    font-size: 1.25rem;
    flex-shrink: 0;
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", "Twemoji Mozilla", sans-serif;
}

.attack-map-section.cyber-theme .country-flag-img {
    width: 20px;
    height: 15px;
    vertical-align: middle;
    border-radius: 2px;
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.3);
}

.attack-map-section.cyber-theme .country-details {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.attack-map-section.cyber-theme .country-name {
    font-weight: 500;
    font-size: 0.85rem;
    color: var(--cyber-text-bright);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.attack-map-section.cyber-theme .country-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.attack-map-section.cyber-theme .country-code {
    font-size: 0.7rem;
    color: var(--cyber-text-muted);
}

.attack-map-section.cyber-theme .current-badge {
    font-size: 0.5rem;
    font-weight: 600;
    padding: 0.1rem 0.2rem;
    background: var(--cyber-cyan);
    color: var(--cyber-bg-dark);
    border-radius: 2px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.attack-map-section.cyber-theme .rank-stats {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 80px;
}

.attack-map-section.cyber-theme .stats-bar {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
}

.attack-map-section.cyber-theme .bar-fill {
    height: 100%;
    border-radius: 2px;
    transition: width 0.3s ease;
}

.attack-map-section.cyber-theme .bar-fill.level-minimal { background: var(--threat-minimal); box-shadow: 0 0 6px var(--threat-minimal); }
.attack-map-section.cyber-theme .bar-fill.level-low { background: var(--threat-low); box-shadow: 0 0 6px var(--threat-low); }
.attack-map-section.cyber-theme .bar-fill.level-medium { background: var(--threat-medium); box-shadow: 0 0 6px var(--threat-medium); }
.attack-map-section.cyber-theme .bar-fill.level-high { background: var(--threat-high); box-shadow: 0 0 6px var(--threat-high); }
.attack-map-section.cyber-theme .bar-fill.level-critical { background: var(--threat-critical); box-shadow: 0 0 6px var(--threat-critical); }

.attack-map-section.cyber-theme .stats-values {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
}

.attack-map-section.cyber-theme .stats-count {
    font-weight: 600;
    color: var(--cyber-text-bright);
}

.attack-map-section.cyber-theme .stats-pct {
    color: var(--cyber-text-muted);
}

.attack-map-section.cyber-theme .rankings-more {
    text-align: center;
    color: var(--cyber-text-muted);
    font-size: 0.8rem;
    margin: 0.875rem 0 0;
    padding-top: 0.875rem;
    border-top: 1px solid var(--cyber-border);
}

.attack-map-section.cyber-theme .more-count {
    color: var(--cyber-accent);
    font-weight: 600;
}

/* Footer */
.attack-map-section.cyber-theme .section-footer {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--cyber-border);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.5rem;
}

.attack-map-section.cyber-theme .gdpr-notice {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: var(--cyber-text-muted);
    margin: 0;
}

.attack-map-section.cyber-theme .gdpr-notice svg {
    flex-shrink: 0;
    color: var(--cyber-accent);
    opacity: 0.6;
}

.attack-map-section.cyber-theme .map-attribution {
    font-size: 0.7rem;
    color: var(--cyber-text-muted);
    margin: 0;
}

.attack-map-section.cyber-theme .map-attribution a {
    color: var(--cyber-accent);
    text-decoration: none;
}

.attack-map-section.cyber-theme .map-attribution a:hover {
    text-decoration: underline;
}

/* Empty State */
.attack-map-section.cyber-theme.no-data {
    text-align: center;
    padding: 3rem 1.5rem;
}

.attack-map-section.cyber-theme .map-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem 1rem;
}

.attack-map-section.cyber-theme .empty-icon {
    color: var(--cyber-accent);
    opacity: 0.3;
    margin-bottom: 1rem;
}

.attack-map-section.cyber-theme .map-empty-state p {
    color: var(--cyber-text-muted);
    margin: 0;
}

.attack-map-section.cyber-theme .map-error {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    color: var(--cyber-text-muted);
}

/* Responsive */
@media (max-width: 768px) {
    .attack-map-section.cyber-theme {
        padding: 1rem;
    }

    .attack-map-section.cyber-theme .section-title {
        font-size: 1rem;
    }

    .attack-map-section.cyber-theme .legend-labels {
        font-size: 0.6rem;
    }

    .attack-map-section.cyber-theme .ranking-item {
        grid-template-columns: 24px 1fr auto;
        padding: 0.5rem;
        gap: 0.5rem;
    }

    .attack-map-section.cyber-theme .country-flag {
        font-size: 1rem;
    }

    .attack-map-section.cyber-theme .country-name {
        font-size: 0.8rem;
    }

    .attack-map-section.cyber-theme .section-footer {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

/* ==========================================================================
   ATTACK MAP WIDGET - Additional Styles
   ========================================================================== */

/* Widget Wrapper (additional specificity for theme isolation) */
.rip-attack-map-widget.attack-map-section.cyber-theme {
    --cyber-bg-dark: #0a0a0f !important;
    --cyber-bg: #0d1117 !important;
    --cyber-bg-panel: #161b22 !important;
    --cyber-border: rgba(0, 255, 65, 0.2) !important;
    --cyber-border-bright: rgba(0, 255, 65, 0.4) !important;
    --cyber-text: #c9d1d9 !important;
    --cyber-text-muted: #8b949e !important;
    --cyber-text-bright: #f0f6fc !important;
    --cyber-accent: #00ff41 !important;
    --cyber-accent-dim: rgba(0, 255, 65, 0.1) !important;
    --cyber-cyan: #00d4ff !important;
    --threat-minimal: #00ff41 !important;
    --threat-low: #39ff14 !important;
    --threat-medium: #ffd700 !important;
    --threat-high: #ff6b35 !important;
    --threat-critical: #ff0040 !important;
}

/* Loading State */
.rip-attack-map__loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    gap: 1rem;
}

.rip-attack-map__spinner {
    width: 48px;
    height: 48px;
    border: 3px solid var(--cyber-border);
    border-top-color: var(--cyber-accent);
    border-radius: 50%;
    animation: rip-spin 1s linear infinite;
}

@keyframes rip-spin {
    to { transform: rotate(360deg); }
}

.rip-attack-map__loading p {
    color: var(--cyber-text-muted);
    font-size: 0.875rem;
    letter-spacing: 0.05em;
    margin: 0;
}

/* Error State */
.rip-attack-map__error {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    gap: 1rem;
    text-align: center;
}

.rip-attack-map__error-icon {
    color: var(--threat-high);
    opacity: 0.7;
}

.rip-attack-map__error-message {
    color: var(--cyber-text-muted);
    font-size: 0.875rem;
    margin: 0;
}

.rip-attack-map__retry-btn {
    margin-top: 0.5rem;
}

/* ReportedIP Design System Button Styles for Widget */
.rip-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1;
    border-radius: 6px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.15s ease;
    font-family: inherit;
}

.rip-button--primary {
    background: var(--cyber-accent);
    color: var(--cyber-bg-dark);
    border-color: var(--cyber-accent);
}

.rip-button--primary:hover {
    background: #00cc34;
    border-color: #00cc34;
    box-shadow: 0 0 12px rgba(0, 255, 65, 0.3);
}

/* Today's Logs Counter */
.rip-today-logs {
    margin-left: 0.5rem;
    color: var(--cyber-accent);
}

.rip-today-label {
    color: var(--cyber-text-muted);
}

.rip-today-count {
    font-weight: 600;
    color: var(--cyber-accent);
}

/* Compact Mode */
.rip-attack-map--compact.attack-map-section.cyber-theme {
    padding: 1rem;
}

.rip-attack-map--compact .section-header {
    margin-bottom: 1rem;
}

.rip-attack-map--compact .section-title {
    font-size: 1rem;
}

.rip-attack-map--compact .section-subtitle {
    font-size: 0.75rem;
}

.rip-attack-map--compact .map-layout {
    gap: 1rem;
}

.rip-attack-map--compact .threat-rankings.cyber-panel {
    max-height: 350px;
}

.rip-attack-map--compact .ranking-item {
    padding: 0.5rem 0.625rem;
}

.rip-attack-map--compact .country-name {
    font-size: 0.8rem;
}

.rip-attack-map--compact .section-footer {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
}

/* No Rankings Mode (full-width map) */
.rip-attack-map--no-rankings .map-layout {
    grid-template-columns: 1fr;
}

.rip-attack-map--no-rankings .threat-rankings {
    display: none;
}

/* SVG Container for Widget */
.rip-attack-map__svg-container {
    display: block;
    width: 100%;
    height: auto;
}

.rip-attack-map__svg-container svg {
    display: block;
    width: 100%;
    height: auto;
}

/* Widget-specific Tooltip Positioning */
.rip-attack-map-widget .cyber-tooltip.rip-map-tooltip {
    z-index: 1000;
}
