/* anasayfa_buton.css */

.quick-links-section {
    width: 100%;
    margin-bottom: 24px;
}

.quick-links-grid {
    display: flex;
    padding: 6px;
    gap: 4px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
    user-select: none;
    -webkit-user-select: none;
    touch-action: pan-x pan-y;
}

/* Chrome, Safari and Opera */
.quick-links-grid::-webkit-scrollbar {
    display: none;
}



.ql-item {
    flex: 1 1 0;
    min-width: 90px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 8px;
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.3s ease;
}

.ql-item i {
    font-size: 20px;
    transition: all 0.3s ease;
}

.ql-item span {
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}

.ql-item:hover {
    background-color: var(--surface-600);
    color: var(--text-primary);
}

.ql-item:hover i {
    color: var(--brand-red);
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .quick-links-grid {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        overflow-x: hidden;
        background-color: transparent;
        padding: 0;
        gap: 8px;
    }

    .ql-item {
        background-color: var(--surface-800);
        min-width: 0;
        padding: 10px 4px;
    }
    
    .ql-item span {
        font-size: 10px;
        white-space: normal;
        text-align: center;
        line-height: 1.2;
    }
}

/* Visibility toggles based on screen size */
@media (max-width: 768px) {
    .ql-desktop {
        display: none !important;
    }
}

@media (min-width: 769px) {
    .ql-mobile {
        display: none !important;
    }
}

/*  ===== anasayfa_ref katmanı (eski anasayfa_ref.css) buraya katlandı =====  */
.quick-links-grid {
    background: linear-gradient(180deg, rgba(var(--surface-700-rgb, 23, 45, 92), 0.7), rgba(var(--surface-rgb, 14, 30, 66), 0.7));
    border: 1px solid rgba(var(--stroke-rgb, 140, 200, 255), 0.1);
    border-radius: 20px;
}

.ql-item {
    position: relative;
    border-radius: 14px;
}

.ql-item:hover .ql-item__img {
    transform: translateY(-2px) scale(1.12) rotate(-5deg);
}

.ql-item::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 12px;
    width: 34px;
    height: 12px;
    border-radius: 50%;
    background: radial-gradient(rgba(var(--primary), 0.5), transparent 70%);
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.ql-item:hover::after {
    opacity: 1;
}
@media (max-width: 768px) {
    .ql-mobile .quick-links-grid {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 8px;
        padding: 0;
        border: 0;
        border-radius: 0;
        background: none;
    }

    .ql-mobile .ql-item {
        min-width: 0;
        gap: 6px;
        padding: 12px 2px 10px;
        border: 1px solid rgba(var(--stroke-rgb, 140, 200, 255), 0.1);
        border-radius: 14px;
        background: linear-gradient(180deg, rgba(var(--surface-700-rgb, 23, 45, 92), 0.75), rgba(var(--surface-rgb, 14, 30, 66), 0.75));
        color: rgba(255, 255, 255, 0.7);
    }

    .ql-mobile .ql-item__img {
        width: 30px;
        height: 30px;
    }

    .ql-mobile .ql-item span {
        max-width: 100%;
        font-size: 10.5px;
        font-weight: 700;
        line-height: 1.2;
        overflow-wrap: anywhere;
        text-wrap: balance;
    }

    .ql-mobile .ql-item:hover {
        background: linear-gradient(180deg, rgba(var(--surface-700-rgb, 23, 45, 92), 0.75), rgba(var(--surface-rgb, 14, 30, 66), 0.75));
        color: rgba(255, 255, 255, 0.7);
    }

    .ql-mobile .ql-item:hover .ql-item__img {
        transform: none;
    }

    .ql-mobile .ql-item:active {
        transform: scale(0.96);
        border-color: rgba(var(--primary), 0.4);
    }
}
@media (max-width: 768px) {
    .ql-mobile .quick-links-grid {
        overflow: visible;
        touch-action: pan-y;
        overscroll-behavior: auto;
        -webkit-overflow-scrolling: auto;
    }

    .ql-mobile .ql-item {
        touch-action: manipulation;
    }
}
