/* ========================================
   MOBILE RESPONSIVE FIXES
   For Hub Landing Page - 80% Scale
   ======================================== */

/* ===== DEFAULT - Scale down to 80% ===== */
.hub-organism {
    transform: scale(0.8) !important;
    transform-origin: center center !important;
}

/* ===== SMALL TABLETS & LARGE PHONES (max-width: 768px) ===== */
@media (max-width: 768px) {
    .hub-organism {
        width: min(550px, 90vw) !important;
        height: min(550px, 90vw) !important;
        transform: scale(0.8) !important;
    }

    .hub-label {
        padding: 0.5rem 0.75rem !important;
        gap: 0.4rem !important;
        font-size: 0.85rem !important;
    }

    .hub-label__icon {
        width: 28px !important;
        height: 28px !important;
    }

    .hub-label__icon svg {
        width: 16px !important;
        height: 16px !important;
    }

    .hub-label__title {
        font-size: 0.75rem !important;
    }

    .hub-label__sub {
        font-size: 0.6rem !important;
    }
}

/* ===== PHONES (max-width: 600px) ===== */
@media (max-width: 600px) {
    .hub-main {
        padding: 1rem !important;
    }

    .hub-organism {
        width: min(480px, 100vw) !important;
        height: min(480px, 100vw) !important;
        transform: scale(0.8) !important;
    }

    .hub-label {
        padding: 0.4rem 0.6rem !important;
        gap: 0.35rem !important;
        border-radius: 10px !important;
        transform: translate(-50%, -50%) scale(0.85) !important;
    }

    .hub-label--active {
        transform: translate(-50%, -50%) scale(0.95) !important;
    }

    .hub-label__icon {
        width: 26px !important;
        height: 26px !important;
        border-radius: 6px !important;
    }

    .hub-label__title {
        font-size: 0.7rem !important;
    }
}

/* ===== SMALL PHONES (max-width: 480px) ===== */
@media (max-width: 480px) {
    .hub-home {
        height: 100vh !important;
        height: 100dvh !important;
        overflow: hidden !important;
    }

    .hub-main {
        padding: 0.5rem !important;
        min-height: 0 !important;
    }

    .hub-organism {
        width: min(420px, 100vw) !important;
        height: min(420px, 100vw) !important;
        transform: scale(0.8) !important;
    }

    .hub-label {
        padding: 0.5rem !important;
        border-radius: 12px !important;
        transform: translate(-50%, -50%) scale(0.8) !important;
    }

    .hub-label--active {
        transform: translate(-50%, -50%) scale(1) !important;
    }

    .hub-label__text {
        display: none !important;
    }

    .hub-label--active .hub-label__text {
        display: flex !important;
        position: absolute !important;
        left: 50% !important;
        top: 100% !important;
        transform: translateX(-50%) !important;
        margin-top: 0.5rem !important;
        background: rgba(15, 15, 20, 0.95) !important;
        padding: 0.4rem 0.75rem !important;
        border-radius: 8px !important;
        border: 1px solid rgba(255, 255, 255, 0.1) !important;
        white-space: nowrap !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 2px !important;
        z-index: 100 !important;
    }

    .hub-label--active .hub-label__title {
        font-size: 0.75rem !important;
    }

    .hub-label--active .hub-label__sub {
        display: block !important;
        font-size: 0.6rem !important;
    }

    .hub-label__icon {
        width: 32px !important;
        height: 32px !important;
    }

    .hub-label__icon svg {
        width: 18px !important;
        height: 18px !important;
    }

    .hub-footer {
        padding: 0.75rem !important;
    }

    .hub-footer__actions {
        gap: 0.5rem !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
    }

    .hub-footer__link {
        font-size: 0.75rem !important;
        padding: 0.5rem 0.75rem !important;
    }
}

/* ===== EXTRA SMALL PHONES (max-width: 375px) ===== */
@media (max-width: 375px) {
    .hub-organism {
        width: min(380px, 100vw) !important;
        height: min(380px, 100vw) !important;
        transform: scale(0.75) !important;
    }

    .hub-label {
        transform: translate(-50%, -50%) scale(0.7) !important;
    }

    .hub-label--active {
        transform: translate(-50%, -50%) scale(0.9) !important;
    }

    .hub-label__icon {
        width: 30px !important;
        height: 30px !important;
    }
}

/* ===== LANDSCAPE MODE ON PHONES ===== */
@media (max-height: 500px) and (orientation: landscape) {
    .hub-home {
        height: 100vh !important;
        overflow-y: auto !important;
    }

    .hub-main {
        padding: 0.5rem !important;
    }

    .hub-organism {
        width: min(300px, 75vh) !important;
        height: min(300px, 75vh) !important;
        transform: scale(0.8) !important;
    }

    .hub-footer {
        padding: 0.5rem !important;
    }

    .hub-footer__tagline {
        display: none !important;
    }
}