/* ===================================================================
   FEATURED APP ROTATOR - auth header panel (left side)
   One app icon + tagline, rotating every 2 minutes.
   =================================================================== */

.hub-featured {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
    flex: 0 1 50%;
    max-width: 50%;
    margin-right: auto;
    text-decoration: none;
    padding: 10px 16px 10px 10px;
    border-radius: 12px;
    border: 1px solid transparent;
    background: rgba(255, 255, 255, 0.03);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
    transition: background .3s ease, transform .3s ease;
    font-family: 'Segoe UI', Arial, sans-serif;
    position: relative;
}

/* Cerceve boyunca akan Study/Fun/Apps renkleri.
   Cift-background YERINE mask-composite halkasi (bkz. .app-icons-games dersi):
   ic katman yari saydam oldugu icin padding-box yontemi sizinti yapar. */
.hub-featured::before {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: 12px;
    padding: 1px;
    background: linear-gradient(90deg,
        #6EC1FF, #7BE495, #FF3EA5, #6EC1FF, #7BE495, #FF3EA5, #6EC1FF);
    background-size: 300% 100%;
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: hubFeaturedFlow 12s linear infinite;
    pointer-events: none;
}

@keyframes hubFeaturedFlow {
    from { background-position: 0% 50%; }
    to   { background-position: -200% 50%; }
}

@media (prefers-reduced-motion: reduce) {
    .hub-featured::before { animation: none; }
}

.hub-featured:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: translateY(-1px);
}

.hub-featured:hover::before {
    animation-duration: 5s;
}

.hub-featured-icon {
    width: 56px;
    height: 56px;
    border-radius: 13px;
    object-fit: contain;
    flex-shrink: 0;
    background: rgba(0, 0, 0, 0.25);
}

.hub-featured-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.hub-featured-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(110, 193, 255, 0.8);
    line-height: 1;
}

.hub-featured-name {
    font-size: 16px;
    font-weight: 600;
    color: #e8ecff;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hub-featured-desc {
    font-size: 12.5px;
    font-style: italic;
    color: rgba(232, 236, 255, 0.65);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Fade transition between featured apps */
.hub-featured-body {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    min-width: 0;
    opacity: 1;
    transition: opacity .5s ease;
}

.hub-featured-body.fading {
    opacity: 0;
}

/* Dar ekranda auth kontrolleriyle çakışıyor -> gizle */
@media (max-width: 899px) {
    .hub-featured {
        display: none;
    }
}
