/* ========================================
   SOURCES SECTION - Apple-Style Minimalist Design
   ======================================== */

/* Source Icon Container - Elegant Circular Style */
.source-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(15, 18, 30, 0.95), rgba(10, 12, 20, 0.98));
    border: 2px solid rgba(255, 255, 255, 0.06);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.03) inset,
        0 4px 16px -4px rgba(0, 0, 0, 0.5);
}

/* Subtle ring effect */
.source-icon::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.04);
    opacity: 0;
    transition: opacity 0.3s ease;
}

@media (min-width: 768px) {
    .source-icon {
        width: 64px;
        height: 64px;
    }
}

/* Source Image - Circular with premium styling */
.source-img {
    width: 28px;
    height: 28px;
    object-fit: contain;
    border-radius: 6px;
    filter: none;
    opacity: 0.9;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (min-width: 768px) {
    .source-img {
        width: 32px;
        height: 32px;
    }
}

/* Hover Effect - Premium glow and lift */
.source-icon:hover {
    transform: translateY(-6px) scale(1.05);
    border-color: rgba(99, 102, 241, 0.4);
    box-shadow:
        0 0 0 1px rgba(99, 102, 241, 0.15) inset,
        0 8px 24px -4px rgba(99, 102, 241, 0.25),
        0 0 40px -8px rgba(99, 102, 241, 0.2);
}

.source-icon:hover::before {
    opacity: 1;
    border-color: rgba(99, 102, 241, 0.2);
}

.source-icon:hover .source-img {
    opacity: 1;
    transform: scale(1.08);
}

/* Social sources - Purple accent on hover */
.source-icon-social:hover {
    border-color: rgba(168, 85, 247, 0.4);
    box-shadow:
        0 0 0 1px rgba(168, 85, 247, 0.15) inset,
        0 8px 24px -4px rgba(168, 85, 247, 0.25),
        0 0 40px -8px rgba(168, 85, 247, 0.2);
}

.source-icon-social:hover::before {
    border-color: rgba(168, 85, 247, 0.2);
}

/* Overflow Count Badge - Circular elegant */
.source-overflow {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.12), rgba(99, 102, 241, 0.06));
    border: 2px solid rgba(99, 102, 241, 0.25);
    border-radius: 50%;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    box-shadow:
        0 0 0 1px rgba(99, 102, 241, 0.1) inset,
        0 4px 16px -4px rgba(99, 102, 241, 0.2);
}

@media (min-width: 768px) {
    .source-overflow {
        width: 64px;
        height: 64px;
    }
}

.source-overflow span {
    font-size: 12px;
    font-weight: 700;
    color: rgba(129, 140, 248, 0.95);
    font-family: 'Inter', sans-serif;
    letter-spacing: -0.02em;
}

@media (min-width: 768px) {
    .source-overflow span {
        font-size: 13px;
    }
}

.source-overflow:hover {
    transform: translateY(-6px) scale(1.05);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(99, 102, 241, 0.1));
    border-color: rgba(99, 102, 241, 0.5);
    box-shadow:
        0 0 0 1px rgba(99, 102, 241, 0.2) inset,
        0 8px 24px -4px rgba(99, 102, 241, 0.35),
        0 0 40px -8px rgba(99, 102, 241, 0.25);
}

.source-overflow:hover span {
    color: #a5b4fc;
}

.source-overflow-alt {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.12), rgba(168, 85, 247, 0.06));
    border-color: rgba(168, 85, 247, 0.25);
    box-shadow:
        0 0 0 1px rgba(168, 85, 247, 0.1) inset,
        0 4px 16px -4px rgba(168, 85, 247, 0.2);
}

.source-overflow-alt span {
    color: rgba(192, 132, 252, 0.95);
}

.source-overflow-alt:hover {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.2), rgba(168, 85, 247, 0.1));
    border-color: rgba(168, 85, 247, 0.5);
    box-shadow:
        0 0 0 1px rgba(168, 85, 247, 0.2) inset,
        0 8px 24px -4px rgba(168, 85, 247, 0.35),
        0 0 40px -8px rgba(168, 85, 247, 0.25);
}

.source-overflow-alt:hover span {
    color: #d8b4fe;
}

/* ========================================
   PREMIUM SEPARATOR LINE
   ======================================== */
.premium-separator {
    width: 100%;
    height: 1px;
    margin: 56px 0;
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(255, 255, 255, 0.12) 50%,
            transparent 100%);
}

@media (min-width: 768px) {
    .premium-separator {
        margin: 64px 0;
    }
}

/* ========================================
   PREMIUM STATS ROW
   ======================================== */
.stats-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}

@media (min-width: 768px) {
    .stats-row {
        gap: 0;
        flex-wrap: nowrap;
    }
}

.stat-item {
    text-align: center;
    padding: 8px 24px;
    cursor: default;
}

@media (min-width: 768px) {
    .stat-item {
        padding: 8px 40px;
    }
}

/* Stat Number - Inter font, premium sizing (matching our-mission.html) */
.stat-number {
    font-family: 'Inter', sans-serif;
    font-size: 28px;
    font-weight: 600;
    letter-spacing: -0.025em;
    color: #ffffff;
    line-height: 1.15;
    transition: color 0.3s ease;
}

