/* Source: الواجهة/NetworkStyles.html (flattened)
   Extracted: Phase 6 Sub-section 1 */
/* =================================================================
    // SECTION: Network & Tooltip Styles - أنماط الشبكة والتلميحات
    // ================================================================= */

    /* تلميح تعريف القسم */
    .section-info-tooltip {
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%) scale(0.8);
        background: linear-gradient(135deg, rgba(15, 23, 42, 0.98), rgba(30, 41, 59, 0.98));
        backdrop-filter: blur(30px);
        border-radius: 25px;
        padding: 35px;
        max-width: 700px;
        width: 90%;
        z-index: 10000;
        box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
        border: 2px solid rgba(59, 130, 246, 0.3);
        opacity: 0;
        pointer-events: none;
        transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        direction: rtl;
    }

    .section-info-tooltip.active {
        opacity: 1;
        pointer-events: all;
        transform: translate(-50%, -50%) scale(1);
    }

    .section-info-tooltip .close-btn {
        position: absolute;
        top: 15px;
        left: 15px;
        background: rgba(239, 68, 68, 0.2);
        color: #ef4444;
        border: 2px solid #ef4444;
        width: 35px;
        height: 35px;
        border-radius: 50%;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.2rem;
        font-weight: bold;
        transition: all 0.3s ease;
    }

    .section-info-tooltip .close-btn:hover {
        background: #ef4444;
        color: white;
        transform: rotate(90deg);
    }

    .section-info-tooltip h3 {
        color: #60a5fa;
        font-size: 1.8rem;
        margin-bottom: 15px;
        text-align: center;
        font-weight: 700;
    }

    .section-info-tooltip .description {
        color: rgba(255, 255, 255, 0.9);
        font-size: 1.1rem;
        line-height: 1.8;
        margin-bottom: 25px;
        text-align: right;
    }

    .section-info-tooltip .related-sections {
        margin-top: 25px;
        padding-top: 25px;
        border-top: 2px solid rgba(59, 130, 246, 0.3);
    }

    .section-info-tooltip .related-sections h4 {
        color: #93c5fd;
        font-size: 1.3rem;
        margin-bottom: 15px;
        text-align: right;
    }

    .section-info-tooltip .related-sections ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .section-info-tooltip .related-sections li {
        color: rgba(255, 255, 255, 0.8);
        font-size: 1rem;
        padding: 8px 0;
        padding-right: 25px;
        position: relative;
        text-align: right;
    }

    .section-info-tooltip .related-sections li::before {
        content: "→";
        position: absolute;
        right: 0;
        color: #60a5fa;
        font-weight: bold;
    }

    /* شبكة العلاقات التفاعلية */
    .relationship-network {
        position: relative;
        width: 100%;
        height: 300px;
        margin-top: 20px;
        background: rgba(15, 23, 42, 0.5);
        border-radius: 15px;
        overflow: hidden;
        border: 2px solid rgba(59, 130, 246, 0.2);
    }

    .network-node {
        position: absolute;
        background: linear-gradient(135deg, #3b82f6, #1e40af);
        color: white;
        padding: 10px 15px;
        border-radius: 20px;
        font-size: 0.85rem;
        font-weight: 600;
        box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
        cursor: pointer;
        transition: all 0.3s ease;
        z-index: 2;
        border: 2px solid rgba(255, 255, 255, 0.3);
        white-space: nowrap;
    }

    .network-node:hover {
        transform: scale(1.15);
        box-shadow: 0 6px 25px rgba(59, 130, 246, 0.6);
        z-index: 3;
    }

    .network-node.center {
        background: linear-gradient(135deg, #f59e0b, #d97706);
        box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
    }

    .network-node.center:hover {
        box-shadow: 0 6px 25px rgba(245, 158, 11, 0.6);
    }

    .network-connection {
        position: absolute;
        height: 3px;
        background: linear-gradient(90deg, transparent, #60a5fa, transparent);
        transform-origin: left center;
        opacity: 0.8;
        z-index: 1;
        overflow: visible;
        transition: opacity 0.3s ease;
    }

    /* السهم المتحرك */
    .network-connection::before {
        content: '';
        position: absolute;
        width: 0;
        height: 0;
        border-left: 8px solid #3b82f6;
        border-top: 5px solid transparent;
        border-bottom: 5px solid transparent;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
        filter: drop-shadow(0 0 4px rgba(59, 130, 246, 0.8));
        animation: arrowMove 2s ease-in-out infinite;
    }

    /* تأثير توهج للسهم */
    .network-connection::after {
        content: '';
        position: absolute;
        width: 12px;
        height: 12px;
        background: radial-gradient(circle, #60a5fa, transparent);
        right: -6px;
        top: 50%;
        transform: translateY(-50%);
        border-radius: 50%;
        animation: arrowGlow 2s ease-in-out infinite;
        opacity: 0.8;
    }

    .network-connection.active {
        opacity: 1 !important;
        background: linear-gradient(90deg, transparent, #3b82f6, #60a5fa, transparent);
        animation: pulseLineActive 1.5s ease-in-out infinite;
    }

    .network-connection.active::before {
        border-left-color: #60a5fa;
        animation: arrowMoveActive 1.5s ease-in-out infinite;
        filter: drop-shadow(0 0 6px rgba(96, 165, 250, 1));
    }

    .network-connection.active::after {
        background: radial-gradient(circle, #93c5fd, transparent);
        animation: arrowGlowActive 1.5s ease-in-out infinite;
        opacity: 1;
    }

    /* نص الاتصال على الخط */
    .connection-label {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        background: rgba(59, 130, 246, 0.9);
        color: white;
        padding: 4px 10px;
        border-radius: 12px;
        font-size: 0.75rem;
        font-weight: 600;
        white-space: nowrap;
        z-index: 10;
        box-shadow: 0 2px 8px rgba(59, 130, 246, 0.5);
        backdrop-filter: blur(5px);
        transition: all 0.3s ease;
        pointer-events: none;
        opacity: 0.9;
    }

    .connection-label.active {
        opacity: 1 !important;
    }

    .network-connection:hover .connection-label {
        background: rgba(96, 165, 250, 1);
        transform: translate(-50%, -50%) scale(1.1);
        box-shadow: 0 4px 12px rgba(96, 165, 250, 0.7);
    }

    .network-connection.active .connection-label {
        background: rgba(96, 165, 250, 0.95);
        animation: labelPulse 2s ease-in-out infinite;
    }

    /* خلفية معتمة للتلميح */
    .tooltip-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.7);
        backdrop-filter: blur(5px);
        z-index: 9999;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease;
    }

    .tooltip-overlay.active {
        opacity: 1;
        pointer-events: all;
    }

    /* Animations */
    @keyframes labelPulse {
        0%,
        100% {
            opacity: 0.9;
            transform: translate(-50%, -50%) scale(1);
        }

        50% {
            opacity: 1;
            transform: translate(-50%, -50%) scale(1.05);
        }
    }

    /* حركة السهم على الخط */
    @keyframes arrowMove {
        0% {
            right: 0;
            opacity: 0;
        }

        50% {
            opacity: 1;
        }

        100% {
            right: 100%;
            opacity: 0;
        }
    }

    /* حركة السهم النشط (أسرع) */
    @keyframes arrowMoveActive {
        0% {
            right: 0;
            opacity: 0;
            transform: translateY(-50%) scale(0.8);
        }

        20% {
            opacity: 1;
            transform: translateY(-50%) scale(1);
        }

        80% {
            opacity: 1;
            transform: translateY(-50%) scale(1);
        }

        100% {
            right: 100%;
            opacity: 0;
            transform: translateY(-50%) scale(0.8);
        }
    }

    /* توهج السهم */
    @keyframes arrowGlow {
        0%,
        100% {
            opacity: 0.3;
            transform: translateY(-50%) scale(0.8);
        }

        50% {
            opacity: 0.8;
            transform: translateY(-50%) scale(1.2);
        }
    }

    /* توهج السهم النشط */
    @keyframes arrowGlowActive {
        0%,
        100% {
            opacity: 0.6;
            transform: translateY(-50%) scale(1);
        }

        50% {
            opacity: 1;
            transform: translateY(-50%) scale(1.5);
        }
    }

    @keyframes pulseLine {
        0%,
        100% {
            opacity: 0.3;
        }

        50% {
            opacity: 0.6;
        }
    }

    @keyframes pulseLineActive {
        0%,
        100% {
            opacity: 0.8;
            transform: scaleX(1);
        }

        50% {
            opacity: 1;
            transform: scaleX(1.05);
        }
    }
