/* Tabs Component Styles */

/* Icons & labels — desktop only shows label text */
.tabs .tab-icon {
    display: none;
}

.tab-label {
    display: contents;
}

.tabs {
    display: inline-flex;
    background: rgba(120, 120, 128, 0.12);
    backdrop-filter: blur(10px);
    padding: 4px;
    border-radius: 100px;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 48px;
    gap: 4px;
}

.tab-btn {
    background: none;
    border: 1px solid transparent;
    color: var(--text-secondary);
    padding: 10px 24px;
    font-size: 1rem;
    cursor: pointer;
    border-radius: 100px;
    font-weight: 500;
    transition: color 0.15s ease;
}

.tab-btn:hover {
    color: var(--text-primary);
}

.tab-btn.active {
    background-color: var(--tw-white);
    color: var(--text-primary);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    border: 1px solid var(--card-border);
    transition: none;
}

[data-theme="light"] .tab-btn.active {
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

[data-theme="dark"] .tab-btn.active {
    background-color: var(--bg-color);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* ── Mobile Bottom Bar ── */
@media (max-width: 768px) {
    .tabs {
        position: fixed;
        bottom: -20px;
        left: 0;
        right: 0;
        transform: none;
        z-index: 100;
        display: flex;
        justify-content: space-around;
        align-items: flex-start;
        margin: 0;
        padding: 0;
        border-radius: 0;
        gap: 0;
        background: var(--surface-color);
        border-top: 1px solid var(--card-border);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 20px);
    }

    [data-theme="dark"] .tabs {
        background: rgba(24, 24, 27, 0.85);
    }

    [data-theme="light"] .tabs {
        background: rgba(250, 250, 250, 0.85);
    }

    .tab-btn {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 4px;
        height: 56px;
        padding: 0;
        border: none;
        border-radius: 0;
        font-size: 0.625rem;
        color: var(--text-secondary);
        background: none;
        transition: color 0.15s ease;
        -webkit-tap-highlight-color: transparent;
    }

    .tab-btn:hover {
        color: var(--text-secondary);
    }

    .tab-btn.active {
        background: none;
        border: none;
        box-shadow: none;
        color: var(--accent-color);
    }

    [data-theme="dark"] .tab-btn.active {
        background: none;
    }

    .tabs .tab-icon {
        display: block;
        font-size: 24px;
        line-height: 1;
    }

    .tab-label {
        display: block;
        line-height: 1;
    }
}

/* Bento Card - общий для всех вкладок */
.card {
    background-color: var(--surface-color);
    border-radius: 32px;
    padding: 32px 40px 40px;
    margin-bottom: 32px;
    border: 1px solid rgba(255,255,255,.08);
    box-shadow: 0 2px 4px rgba(0,0,0,.04);
}

[data-theme="light"] .card {
    border: 1px solid rgba(0,0,0,.08);
}

.card-header {
    margin-bottom: 24px;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
}

.card-subtitle {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 4px;
}

@media (max-width: 768px) {
    .card {
        border-radius: 24px;
        padding: 24px;
        margin-bottom: 8px;
    }

    #timeline .card {
        padding: 16px 24px;
    }
}
