/**
 * Tabs Block – Frontend Styles
 *
 * Defines the visual style, spacing, button states, and animations
 * for Tabs blocks on the frontend.
 *
 * @package Netido
 * @since 1.0.0
 */

.netido-tabs .tabs-nav {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.netido-tabs .tabs-nav::-webkit-scrollbar {
    display: none;
}

.netido-tabs.buttons-align-left .tabs-nav {
    justify-content: flex-start;
}

.netido-tabs.buttons-align-center .tabs-nav {
    justify-content: center;
}

.netido-tabs.buttons-align-right .tabs-nav {
    justify-content: flex-end;
}

.netido-tabs .tabs-nav button {
    flex: 0 0 auto;
    padding: 15px 20px;
    border: none;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    font-size: var(--wp--preset--font-size--small);
    font-weight: bold;
    border-radius: 5px 5px 0 0;
}

.netido-tabs .tabs-nav button {
	color: var(--wp--preset--color--contrast);
    background: var(--wp--preset--color--base);
    border-bottom: var(--wp--preset--color--accent-3);
}

.netido-tabs .tabs-nav button:hover {
    color: var(--wp--preset--color--accent-1);
}

.netido-tabs .tabs-nav button.active {
    background-color: var(--wp--preset--color--accent-3);
    color: var(--wp--preset--color--accent-1);
}

.netido-tabs.style-2 .tabs-nav button {
    background: none;
    border: 2px solid transparent;
}

.netido-tabs.style-2 .tabs-nav button.active {
    color: var(--wp--preset--color--accent-1);
    border: 2px solid var(--wp--preset--color--accent-4);
    border-bottom-color: var(--wp--preset--color--base);
}

.netido-tabs .tabs-content {
    padding: 30px 20px;
    background: var(--wp--preset--color--accent-3);
    border-radius: 0 0 5px 5px;
}

.netido-tabs.style-2 .tabs-content {
    margin-top: -2px;
    background: var(--wp--preset--color--base);
    border: 2px solid var(--wp--preset--color--accent-4);
}

.netido-tabs .tab-item {
    display: none;
    animation: fadeIn 0.75s ease;
}

.netido-tabs .tab-item.active {
    display: block;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (max-width: 768px) {
    .netido-tabs .tabs-nav {
        justify-content: flex-start !important;
    }

    .netido-tabs .tabs-nav button {
        padding: 10px 15px;
    }
}