/* anasayfa_buton.css */

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

.quick-links-grid {
    display: flex;
    background-color: var(--surface-800);
    border-radius: 8px;
    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;
}

/* 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;
    border-radius: 6px;
    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;
    }
}