@media (min-width: 768px) {
    .stat-number {
        font-size: 40px;
    }
}

@media (min-width: 1024px) {
    .stat-number {
        font-size: 48px;
    }
}

/* Stat Label - JetBrains Mono, subtle (matching our-mission.html) */
.stat-label {
    font-size: 8px;
    font-weight: 500;
    font-family: 'JetBrains Mono', monospace;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(148, 163, 184, 0.45);
    margin-top: 4px;
}

@media (min-width: 768px) {
    .stat-label {
        font-size: 10px;
        margin-top: 6px;
    }
}

/* Hover effect on stat numbers */
.stat-item.group:hover .stat-number {
    color: rgb(165, 180, 252);
    /* indigo-300 */
}

/* Vertical Separator between stats */
.stat-separator {
    display: none;
    width: 1px;
    height: 48px;
    background: linear-gradient(180deg,
            rgba(255, 255, 255, 0.03) 0%,
            rgba(255, 255, 255, 0.08) 50%,
            rgba(255, 255, 255, 0.03) 100%);
}

@media (min-width: 768px) {
    .stat-separator {
        display: block;
        height: 56px;
    }
}

/* Counting Animation Effect */
.stat-number.counting {
    color: rgb(129, 140, 248) !important;
    /* indigo-400 */
    transition: color 0.3s ease;
}

/* ========================================
   ORBIT SOURCES CONTAINER - Premium Design
   ======================================== */

.orbit-sources-container {
    position: relative;
    width: 100%;
    height: 380px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .orbit-sources-container {
        height: 450px;
    }
}

@media (min-width: 1024px) {
    .orbit-sources-container {
        height: 500px;
    }
}

/* Central Hub - The "100+ Izvora" center piece */
.orbit-hub {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
}

.orbit-hub-inner {
    width: 100px;
    height: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg,
            rgba(99, 102, 241, 0.2) 0%,
            rgba(139, 92, 246, 0.15) 50%,
            rgba(168, 85, 247, 0.1) 100%);
    border: 2px solid rgba(99, 102, 241, 0.4);
    border-radius: 50%;
    box-shadow:
        0 0 40px rgba(99, 102, 241, 0.3),
        0 0 80px rgba(139, 92, 246, 0.2),
        0 0 120px rgba(168, 85, 247, 0.1),
        inset 0 0 30px rgba(99, 102, 241, 0.15);
    backdrop-filter: blur(10px);
    opacity: 0;
    animation: hubFadeIn 0.8s ease forwards;
}

@media (min-width: 768px) {
    .orbit-hub-inner {
        width: 130px;
        height: 130px;
    }
}

@media (min-width: 1024px) {
    .orbit-hub-inner {
        width: 150px;
        height: 150px;
    }
}

.orbit-hub-number {
    font-family: 'Inter', sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.02em;
    line-height: 1;
}

@media (min-width: 768px) {
    .orbit-hub-number {
        font-size: 36px;
    }
}

@media (min-width: 1024px) {
    .orbit-hub-number {
        font-size: 42px;
    }
}

.orbit-hub-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 9px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: rgba(165, 180, 252, 0.8);
    margin-top: 4px;
}

@media (min-width: 768px) {
    .orbit-hub-label {
        font-size: 10px;
        margin-top: 6px;
    }
}

/* Pulse rings emanating from hub */
.orbit-hub-pulse {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 100%;
    height: 100%;
    border: 1px solid rgba(99, 102, 241, 0.4);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(1);
    animation: hubPulse 3s ease-out infinite;
}

.orbit-hub-pulse-2 {
    animation-delay: 1.5s;
}

@keyframes hubPulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.6;
    }

    100% {
        transform: translate(-50%, -50%) scale(2.5);
        opacity: 0;
    }
}

@keyframes hubFadeIn {
    0% {
        opacity: 0;
        transform: scale(0.5);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Orbit Rings */
.orbit-ring {
    position: absolute;
    left: 50%;
    top: 50%;
    border-radius: 50%;
    border: 1px dashed rgba(99, 102, 241, 0.15);
}

.orbit-inner {
    --radius: 110px;
    width: calc(var(--radius) * 2);
    height: calc(var(--radius) * 2);
    transform: translate(-50%, -50%);
}

@media (min-width: 768px) {
    .orbit-inner {
        --radius: 140px;
    }
}

@media (min-width: 1024px) {
    .orbit-inner {
        --radius: 160px;
    }
}

.orbit-outer {
    --radius: 165px;
    width: calc(var(--radius) * 2);
    height: calc(var(--radius) * 2);
    transform: translate(-50%, -50%);
    border-color: rgba(168, 85, 247, 0.12);
}

@media (min-width: 768px) {
    .orbit-outer {
        --radius: 210px;
    }
}

@media (min-width: 1024px) {
    .orbit-outer {
        --radius: 240px;
    }
}

/* Orbit Icons - Positioned using CSS transforms */
.orbit-icon {
    --angle: 0deg;
    position: absolute;
    left: 50%;
    top: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg,
            rgba(15, 18, 30, 0.95),
            rgba(10, 12, 20, 0.98));
    border: 2px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    cursor: pointer;
    box-shadow:
        0 4px 20px -4px rgba(0, 0, 0, 0.6),
        inset 0 0 0 1px rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    /* Position on the orbit using transform */
    transform:
        translate(-50%, -50%) rotate(var(--angle)) translateX(var(--radius)) rotate(calc(-1 * var(--angle)));
    /* Animation */
    opacity: 0;
    animation: orbitIconFadeIn 0.6s ease forwards;
    animation-delay: var(--delay, 0s);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (min-width: 768px) {
    .orbit-icon {
        width: 56px;
        height: 56px;
    }
}

@media (min-width: 1024px) {
    .orbit-icon {
        width: 62px;
        height: 62px;
    }
}

.orbit-icon:hover {
    border-color: rgba(99, 102, 241, 0.5);
    box-shadow:
        0 8px 30px -4px rgba(99, 102, 241, 0.35),
        0 0 50px -8px rgba(99, 102, 241, 0.25),
        inset 0 0 0 1px rgba(99, 102, 241, 0.2);
    z-index: 20;
}

.orbit-icon-social:hover {
    border-color: rgba(168, 85, 247, 0.5);
    box-shadow:
        0 8px 30px -4px rgba(168, 85, 247, 0.35),
        0 0 50px -8px rgba(168, 85, 247, 0.25),
        inset 0 0 0 1px rgba(168, 85, 247, 0.2);
}

.orbit-icon-img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    border-radius: 4px;
    opacity: 0.9;
    transition: all 0.3s ease;
}

@media (min-width: 768px) {
    .orbit-icon-img {
        width: 28px;
        height: 28px;
    }
}

@media (min-width: 1024px) {
    .orbit-icon-img {
        width: 32px;
        height: 32px;
    }
}

.orbit-icon:hover .orbit-icon-img {
    opacity: 1;
    transform: scale(1.1);
}

.orbit-icon-label {
    position: absolute;
    bottom: -22px;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Inter', sans-serif;
    font-size: 9px;
    font-weight: 500;
    color: rgba(148, 163, 184, 0.6);
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s ease;
}

@media (min-width: 768px) {
    .orbit-icon-label {
        font-size: 10px;
        bottom: -24px;
    }
}

.orbit-icon:hover .orbit-icon-label {
    opacity: 1;
}

/* Overflow Badge on Outer Orbit */
.orbit-overflow {
    --angle: 0deg;
    position: absolute;
    left: 50%;
    top: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg,
            rgba(99, 102, 241, 0.15),
            rgba(168, 85, 247, 0.1));
    border: 2px solid rgba(99, 102, 241, 0.35);
    border-radius: 50%;
    transform:
        translate(-50%, -50%) rotate(var(--angle)) translateX(var(--radius)) rotate(calc(-1 * var(--angle)));
    opacity: 0;
    animation: orbitIconFadeIn 0.6s ease forwards;
    animation-delay: var(--delay, 0s);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow:
        0 4px 20px -4px rgba(99, 102, 241, 0.3),
        inset 0 0 15px rgba(99, 102, 241, 0.1);
}

@media (min-width: 768px) {
    .orbit-overflow {
        width: 52px;
        height: 52px;
    }
}

@media (min-width: 1024px) {
    .orbit-overflow {
        width: 58px;
        height: 58px;
    }
}

.orbit-overflow span {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 700;
    color: rgba(165, 180, 252, 0.95);
    letter-spacing: -0.02em;
}

@media (min-width: 768px) {
    .orbit-overflow span {
        font-size: 14px;
    }
}

.orbit-overflow:hover {
    border-color: rgba(99, 102, 241, 0.6);
    background: linear-gradient(135deg,
            rgba(99, 102, 241, 0.25),
            rgba(168, 85, 247, 0.15));
    box-shadow:
        0 8px 30px -4px rgba(99, 102, 241, 0.4),
        0 0 50px -8px rgba(99, 102, 241, 0.3),
        inset 0 0 20px rgba(99, 102, 241, 0.15);
    z-index: 20;
}

.orbit-overflow:hover span {
    color: #c4b5fd;
}

@keyframes orbitIconFadeIn {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

/* Hover state for orbit rings - subtle rotation hint */
.orbit-sources-container:hover .orbit-inner {
    animation: subtleRotate 60s linear infinite;
}

.orbit-sources-container:hover .orbit-outer {
    animation: subtleRotateReverse 80s linear infinite;
}

@keyframes subtleRotate {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

@keyframes subtleRotateReverse {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    100% {
        transform: translate(-50%, -50%) rotate(-360deg);
    }
}

/* Hide animations until visible */
.orbit-sources-container:not(.is-visible) .orbit-hub-inner,
.orbit-sources-container:not(.is-visible) .orbit-icon,
.orbit-sources-container:not(.is-visible) .orbit-overflow,
.orbit-sources-container:not(.is-visible) .orbit-hub-pulse {
    animation-play-state: paused;
    opacity: 0;
}